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

0

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
Joined: Feb 6 2019 - 8:36am
Last seen: 2 years 5 months ago

3 Answers:

0
vchiem's picture
20019
Joined: May 1 2017 - 5:33pm
Last seen: 19 hours 15 min ago
0

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

kshetty's picture
Joined: Feb 6 2019 - 8:36am
Last seen: 2 years 5 months ago
0

Something like this:

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

 

vchiem's picture
20019
Joined: May 1 2017 - 5:33pm
Last seen: 19 hours 15 min ago
Feedback