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 2008

SQL Server 2008

Scheduled Pinned Locked Moved Database
helpdatabasesql-serversysadminquestion
8 Posts 5 Posters 1 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.
  • M Offline
    M Offline
    Member 4650287
    wrote on last edited by
    #1

    Dear All, We have a table with millions of records,i created a Windows application to retrieve data from mentioned table,it taking too much time to get result,I loaded data in the form load event,its stucking for few minutes to display as data is too much. anyone can help me out to find any way to retrieve data w/o stuck the application? thanks

    B C T J 4 Replies Last reply
    0
    • M Member 4650287

      Dear All, We have a table with millions of records,i created a Windows application to retrieve data from mentioned table,it taking too much time to get result,I loaded data in the form load event,its stucking for few minutes to display as data is too much. anyone can help me out to find any way to retrieve data w/o stuck the application? thanks

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Do you really need to load million of rows from table on load of form?


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

      M 1 Reply Last reply
      0
      • B Blue_Boy

        Do you really need to load million of rows from table on load of form?


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

        M Offline
        M Offline
        Member 4650287
        wrote on last edited by
        #3

        No ... I realized

        B 1 Reply Last reply
        0
        • M Member 4650287

          Dear All, We have a table with millions of records,i created a Windows application to retrieve data from mentioned table,it taking too much time to get result,I loaded data in the form load event,its stucking for few minutes to display as data is too much. anyone can help me out to find any way to retrieve data w/o stuck the application? thanks

          C Offline
          C Offline
          Corporal Agarn
          wrote on last edited by
          #4

          Besides adding criteria (WHERE) to the data request look into indexes.

          1 Reply Last reply
          0
          • M Member 4650287

            No ... I realized

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

            Member 4650287 wrote:

            I realized

            You realized what?


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

            1 Reply Last reply
            0
            • M Member 4650287

              Dear All, We have a table with millions of records,i created a Windows application to retrieve data from mentioned table,it taking too much time to get result,I loaded data in the form load event,its stucking for few minutes to display as data is too much. anyone can help me out to find any way to retrieve data w/o stuck the application? thanks

              T Offline
              T Offline
              thatraja
              wrote on last edited by
              #6

              Use paging and filtering in result-set. Look at this article. SQL Server Paging Results[^]

              thatraja


              **My Tip/Tricks
              My Dad had a Heart Attack on this day so don't...
              **

              M 1 Reply Last reply
              0
              • M Member 4650287

                Dear All, We have a table with millions of records,i created a Windows application to retrieve data from mentioned table,it taking too much time to get result,I loaded data in the form load event,its stucking for few minutes to display as data is too much. anyone can help me out to find any way to retrieve data w/o stuck the application? thanks

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

                You can't be creating a report with millions of lines. So you are actually creating something else. Instead of getting those millions of lines and then processing them you should write a stored procedure that gets only the data you need.

                1 Reply Last reply
                0
                • T thatraja

                  Use paging and filtering in result-set. Look at this article. SQL Server Paging Results[^]

                  thatraja


                  **My Tip/Tricks
                  My Dad had a Heart Attack on this day so don't...
                  **

                  M Offline
                  M Offline
                  Member 4650287
                  wrote on last edited by
                  #8

                  thanks for replies

                  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