EC-Release / sdk

The Agent SDK
Other
4 stars 7 forks source link

Connecting to SQL Server #140

Closed ramaraosrikakulapu closed 3 years ago

ramaraosrikakulapu commented 3 years ago

This is to document an experience with a customer for connecting to a on prem SQL Server database.

Server agent using the DB host name as rht and port 1433 (default port for SQL Server in general) and successfully established super connection with predix gateway

Issue: From the logs EC client running fine but unable to make successful connection with URL -

jdbc:sqlserver://{EC Client host IP}:{lpt};databaseName={dbName}
ramaraosrikakulapu commented 3 years ago

Resoultion: 1433 is port for SQL Server in general but not always. So get the right port number as follows -