Solved

Bulk Inserts

Posted on 2006-07-11
5
302 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
Comment Utility
What about DTS and BCP
0
 
LVL 11

Assisted Solution

by:sparab
sparab earned 166 total points
Comment Utility
You can use Select ..... into statement

It is faster too....
0
 
LVL 28

Assisted Solution

by:imran_fast
imran_fast earned 166 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now