I downloaded JDK 6 and also I have sqljdb4.jar and I have a database.properties file that contains the following data
database.driverClassName = com.microsoft.sqlserver.jdbc.SQLServerDriver
database.url = jdbc: sqlserver: //.; databaseName = UserInfo; integratedSecurity = true;
database.username = sa
database.password = admin
BN: I install the server on my computer and the server name =., I also use Windows Authontication
My problem now, when I try to create a connection, I have the following error
com.microsoft.sqlserver.jdbc.SQLServerException: TCP / IP connection to localhost, port 1433 failed. Error: connection rejected: connect. Check the properties connection and verify that the SQL Server instance is running on the host and accepting TCP / IP connections on the port, and that the firewall is not blocking TCP connections to the port. in com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError (SQLServerException.java:130)
I donβt know what the problem is.
If anyone can help, I will appreciate
Thanks at Advance
source share