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#
  4. SQL connection timeout

SQL connection timeout

Scheduled Pinned Locked Moved C#
databasec++sql-serversysadminsecurity
5 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.
  • D Offline
    D Offline
    Demian Panello
    wrote on last edited by
    #1

    Hi. I'm writing an application that it connect to a SQL Server 2000 database. For testing I have 2 PC running Windows XP and in one of them I'm running SQL Server 2000. When I run the application in the same PC where SQL is running the application works fine, but trying to connect from another PC it throws an exception connecting to the database. This is what I have: My connection string: string source = "Server = DEC-DEMIAN; Database = Security; User ID = Terminal2;" + "Password = 123; Trusted_Connection = False;"; Trying to connect from another PC it fails, thowing: "...SQLException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". I can't figure out what I missed to configure in SQL Server to be able to get remote connections. I have checked Server Properties -> Connections in SQL and it's ok. Any help will be apreciatte. Thankx

    Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

    J 1 Reply Last reply
    0
    • D Demian Panello

      Hi. I'm writing an application that it connect to a SQL Server 2000 database. For testing I have 2 PC running Windows XP and in one of them I'm running SQL Server 2000. When I run the application in the same PC where SQL is running the application works fine, but trying to connect from another PC it throws an exception connecting to the database. This is what I have: My connection string: string source = "Server = DEC-DEMIAN; Database = Security; User ID = Terminal2;" + "Password = 123; Trusted_Connection = False;"; Trying to connect from another PC it fails, thowing: "...SQLException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". I can't figure out what I missed to configure in SQL Server to be able to get remote connections. I have checked Server Properties -> Connections in SQL and it's ok. Any help will be apreciatte. Thankx

      Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

      J Offline
      J Offline
      Justin Perez
      wrote on last edited by
      #2

      On the server, have you enabled named pipes? I have had that same problem before, and It was because I didn't enable named pipes.

      I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

      D 1 Reply Last reply
      0
      • J Justin Perez

        On the server, have you enabled named pipes? I have had that same problem before, and It was because I didn't enable named pipes.

        I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

        D Offline
        D Offline
        Demian Panello
        wrote on last edited by
        #3

        I don't know. Where should I find the "named pipes"??.

        Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

        J 1 Reply Last reply
        0
        • D Demian Panello

          I don't know. Where should I find the "named pipes"??.

          Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

          J Offline
          J Offline
          Justin Perez
          wrote on last edited by
          #4

          I don't quite remember, Google it.

          I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

          S 1 Reply Last reply
          0
          • J Justin Perez

            I don't quite remember, Google it.

            I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

            S Offline
            S Offline
            satsumatable
            wrote on last edited by
            #5

            These specify the time, in seconds, to wait for the server to respond before generating an error. The default value is 15 (seconds). "Connect Timeout=10;" -or- "Connection Timeout=10;"

            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