Solved

Bulk Inserts

Posted on 2006-07-11
5
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

628 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