Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Bulk Inserts

Posted on 2006-07-11
5
Medium Priority
?
310 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 672 total points
ID: 17082548
What about DTS and BCP
0
 
LVL 11

Assisted Solution

by:sparab
sparab earned 664 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 664 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

886 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