SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data Import/Export Wizard


Data Import/Export Wizard

Author
Message
JWOL
JWOL
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1329 Visits: 1253
Can anyone tell me why the data import/export wizard is so much faster than using T-SQL to shift data from one table to another? Moving 1m rows between instances only took about a minute using the wizard but over an hour using an INSERT/SELECT statement across a linked server.
Key DBA
Key DBA
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1721 Visits: 655
In an nutshell the Import/Export Wizard creates an SSIS (SQL Server Integration Services) package for you. The SSIS engine is the second generation DTS engine from SQL Server 2000.

The SSIS "front end" is the Business Intelligence Development Studio or BIDS under START >> All Programs >> Microsoft SQL Server 2005 >> SQL Server Business Intelligence Development Studio. It is has a Visual Studio-like screen design and layout.


For more information see:

SQL Server 2005 Books Online (September 2007)
SQL Server Integration Services

http://msdn2.microsoft.com/en-us/library/ms141026.aspx


Hope This Helps

"Key"
MCITP: DBA, MCSE, MCTS: SQL 2005, OCP
Greg Charles
Greg Charles
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11515 Visits: 5985
And SSIS uses Bulk Insert which is a lot faster when copying a large amount of data.

Greg
dtevlin
dtevlin
SSC-Enthusiastic
SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)SSC-Enthusiastic (192 reputation)

Group: General Forum Members
Points: 192 Visits: 77
In a nutshell what I think you are looking at is the difference in 1M seperate insert/ update statements vs a batch transaction of one insert/update statement that contains 1M additions. So the overhead is accounted for by all the times the 1M seperate insert statements are committing data back to the database which is 1M times vs. once for the batch. This is set theory in practice.

--Dave



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search