on 02-18-2008 6:23 AM
hi all,
i m fresher please explain this what those 1433
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://10.10.30.25:1433;databaseName=TrackingSystem","sa","sa") ;
Hi,
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://10.10.30.25:1433;databaseName=TrackingSystem","sa","sa") ;
Connection getConnection(String url,
String user, String password)
Url ->jdbc:microsoft:sqlserver://10.10.30.25:1433;databaseName=TrackingSystem
jdbc:microsoft:sqlserver - > is the driver for the JDBC
10.10.30.25 -> Ip address of the SQL server
1433 -> is the port number
databaseName=TrackingSystem -> Data base from where the further transactions will be done
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To connect to any database or web server we need to specify host address and port number, here 1433 is the port number.
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Welcome to SDN.
This is a simple JDBC statement to connect to the database. First paramenter is the MS sqlserver, then the schema name and the last two parameters are username and password.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.