IT
Inport/Export Data from another database/file
시현이는 못말려
2012. 2. 18. 06:38
BULK INSERT MyTableName FROM 'C:\TargetFile.csv'
WITH (FIELDTERMINATOR = ',');
SELECT *
INTO DestinationDB..MyDestinationTable
FROM SourceDB..MySourceTable
It will not copy constaints, defaults or indexes. The table created will not have a clustered index.
Alternatively you could:
INSERT INTO DestinationDB..MyDestinationTable
SELECT * FROM SourceDB..MySourceTable