C++: Connectin string to MS SQL 2005?
-
Hello, I was trying to connect to remote MS SQL 2005, I can connect to server with microsoft client application, but when i try to connect with source code in visual c++, it returns: named pipes provider: could not connect, i dont know why? here is my connection string:
Driver={SQL Native Client};Server=TestServer;Database=test;Uid=xIB;Pwd=xIB;MARS_Connection=yes;
anybody has any idea to solve the problem? thanks in advance
-
Hello, I was trying to connect to remote MS SQL 2005, I can connect to server with microsoft client application, but when i try to connect with source code in visual c++, it returns: named pipes provider: could not connect, i dont know why? here is my connection string:
Driver={SQL Native Client};Server=TestServer;Database=test;Uid=xIB;Pwd=xIB;MARS_Connection=yes;
anybody has any idea to solve the problem? thanks in advance
-
Hello, I was trying to connect to remote MS SQL 2005, I can connect to server with microsoft client application, but when i try to connect with source code in visual c++, it returns: named pipes provider: could not connect, i dont know why? here is my connection string:
Driver={SQL Native Client};Server=TestServer;Database=test;Uid=xIB;Pwd=xIB;MARS_Connection=yes;
anybody has any idea to solve the problem? thanks in advance
Also try this link: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server[^] Problem II is the one that got me when I migrated to SQL Server 2005. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: