Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Posts
    37

    Unanswered: Need a connection string for sql server via vb6

    Hey guys,
    sorry to bother you with something so newbish, but I am trying to connect to a remote sql server db, using vb6.
    I want to use ado to do so but have been having problem with some of the samples I have found online.

    I will probably just test the connection out on an existing database like pubs or northwind.

    Can anyone provide me a code snip please?

    This forum has always been a great resource for me, thanks again guys!

  2. #2
    Join Date
    Nov 2003
    Posts
    17
    Driver={SQL Server};Server=localhost;Address=localhost,1433;Ne twork=DBMSSOCN;Database=northwind;Uid=sa;Pwd=;

    Switch the appropriate data out

    Rob

  3. #3
    Join Date
    Apr 2004
    Location
    Kansas City, MO
    Posts
    734
    You also might want to add www.connectionstrings.com to your favorites.
    MeanOldDBA
    derrickleggett@hotmail.com
    When life gives you a lemon, fire the DBA.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •