How to connect SQL Server 2014 through jdbc drive? JASPERSOFT STUDIO

Keep getting the error:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".

kshetty's picture
53
Joined: Feb 6 2019 - 8:36am
Last seen: 4 years 3 months ago

3 Answers:

vchiem's picture
36671
Joined: May 1 2017 - 5:33pm
Last seen: 32 min 42 sec ago

I did that, it didn't solve the issue. What would the connection url format be for a localdb server?

kshetty's picture
53
Joined: Feb 6 2019 - 8:36am
Last seen: 4 years 3 months ago

Something like this:

jdbc:sqlserver://localhost:1433;databaseName=database

 

vchiem's picture
36671
Joined: May 1 2017 - 5:33pm
Last seen: 32 min 42 sec ago
Feedback