We are troubleshooting a weird issue with our SQL Server 2008 server. The application server runs a windows service that makes a DB connection via a connection string in its config file, and we end up with tons of the standard 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.' errors in the event log.
- We have tried installing SSMS on the application server and connecting to the particular DB with those particular credentials works FINE.
- Firewall is off on both sides.
- TCP/IP protocol is enabled (and we use IP and custom port to force tcp).
We are stumped why it doesn't work via the app and need some pointers!
We have many SQL servers setup in our development and production environments and this particular setup doesnt appear to be any different.
CONNECTION STRING:
<add name="myConnectionString" connectionString="Server=MYSERVERDB1; Database=MYDB; Network=DBMSSOCN; Address=192.168.20.161,2061; User Id=MYDBusr_vn;Password=blue123;Asynchronous Processing=True;Application Name=MYService;" providerName="System.Data.SqlClient" />
0 Answers