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. insert more than 50,000 records

insert more than 50,000 records

Scheduled Pinned Locked Moved Database
databasequestion
4 Posts 3 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.
  • G Offline
    G Offline
    ganeshMohan
    wrote on last edited by
    #1

    hai i have more than 50,000 records in excel. i want to insert into a table which is in a sqlserver 2000 database. it takes more time, sometimes it shows timeout expired. is any simplest way to insert the data shortest period? Thanks advance Ganesh Mohan

    _ 1 Reply Last reply
    0
    • G ganeshMohan

      hai i have more than 50,000 records in excel. i want to insert into a table which is in a sqlserver 2000 database. it takes more time, sometimes it shows timeout expired. is any simplest way to insert the data shortest period? Thanks advance Ganesh Mohan

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Upload the excel file to your SQL Server, then use SQL Server Data Transformation Services (DTS) to open the file and insert the data into your table for you. It should take a few seconds at most...

      ------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!

      G 1 Reply Last reply
      0
      • _ _Damian S_

        Upload the excel file to your SQL Server, then use SQL Server Data Transformation Services (DTS) to open the file and insert the data into your table for you. It should take a few seconds at most...

        ------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!

        G Offline
        G Offline
        ganeshMohan
        wrote on last edited by
        #3

        Thanks it works fine. IF anyone known about BCP related to this synario, please explain Thanks in Advance

        A 1 Reply Last reply
        0
        • G ganeshMohan

          Thanks it works fine. IF anyone known about BCP related to this synario, please explain Thanks in Advance

          A Offline
          A Offline
          andyharman
          wrote on last edited by
          #4

          BCP only works with ASCII text files. You would have to save the contents of your spreadsheet as CSV or tab-separated files first.

          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