I want to connect to SSMS database from eclipse. when compiler reaches to DriverManager.getConnection(url)
line it throws error.I enable TCP/IP also but it giving e
If "MSSQLSERVER" is the name of the database then try
"jdbc:sqlserver://localhost;databaseName=MSSQLSERVER;user=sa;password=coder182"
if it is the name of the instance try
"jdbc:sqlserver://localhost;instanceName=MSSQLSERVER;user=sa;password=coder182"
and of course verify that the server is running and using port 1434
And you must specify databaseName you want to connect
"jdbc:sqlserver://localhost;instance=MSSQLSERVER;databaseName=name_of_database;user=sa;password=your_password;"
Mark answer as accepted if issue resolved