Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Huge data insertion

Author  Topic 

raysefo
Constraint Violating Yak Guru

260 Posts

Posted - 2006-06-12 : 15:47:13
Hi,

i have 4 tables, each consist of app. 10000000 rows.They have same columns (fTime[datetime] and bid[money]).What i wanna do is to collect all of datas into one of the tables, in ascending order by fTime.

PS i wanna do it as fast as possible as well

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-06-12 : 16:18:18
Option 1:
INSERT INTO DestinationTable (...) SELECT ... FROM SourceTable1

Option 2:
Export the data to csv files. Import the data using BULK INSERT.

You will need to test to see which one is faster.

Tara Kizer
aka tduggan
Go to Top of Page
   

- Advertisement -