Hello community,
I'm using kepware with Datalogger connecting to a SQL Server.
When Kepware runs the data logger, the following error occurs.
Log group ~ Unalbe to connect to data source 'Kepware_DB_TEST'. Reason : SQL server does not exist or access denied. Connection Open(Connect()).
Kepware and the database are on the same IP subnet, and SQL Server Express is being used. I requested the company to open SQL port 1433, but they said it's meaningless because they are on the same subnet with only the last octet different. I'm not sure what I should be checking.
When I performed a telnet test from the Kepware server to the database server on port 1433, I received the error message: 'Could not open connection to the host, on port 1433: Connect failed.'
Any suggestions or things I should check would be greatly appreciated.
Solved! Go to Solution.
Hi @SS_9319257
You're on the right track — the error points to a connectivity or SQL Server configuration issue, not just a subnet-related issue. Even if both machines are on the same subnet, port 1433 must still be open, and SQL Server must be configured correctly to accept TCP connections.
1. SQL Server Configuration:
1433
.If you're using a named instance (like .\SQLEXPRESS
), SQL Server Browser service must run to resolve the instance name to a port.
services.msc
Even on the same subnet, Windows Firewall can block connections.
Run the following in Command Prompt on the database server:
netstat -an | find "1433"
You should see something like:
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING
Hi @SS_9319257
You're on the right track — the error points to a connectivity or SQL Server configuration issue, not just a subnet-related issue. Even if both machines are on the same subnet, port 1433 must still be open, and SQL Server must be configured correctly to accept TCP connections.
1. SQL Server Configuration:
1433
.If you're using a named instance (like .\SQLEXPRESS
), SQL Server Browser service must run to resolve the instance name to a port.
services.msc
Even on the same subnet, Windows Firewall can block connections.
Run the following in Command Prompt on the database server:
netstat -an | find "1433"
You should see something like:
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING
Hello @SS_9319257,
It looks like you have a response from our community champion. If it helped to answer your question please mark the reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Vivek N.
Community Moderation Team.