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. Sql Server Fetching Data

Sql Server Fetching Data

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

    Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

    G S S J L 5 Replies Last reply
    0
    • R Ravi_21

      Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

      G Offline
      G Offline
      Groulien
      wrote on last edited by
      #2

      Returning thousands of rows is usually not the problem. The problem is usually in the query (your stored procedure). It might help if you were to post the Stored Procedure?

      1 Reply Last reply
      0
      • R Ravi_21

        Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

        S Offline
        S Offline
        Simon_Whale
        wrote on last edited by
        #3

        Without your query I can only suggest things to try as I had to do something similar just recently 1. Break your query down into sections and find what part is slow 2. Indexing your data. or like the other poster suggested, post your query

        Nagy Vilmos wrote:

        And eat bacon. Bacon's real important for 'puters.

        1 Reply Last reply
        0
        • R Ravi_21

          Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

          S Offline
          S Offline
          SilimSayo
          wrote on last edited by
          #4

          The general answer is write more efficient code. Since you haven't posted your code, we can't tell you where to improve it.

          1 Reply Last reply
          0
          • R Ravi_21

            Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            In general you shouldn't be attempting to display "thousands" of records in the first place. This typically occurs in list box type displays for users who are interested in looking at the records. But those users don't want 'thousands" what they want is a very small subset very likely one record. And they know what they are looking for. So only display the single record they are looking for.

            1 Reply Last reply
            0
            • R Ravi_21

              Hi there, i have a sql server table there i have thousands of record and when i call it from Stored procedure then it will take very huge time to display records how can i make Fast. Thanks in Advance

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

              Posting your query will help us determine your problem, but here are some general tips: 1. Index your table(s) properly. 2. Select only the required rows using a properly constructed WHERE clause. 3. Select only the required columns.

              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