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 Insert Query

Lazy Insert Query

Scheduled Pinned Locked Moved C#
databasesql-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 two tables and while insertion I've to face lazy response. The query takes much time to insert record. Any suggestion is welcomed. I'm usiing SQL Server 2000. Thanks

    Syed Shahid Hussain

    G A S 3 Replies Last reply
    0
    • S Syed Shahid Hussain

      I've two tables and while insertion I've to face lazy response. The query takes much time to insert record. Any suggestion is welcomed. I'm usiing SQL Server 2000. Thanks

      Syed Shahid Hussain

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      Syed Shahid Hussain, What are you asking for? Ways to speed up the insert? Well, you'll need to give us some code to see what you currently do, and how many rows are you inserting?, also, have a google for Bulk Copy (BCP) or read http://www.codeproject.com/KB/database/SqlBulkCopy.aspx[^]

      1 Reply Last reply
      0
      • S Syed Shahid Hussain

        I've two tables and while insertion I've to face lazy response. The query takes much time to insert record. Any suggestion is welcomed. I'm usiing SQL Server 2000. Thanks

        Syed Shahid Hussain

        A Offline
        A Offline
        Abdul Rahman Hamidy
        wrote on last edited by
        #3

        one way you can speed up insertion is using stored prcedure which is precompiled code. try to use store proc plz

        Abdul Rahaman Hamidy Senior Student Student in Computer Science Kabul, Afghanistan Software Developer

        1 Reply Last reply
        0
        • S Syed Shahid Hussain

          I've two tables and while insertion I've to face lazy response. The query takes much time to insert record. Any suggestion is welcomed. I'm usiing SQL Server 2000. Thanks

          Syed Shahid Hussain

          S Offline
          S Offline
          sarvesh upadhyay
          wrote on last edited by
          #4

          Hi syed, You can check 1. whether over indexing is used in the table. 2. use stored procedure. 3. whether u r inserting multiple records at a time? 4. please give complete picture of your work.

          Sarvesh Upadhyay Senior Software Engineer Birlasoft India Ltd. Microsoft Certified Professional Developer in Dotnet 2.0 Enterprise Application

          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