Provider: SQL network interfaces, error: 25 http://www.itsvse.com/thre


SQL 2008 R2 prompts for error (Provider: SQL Network Interfaces, Error: 25 – Connection string is invalid)

This is my first link string, so it doesn’t seem wrong

string strConn = “server=ip:1433; database=db; uid=sa; pwd=123456;”

Finally, I found that the port after IP is not separated by:, but separated by:, so the correct way to write it is:

string strConn = “server=ip,1433; database=db; uid=sa; pwd=123456;”

– this article from the architect, the original address: http://www.itsvse.com/thread-1732-1-1.html

Read More: