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. General Programming
  3. C#
  4. Lazy Database Access

Lazy Database Access

Scheduled Pinned Locked Moved C#
databasecsharpsql-serversysadmin
4 Posts 4 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.
  • S Offline
    S Offline
    Syed Shahid Hussain
    wrote on last edited by
    #1

    I've more than 24000 records and when i search them, it consume a lot of time and my application suspend for some about 5 to 8 seconds. Is there any way to boots up the access time of records in C# and SQL Server 2000. As compare to vb6 Dot net is very lazy in record access. Thanks.

    Syed Shahid Hussain

    A N B 3 Replies Last reply
    0
    • S Syed Shahid Hussain

      I've more than 24000 records and when i search them, it consume a lot of time and my application suspend for some about 5 to 8 seconds. Is there any way to boots up the access time of records in C# and SQL Server 2000. As compare to vb6 Dot net is very lazy in record access. Thanks.

      Syed Shahid Hussain

      A Offline
      A Offline
      andre_swnpl
      wrote on last edited by
      #2

      Do the search on the SQL server with a stored procedure and create appropriate indexes.

      1 Reply Last reply
      0
      • S Syed Shahid Hussain

        I've more than 24000 records and when i search them, it consume a lot of time and my application suspend for some about 5 to 8 seconds. Is there any way to boots up the access time of records in C# and SQL Server 2000. As compare to vb6 Dot net is very lazy in record access. Thanks.

        Syed Shahid Hussain

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Use asnychronous access.


        only two letters away from being an asset

        1 Reply Last reply
        0
        • S Syed Shahid Hussain

          I've more than 24000 records and when i search them, it consume a lot of time and my application suspend for some about 5 to 8 seconds. Is there any way to boots up the access time of records in C# and SQL Server 2000. As compare to vb6 Dot net is very lazy in record access. Thanks.

          Syed Shahid Hussain

          B Offline
          B Offline
          blakey404
          wrote on last edited by
          #4

          24000 records should still return quicker than 5 to 8 seconds - check the execution plan of your query in query analyzer.

          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