SQL Connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pravin1166
    New Member
    • Mar 2007
    • 1

    SQL Connection

    My operatting ststem is WinXP, VB 6.0, SQL Server Professional 2000. when i trying to access data on vb from SQL Server Pro 2000 i get error can't connect to SQL Server. can you tell me answer and send sample program for it.
  • balid
    New Member
    • Feb 2007
    • 18

    #2
    Originally posted by pravin1166
    My operatting ststem is WinXP, VB 6.0, SQL Server Professional 2000. when i trying to access data on vb from SQL Server Pro 2000 i get error can't connect to SQL Server. can you tell me answer and send sample program for it.

    You may get answers faster if you show what you currently have. You may or may not be close with what you have.

    Comment

    • Dököll
      Recognized Expert Top Contributor
      • Nov 2006
      • 2379

      #3
      That's great advice. Also, if you are using ODBC, you may need to look in your Data Source Administrator to see if SQL Server is listed there :-)

      Good luck with the project.

      Dököll

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        Just pushing this forward in case you missed it, pravin1166 :-)

        Comment

        • higaonon
          New Member
          • Mar 2007
          • 5

          #5
          Originally posted by pravin1166
          My operatting ststem is WinXP, VB 6.0, SQL Server Professional 2000. when i trying to access data on vb from SQL Server Pro 2000 i get error can't connect to SQL Server. can you tell me answer and send sample program for it.

          main_connection .Open "Provider=SQLOL EDB.1;User ID=user_id;Pers ist Security Info=False;Pass word=user_passw ord;Intial Catalog=table_n ame;Data Source=server_n ame"

          Set main_catalog= New ADOx.Catalog
          main_catalog.Ac tiveConnection= main_connection

          -----------------------------
          And, check if your SQL SERVER is running....

          Comment

          • ansumansahu
            New Member
            • Mar 2007
            • 149

            #6
            Originally posted by pravin1166
            My operatting ststem is WinXP, VB 6.0, SQL Server Professional 2000. when i trying to access data on vb from SQL Server Pro 2000 i get error can't connect to SQL Server. can you tell me answer and send sample program for it.

            What is the specific error that your are getting when you try to connect.

            thanks
            ansuman

            Comment

            Working...