Solved

Bulk Inserts

Posted on 2006-07-11
5
306 Views
Last Modified: 2012-06-21
Currently I read in a file and then take each line from the file and run an INSERT statement. A bulk insert would be much faster however getting all the SQL servers to give the appropriate permissions would be too difficult right now.

Is there any other way to speed up the INSERTS?

Thanks
0
Comment
Question by:tricks801
5 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 168 total points
ID: 17082548
What about DTS and BCP
0
 
LVL 11

Assisted Solution

by:sparab
sparab earned 166 total points
ID: 17083224
You can use Select ..... into statement

It is faster too....
0
 
LVL 28

Assisted Solution

by:imran_fast
imran_fast earned 166 total points
ID: 17089495
Which version of sql you are using.

for sql 2000 DTS will be much faster and you need write persmission on the table where you are inserting records
for sql 2005 SQL integration services will do the same.

They are faster than reading record one by one. offcourse the DTS (SSIS) functionality in sql 2005 is much faster than dts in 2000
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question