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. ASP.NET
  4. Sql Time Out Problem

Sql Time Out Problem

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpasp-netsysadmin
8 Posts 6 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.
  • V Offline
    V Offline
    vishnukamath
    wrote on last edited by
    #1

    Hi, In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I Tried A lot Of Ways For Solving This Problem..But No One worked. Thanks In Advance, Vishnu

    G F J H 4 Replies Last reply
    0
    • V vishnukamath

      Hi, In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I Tried A lot Of Ways For Solving This Problem..But No One worked. Thanks In Advance, Vishnu

      G Offline
      G Offline
      Goutam Patra
      wrote on last edited by
      #2

      vishnukamath wrote:

      I Tried A lot Of Ways For Solving This Problem.

      Have you tried

      cmd.CommandTimeout = 10000;

      V 1 Reply Last reply
      0
      • G Goutam Patra

        vishnukamath wrote:

        I Tried A lot Of Ways For Solving This Problem.

        Have you tried

        cmd.CommandTimeout = 10000;

        V Offline
        V Offline
        vishnukamath
        wrote on last edited by
        #3

        thanks for replying Me Sir, Im Using The Select Query to Get the data in to datatable by using dataadapter. when im debugging and when the cursor came to adapter.fill(datatable). it is going into the catch and the error is comming like: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. thanks in advance, vishnu

        G 1 Reply Last reply
        0
        • V vishnukamath

          thanks for replying Me Sir, Im Using The Select Query to Get the data in to datatable by using dataadapter. when im debugging and when the cursor came to adapter.fill(datatable). it is going into the catch and the error is comming like: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. thanks in advance, vishnu

          G Offline
          G Offline
          Goutam Patra
          wrote on last edited by
          #4

          vishnukamath wrote:

          Im Using The Select Query to Get the data in to datatable

          Post the code you are using

          1 Reply Last reply
          0
          • V vishnukamath

            Hi, In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I Tried A lot Of Ways For Solving This Problem..But No One worked. Thanks In Advance, Vishnu

            F Offline
            F Offline
            fjdiewornncalwe
            wrote on last edited by
            #5

            Is the table very large, or are there a bunch of joins in the query? Are the tables being referenced properly indexed. If they aren't, doing so could substantially increase the performance of the query.

            I wasn't, now I am, then I won't be anymore.

            D 1 Reply Last reply
            0
            • F fjdiewornncalwe

              Is the table very large, or are there a bunch of joins in the query? Are the tables being referenced properly indexed. If they aren't, doing so could substantially increase the performance of the query.

              I wasn't, now I am, then I won't be anymore.

              D Offline
              D Offline
              David Mujica
              wrote on last edited by
              #6

              I would use the MS-SQL Profiler to obtain statistics about the query you are trying to execute. Check the execution plan and verify that you are not doing lots of table (or index) scans. Your problem also sounds like you might be trying to retrieve too many records at once. How many records are expected to be returned ? Maybe you should be using a data reader. Just a few thoughts. good luck.

              1 Reply Last reply
              0
              • V vishnukamath

                Hi, In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I Tried A lot Of Ways For Solving This Problem..But No One worked. Thanks In Advance, Vishnu

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                Why Are You Posting Everything In Title Case? Isnt It A Lot Of Work To Keep Pressing The Shift Key At The Start Of Every Word?

                1 Reply Last reply
                0
                • V vishnukamath

                  Hi, In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I Tried A lot Of Ways For Solving This Problem..But No One worked. Thanks In Advance, Vishnu

                  H Offline
                  H Offline
                  Hiren solanki
                  wrote on last edited by
                  #8

                  vishnukamath wrote:

                  I Tried A lot Of Ways For Solving This Problem

                  I don't think you might have tried. This is a simple problem having simple solution. SELECT statement inside your program could not be accomplished with the default connection time limit. so Try by increasing connection timeout inside your connection object. I bet it will work like a charm. Thanks, Hiren

                  Regards, Hiren. "We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made." - Einstein Microsoft Dynamics CRM

                  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