cancel
Showing results for 
Search instead for 
Did you mean: 

about ip and other

Former Member
0 Kudos

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") ;

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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