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. Help! What's this error?

Help! What's this error?

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadmintesting
5 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.
  • B Offline
    B Offline
    Blue_Skye
    wrote on last edited by
    #1

    Hi! I'm facing an error when i'm testing my program. The error is: If i query, insert ... a big sum of data forward and backward from my SQL Server to my app continuous, a little later, my app can't do any query to SQL Server anymore (even a simplest query string : select * from ...). I don't know why it is happened? Anyone can help me please! I'm too anxious! I don't want my app just can process with a little data :(( Thanks! :) (I'm sorry if my English is too bad :sigh:)

    M 1 Reply Last reply
    0
    • B Blue_Skye

      Hi! I'm facing an error when i'm testing my program. The error is: If i query, insert ... a big sum of data forward and backward from my SQL Server to my app continuous, a little later, my app can't do any query to SQL Server anymore (even a simplest query string : select * from ...). I don't know why it is happened? Anyone can help me please! I'm too anxious! I don't want my app just can process with a little data :(( Thanks! :) (I'm sorry if my English is too bad :sigh:)

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      You didn't mention what language your application was written in. Are you remembering to close your connection to the database when you are finished with it. If you are using a .NET language such as C# or VB.NET are you callng Dispose on your connection object? Michael CP Blog [^] Development Blog [^]

      B 1 Reply Last reply
      0
      • M Michael P Butler

        You didn't mention what language your application was written in. Are you remembering to close your connection to the database when you are finished with it. If you are using a .NET language such as C# or VB.NET are you callng Dispose on your connection object? Michael CP Blog [^] Development Blog [^]

        B Offline
        B Offline
        Blue_Skye
        wrote on last edited by
        #3

        Yes, i did remember close the connection when i am finished but i don't understand the dispose() you recommended here. When i want to query or insert database, i often code it like this: conn.open(); comm.ExecuteNonQuery(); conn.close(); Am i missing something ? :confused: My application was written in C#. Thanks your reply :)

        M 1 Reply Last reply
        0
        • B Blue_Skye

          Yes, i did remember close the connection when i am finished but i don't understand the dispose() you recommended here. When i want to query or insert database, i often code it like this: conn.open(); comm.ExecuteNonQuery(); conn.close(); Am i missing something ? :confused: My application was written in C#. Thanks your reply :)

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          SqlConnection Dispose[^] Michael CP Blog [^] Development Blog [^]

          B 1 Reply Last reply
          0
          • M Michael P Butler

            SqlConnection Dispose[^] Michael CP Blog [^] Development Blog [^]

            B Offline
            B Offline
            Blue_Skye
            wrote on last edited by
            #5

            I'll try it! Thanks! :)

            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