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