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. Web Development
  3. Connection to SQL Server issues

Connection to SQL Server issues

Scheduled Pinned Locked Moved Web Development
databasesysadminsql-servercomhosting
7 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.
  • C Offline
    C Offline
    Chris McGlothen
    wrote on last edited by
    #1

    I have a web site that I'm writing for a client but am thus far unable to connect to the server via my ASP pages. All the information I can get from the help center at the hosting provider is the DSN, IP address, Username, Password, and the database name. I've been to connectionstrings.com, which is a pretty useful site, and have attempted to use the available resources but to no avail. Here is the connection string I'm currently using, Sub ConnDB() Set DataConn = Server.CreateObject("ADODB.Connection") DataConn.Open "Provider=sqloledb;Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;" End Sub Any help with this would be greatly appreciated. Cheers :beer:


    An American football fan - Go Seahawks! Lil Turtle

    P V 2 Replies Last reply
    0
    • C Chris McGlothen

      I have a web site that I'm writing for a client but am thus far unable to connect to the server via my ASP pages. All the information I can get from the help center at the hosting provider is the DSN, IP address, Username, Password, and the database name. I've been to connectionstrings.com, which is a pretty useful site, and have attempted to use the available resources but to no avail. Here is the connection string I'm currently using, Sub ConnDB() Set DataConn = Server.CreateObject("ADODB.Connection") DataConn.Open "Provider=sqloledb;Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;" End Sub Any help with this would be greatly appreciated. Cheers :beer:


      An American football fan - Go Seahawks! Lil Turtle

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Is the firewall enabled? If so, is it allowing access to port 1433?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      C 1 Reply Last reply
      0
      • C Chris McGlothen

        I have a web site that I'm writing for a client but am thus far unable to connect to the server via my ASP pages. All the information I can get from the help center at the hosting provider is the DSN, IP address, Username, Password, and the database name. I've been to connectionstrings.com, which is a pretty useful site, and have attempted to use the available resources but to no avail. Here is the connection string I'm currently using, Sub ConnDB() Set DataConn = Server.CreateObject("ADODB.Connection") DataConn.Open "Provider=sqloledb;Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;" End Sub Any help with this would be greatly appreciated. Cheers :beer:


        An American football fan - Go Seahawks! Lil Turtle

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        I think QueryAnalyzer might use NamedPipes and hence pass through. How about ASP and ASP.NET? I think TCP should be enabled in server configuration. Isn't it?

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        C 1 Reply Last reply
        0
        • V Vasudevan Deepak Kumar

          I think QueryAnalyzer might use NamedPipes and hence pass through. How about ASP and ASP.NET? I think TCP should be enabled in server configuration. Isn't it?

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          C Offline
          C Offline
          Chris McGlothen
          wrote on last edited by
          #4

          This is the first time that I've worked with an outside hosting company, and they do support ASP. I've been writing the server side code in ASP and using VBScript for the included connection functions and some page load events. As far as I can tell the connection string shouldn't be blocked by the firewall and since the SQL server is running at the hosting complex, I assume, I'm not sure what else could be causing the problems. Thanks for the reply, Cheers


          An American football fan - Go Seahawks! Lil Turtle

          1 Reply Last reply
          0
          • P Paul Conrad

            Is the firewall enabled? If so, is it allowing access to port 1433?

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer

            C Offline
            C Offline
            Chris McGlothen
            wrote on last edited by
            #5

            I'm fairly certain that the hosting company I'm working with has some kind of firewall enabled but it's also their SQL server that I'm trying to access. How would I check to see if port 1433 is open? Thanks for replying, Cheers


            An American football fan - Go Seahawks! Lil Turtle

            P 1 Reply Last reply
            0
            • C Chris McGlothen

              I'm fairly certain that the hosting company I'm working with has some kind of firewall enabled but it's also their SQL server that I'm trying to access. How would I check to see if port 1433 is open? Thanks for replying, Cheers


              An American football fan - Go Seahawks! Lil Turtle

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Chris McGlothen wrote:

              How would I check to see if port 1433 is open?

              You could try to ping it. Most likely your web host won't allow traffic in and out of the port over the web. My web host doesn't. Out of curiosity, who is the web host?

              "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

              C 1 Reply Last reply
              0
              • P Paul Conrad

                Chris McGlothen wrote:

                How would I check to see if port 1433 is open?

                You could try to ping it. Most likely your web host won't allow traffic in and out of the port over the web. My web host doesn't. Out of curiosity, who is the web host?

                "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

                C Offline
                C Offline
                Chris McGlothen
                wrote on last edited by
                #7

                Paul Conrad wrote:

                You could try to ping it.

                I should've realized that the simplest answer is usually staring you in the face :-D The site is being hosted by Network Solutions. And I've figured out the connection, I was using the wrong connection string format. Sometimes it just takes that second cup of coffe and a quick chat about the playoffs at the water cooler to realize your obvious simple mistakes. Thanks for the help, mate.


                An American football fan - Go Seahawks! Lil Turtle

                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