Connecting to SQL Server 2000 via VB6 program on Vista

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TerpZebra

    Connecting to SQL Server 2000 via VB6 program on Vista

    I am having difficulty connecting to SQL Server 2000 on one of our
    servers via a VB6 program on Vista. I can connect fine to a different
    server, but it gives me the following error with the server in
    question:

    "Unable to connect to database. Please check your internet connection
    Error# -2147467259
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
    access denied"

    Using the program, I am able to access the database just fine while
    running on Windows XP, but when I run the program on Vista, it gives
    me that error message for that server. If I change the connection
    string to a different server address, it works fine on Vista. What
    differences in the servers might cause this?

    Here is my connection string:
    "driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"

  • William Vaughn

    #2
    Re: Connecting to SQL Server 2000 via VB6 program on Vista

    Is the firewall open for port 1433?

    --
    _______________ _______________ ______
    William (Bill) Vaughn
    Author, Mentor, Consultant, Dad, Grandpa
    Microsoft MVP
    INETA Speaker
    Welcome to the home of William Vaughn's Imagination, creations, and advice.

    Welcome to the home of William Vaughn's Imagination, creations, and advice.


    Welcome to the home of William Vaughn's Imagination, creations, and advice.

    Welcome to the home of William Vaughn's Imagination, creations, and advice.

    Please reply only to the newsgroup so that others can benefit.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    _______________ _______________ ____
    Visit www.hitchhikerguides.net to get more information on my latest book:
    Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
    and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
    -----------------------------------------------------------------------------------------------------------------------

    "TerpZebra" <terpzebra@gmai l.comwrote in message
    news:1184775545 .291016.192510@ i38g2000prf.goo glegroups.com.. .
    >I am having difficulty connecting to SQL Server 2000 on one of our
    servers via a VB6 program on Vista. I can connect fine to a different
    server, but it gives me the following error with the server in
    question:
    >
    "Unable to connect to database. Please check your internet connection
    Error# -2147467259
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
    access denied"
    >
    Using the program, I am able to access the database just fine while
    running on Windows XP, but when I run the program on Vista, it gives
    me that error message for that server. If I change the connection
    string to a different server address, it works fine on Vista. What
    differences in the servers might cause this?
    >
    Here is my connection string:
    "driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"
    >

    Comment

    • Erland Sommarskog

      #3
      Re: Connecting to SQL Server 2000 via VB6 program on Vista

      TerpZebra (terpzebra@gmai l.com) writes:
      I am having difficulty connecting to SQL Server 2000 on one of our
      servers via a VB6 program on Vista. I can connect fine to a different
      server, but it gives me the following error with the server in
      question:
      >
      "Unable to connect to database. Please check your internet connection
      Error# -2147467259
      [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
      access denied"
      >
      Using the program, I am able to access the database just fine while
      running on Windows XP, but when I run the program on Vista, it gives
      me that error message for that server. If I change the connection
      string to a different server address, it works fine on Vista. What
      differences in the servers might cause this?
      >
      Here is my connection string:
      "driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"
      Difficult to say. Is SQL Server running on port 1433 on both servers?




      --
      Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

      Books Online for SQL Server 2005 at

      Books Online for SQL Server 2000 at

      Comment

      • William Vaughn

        #4
        Re: Connecting to SQL Server 2000 via VB6 program on Vista

        The SQL Server Config tools will tell you what port(s) have been assigned.
        SS 2000 broadcasts and handles the incoming requests and maps to the ports,
        but if the firewall blocks them...

        --
        _______________ _______________ ______
        William (Bill) Vaughn
        Author, Mentor, Consultant, Dad, Grandpa
        Microsoft MVP
        INETA Speaker
        Welcome to the home of William Vaughn's Imagination, creations, and advice.

        Welcome to the home of William Vaughn's Imagination, creations, and advice.


        Welcome to the home of William Vaughn's Imagination, creations, and advice.

        Welcome to the home of William Vaughn's Imagination, creations, and advice.

        Please reply only to the newsgroup so that others can benefit.
        This posting is provided "AS IS" with no warranties, and confers no rights.
        _______________ _______________ ____
        Visit www.hitchhikerguides.net to get more information on my latest book:
        Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
        and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
        -----------------------------------------------------------------------------------------------------------------------

        "Erland Sommarskog" <esquel@sommars kog.sewrote in message
        news:Xns9971F1A 126FADYazorman@ 127.0.0.1...
        TerpZebra (terpzebra@gmai l.com) writes:
        >I am having difficulty connecting to SQL Server 2000 on one of our
        >servers via a VB6 program on Vista. I can connect fine to a different
        >server, but it gives me the following error with the server in
        >question:
        >>
        >"Unable to connect to database. Please check your internet connection
        > Error# -2147467259
        >[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
        >access denied"
        >>
        >Using the program, I am able to access the database just fine while
        >running on Windows XP, but when I run the program on Vista, it gives
        >me that error message for that server. If I change the connection
        >string to a different server address, it works fine on Vista. What
        >differences in the servers might cause this?
        >>
        >Here is my connection string:
        >"driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"
        >
        Difficult to say. Is SQL Server running on port 1433 on both servers?
        >
        >
        >
        >
        --
        Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
        >
        Books Online for SQL Server 2005 at

        Books Online for SQL Server 2000 at
        http://www.microsoft.com/sql/prodinf...ons/books.mspx

        Comment

        • TerpZebra

          #5
          Re: Connecting to SQL Server 2000 via VB6 program on Vista

          On Jul 18, 3:50 pm, "William Vaughn" <billvaNoS...@b etav.comwrote:
          Is the firewall open for port 1433?
          >
          --
          _______________ _______________ ______
          William (Bill) Vaughn
          Author, Mentor, Consultant, Dad, Grandpa
          Microsoft MVP
          INETA Speakerwww.beta v.comwww.betav. com/blog/billvawww.hitch hikerguides.net www.betav.com/blog/billvawww.betav .com
          Please reply only to the newsgroup so that others can benefit.
          This posting is provided "AS IS" with no warranties, and confers no rights.
          _______________ _______________ ____
          Visitwww.hitchh ikerguides.nett o get more information on my latest book:
          Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
          and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
          -----------------------------------------------------------------------------------------------------------------------
          >
          "TerpZebra" <terpze...@gmai l.comwrote in message
          >
          news:1184775545 .291016.192510@ i38g2000prf.goo glegroups.com.. .
          >
          I am having difficulty connecting to SQL Server 2000 on one of our
          servers via a VB6 program on Vista. I can connect fine to a different
          server, but it gives me the following error with the server in
          question:
          >
          "Unable to connect to database. Please check your internet connection
          Error# -2147467259
          [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
          access denied"
          >
          Using the program, I am able to access the database just fine while
          running on Windows XP, but when I run the program on Vista, it gives
          me that error message for that server. If I change the connection
          string to a different server address, it works fine on Vista. What
          differences in the servers might cause this?
          >
          Here is my connection string:
          "driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"
          Yes, it is open for port 1433. I can connect to a separate Server
          using the same connection string, except for the IP address, and it
          works fine.

          I can also connect to both Servers using the application on Windows XP

          Comment

          • William Vaughn

            #6
            Re: Connecting to SQL Server 2000 via VB6 program on Vista

            So, there is something different about this particular server--assuming you
            can connect to other servers from the client.
            Have you run the surface area config tool on the target server?

            --
            _______________ _______________ ______
            William (Bill) Vaughn
            Author, Mentor, Consultant, Dad, Grandpa
            Microsoft MVP
            INETA Speaker
            Welcome to the home of William Vaughn's Imagination, creations, and advice.

            Welcome to the home of William Vaughn's Imagination, creations, and advice.


            Welcome to the home of William Vaughn's Imagination, creations, and advice.

            Welcome to the home of William Vaughn's Imagination, creations, and advice.

            Please reply only to the newsgroup so that others can benefit.
            This posting is provided "AS IS" with no warranties, and confers no rights.
            _______________ _______________ ____
            Visit www.hitchhikerguides.net to get more information on my latest book:
            Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
            and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
            -----------------------------------------------------------------------------------------------------------------------

            "TerpZebra" <terpzebra@gmai l.comwrote in message
            news:1184866009 .025953.319470@ q75g2000hsh.goo glegroups.com.. .
            On Jul 18, 3:50 pm, "William Vaughn" <billvaNoS...@b etav.comwrote:
            >Is the firewall open for port 1433?
            >>
            >--
            >______________ _______________ _______
            >William (Bill) Vaughn
            >Author, Mentor, Consultant, Dad, Grandpa
            >Microsoft MVP
            >INETA
            >Speakerwww.bet av.comwww.betav .com/blog/billvawww.hitch hikerguides.net www.betav.com/blog/billvawww.betav .com
            >Please reply only to the newsgroup so that others can benefit.
            >This posting is provided "AS IS" with no warranties, and confers no
            >rights.
            >______________ _______________ _____
            >Visitwww.hitch hikerguides.net to get more information on my latest book:
            >Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
            >and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
            >-----------------------------------------------------------------------------------------------------------------------
            >>
            >"TerpZebra" <terpze...@gmai l.comwrote in message
            >>
            >news:118477554 5.291016.192510 @i38g2000prf.go oglegroups.com. ..
            >>
            >I am having difficulty connecting to SQL Server 2000 on one of our
            servers via a VB6 program on Vista. I can connect fine to a different
            server, but it gives me the following error with the server in
            question:
            >>
            "Unable to connect to database. Please check your internet connection
            Error# -2147467259
            [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
            access denied"
            >>
            Using the program, I am able to access the database just fine while
            running on Windows XP, but when I run the program on Vista, it gives
            me that error message for that server. If I change the connection
            string to a different server address, it works fine on Vista. What
            differences in the servers might cause this?
            >>
            Here is my connection string:
            "driver={SQ L Server};Server= ipaddress;Uid=u serID;Pwd=pwd;d atabase=db"
            >
            Yes, it is open for port 1433. I can connect to a separate Server
            using the same connection string, except for the IP address, and it
            works fine.
            >
            I can also connect to both Servers using the application on Windows XP
            >

            Comment

            • Erland Sommarskog

              #7
              Re: Connecting to SQL Server 2000 via VB6 program on Vista

              William Vaughn (billvaNoSPAM@b etav.com) writes:
              So, there is something different about this particular server--assuming
              you can connect to other servers from the client. Have you run the
              surface area config tool on the target server?
              As that server is running SQL 2000, there is not likely to be a surface-
              area config tool.

              But, yes, something appears to be special with that server.

              TerpZebra, could you post the first 50 lines or so of the error log
              for that server instance?



              --
              Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

              Books Online for SQL Server 2005 at

              Books Online for SQL Server 2000 at

              Comment

              • William Vaughn

                #8
                Re: Connecting to SQL Server 2000 via VB6 program on Vista

                The SQL Server configuation tools will have to do. Make sure the defaults
                are over-ridden to make the server visible. Since SP3a SQL Server 2000 is
                configured to be invisible to the net. The TCP/IP protocol is disabled. See
                http://www.databasejournal.com/featu...le.php/3334851. He
                discusses the SQL Server Network Utility that's used to make these
                configuration changes.

                hth

                --
                _______________ _______________ ______
                William (Bill) Vaughn
                Author, Mentor, Consultant, Dad, Grandpa
                Microsoft MVP
                INETA Speaker
                Welcome to the home of William Vaughn's Imagination, creations, and advice.

                Welcome to the home of William Vaughn's Imagination, creations, and advice.


                Welcome to the home of William Vaughn's Imagination, creations, and advice.

                Welcome to the home of William Vaughn's Imagination, creations, and advice.

                Please reply only to the newsgroup so that others can benefit.
                This posting is provided "AS IS" with no warranties, and confers no rights.
                _______________ _______________ ____
                Visit www.hitchhikerguides.net to get more information on my latest book:
                Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
                and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
                -----------------------------------------------------------------------------------------------------------------------

                "Erland Sommarskog" <esquel@sommars kog.sewrote in message
                news:Xns9972E89 71EADFYazorman@ 127.0.0.1...
                William Vaughn (billvaNoSPAM@b etav.com) writes:
                >So, there is something different about this particular server--assuming
                >you can connect to other servers from the client. Have you run the
                >surface area config tool on the target server?
                >
                As that server is running SQL 2000, there is not likely to be a surface-
                area config tool.
                >
                But, yes, something appears to be special with that server.
                >
                TerpZebra, could you post the first 50 lines or so of the error log
                for that server instance?
                >
                >
                >
                --
                Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
                >
                Books Online for SQL Server 2005 at

                Books Online for SQL Server 2000 at
                http://www.microsoft.com/sql/prodinf...ons/books.mspx

                Comment

                Working...