Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++: Connectin string to MS SQL 2005?

C++: Connectin string to MS SQL 2005?

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasesysadminhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gofur Halmurat
    wrote on last edited by
    #1

    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

    L M 2 Replies Last reply
    0
    • G Gofur Halmurat

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Maybe this page can help you[^]

      led mike

      1 Reply Last reply
      0
      • G Gofur Halmurat

        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

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        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:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups