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. Database & SysAdmin
  3. Database
  4. remote connection stops after a while [modified]

remote connection stops after a while [modified]

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
6 Posts 2 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.
  • R Offline
    R Offline
    reza assar
    wrote on last edited by
    #1

    hi all does any one know or guess what happens to my application connection while dialing with sql server 2008 standard? in fact it works for a week and after that it stops establishing connection to server remotely 1) i can ping the server from the computer witch my application installed on 2) sql server service is running 3) only one instance is installed on the server computer (sql server 2008) 4) my application will works about a week and dialing with sql server remotely more than 10000 times per a week and suddenly it stops 5) it will be ok after restart computer witch my application installed on :doh: :wtf: :confused: :~ X| :suss: .....!!!!!??????

    modified on Monday, February 28, 2011 7:55 AM

    L 1 Reply Last reply
    0
    • R reza assar

      hi all does any one know or guess what happens to my application connection while dialing with sql server 2008 standard? in fact it works for a week and after that it stops establishing connection to server remotely 1) i can ping the server from the computer witch my application installed on 2) sql server service is running 3) only one instance is installed on the server computer (sql server 2008) 4) my application will works about a week and dialing with sql server remotely more than 10000 times per a week and suddenly it stops 5) it will be ok after restart computer witch my application installed on :doh: :wtf: :confused: :~ X| :suss: .....!!!!!??????

      modified on Monday, February 28, 2011 7:55 AM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      reza assar wrote:

      in fact it works for a week and after that it stops establishing connection to server remotely

      Did you mean that your database-server doesn't accept any new incoming connections after that week, or that it drops the current existing connection?

      reza assar wrote:

      my application will works about a week and dialing with sql server remotely more than 10000 times per a week and suddenly it stops

      That's not much to go on; there's no known bugs in Sql Server that occur after a week. You could;

      • Check the Windows EventLog (under Start, Configuration, Administrative Tools) for any errormessages relating to the database and/or the network
      • Check your Global Exception Handler (you did implement one?) for relevant exceptions
      • Add a lightweight trace to Sql Server - might give a clue on the offending Sql Statement and conditions under which this statement is run
      • Did you install all service-packs? Updated Windows?
      • Try to replicate it "at home" by pumping a lot of data to your development-server - see if you can reproduce the crash

      The EventLog and the trace will be your best bets on hunting down the cause. Good luck :)

      I are Troll :suss:

      R 1 Reply Last reply
      0
      • L Lost User

        reza assar wrote:

        in fact it works for a week and after that it stops establishing connection to server remotely

        Did you mean that your database-server doesn't accept any new incoming connections after that week, or that it drops the current existing connection?

        reza assar wrote:

        my application will works about a week and dialing with sql server remotely more than 10000 times per a week and suddenly it stops

        That's not much to go on; there's no known bugs in Sql Server that occur after a week. You could;

        • Check the Windows EventLog (under Start, Configuration, Administrative Tools) for any errormessages relating to the database and/or the network
        • Check your Global Exception Handler (you did implement one?) for relevant exceptions
        • Add a lightweight trace to Sql Server - might give a clue on the offending Sql Statement and conditions under which this statement is run
        • Did you install all service-packs? Updated Windows?
        • Try to replicate it "at home" by pumping a lot of data to your development-server - see if you can reproduce the crash

        The EventLog and the trace will be your best bets on hunting down the cause. Good luck :)

        I are Troll :suss:

        R Offline
        R Offline
        reza assar
        wrote on last edited by
        #3

        dear Eddy i am using exception handling the error is the same as when you can`t establish a connection. good suggestion about eventlog i completely forgot about this. by the way my application can`t establish a connection but meanwhile another applications "that developed by myself" can connect and dial with sql server remotely from other computers at the same time.

        Eddy Vluggen wrote:

        Did you mean that your database-server doesn't accept any new incoming connections after that week, or that it drops the current existing connection?

        yes i think there is no any connection object in the pool " and database-server doesn't accept any new incoming connections" and it does not allow establish a new fresh connection but after restarting the client computer everything working ok!

        L 1 Reply Last reply
        0
        • R reza assar

          dear Eddy i am using exception handling the error is the same as when you can`t establish a connection. good suggestion about eventlog i completely forgot about this. by the way my application can`t establish a connection but meanwhile another applications "that developed by myself" can connect and dial with sql server remotely from other computers at the same time.

          Eddy Vluggen wrote:

          Did you mean that your database-server doesn't accept any new incoming connections after that week, or that it drops the current existing connection?

          yes i think there is no any connection object in the pool " and database-server doesn't accept any new incoming connections" and it does not allow establish a new fresh connection but after restarting the client computer everything working ok!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          reza assar wrote:

          yes i think there is no any connection object in the pool " and database-server doesn't accept any new incoming connections" and it does not allow establish a new fresh connection but after restarting the client computer everything working ok!

          Sounds like you got some connections that don't get closed/disposed properly. Any code that could leak connections/readers?

          I are Troll :suss:

          R 1 Reply Last reply
          0
          • L Lost User

            reza assar wrote:

            yes i think there is no any connection object in the pool " and database-server doesn't accept any new incoming connections" and it does not allow establish a new fresh connection but after restarting the client computer everything working ok!

            Sounds like you got some connections that don't get closed/disposed properly. Any code that could leak connections/readers?

            I are Troll :suss:

            R Offline
            R Offline
            reza assar
            wrote on last edited by
            #5

            thanks Eddy yes maybe . i will check it and fix it (if there is any) and get the result back hear. any other suggestion?

            L 1 Reply Last reply
            0
            • R reza assar

              thanks Eddy yes maybe . i will check it and fix it (if there is any) and get the result back hear. any other suggestion?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              reza assar wrote:

              any other suggestion?

              It might speed up things if you search (Ctrl-F) the entire solution for "SqlConnection" and add a using-block to each instance found. That would, in theory, dispose of your connection once processing exits the defined scope, and thus, also close it.

              I are Troll :suss:

              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