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
 CSV file into database table

Author  Topic 

kneel
Starting Member

36 Posts

Posted - 2007-09-26 : 00:18:09
Hello All,

Does anybody knows,how to insert data from CSV file into database table ?



--kneel

pravin14u
Posting Yak Master

246 Posts

Posted - 2007-09-26 : 01:18:19
Use "Import data" wizard (You can get this by right clicking the database , All Tasks->Import Data)
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-26 : 01:54:40
Are you going to do this on a regular basis?
Then you might want to check out DTS or SSIS.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Jeff Moden
Aged Yak Warrior

652 Posts

Posted - 2007-09-26 : 01:56:30
If it's a LOT of data, check out the performance of either BCP (2nd fastest) or BULK INSERT (fastest).

All of the information for both is in Books Online.

--Jeff Moden
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-09-26 : 05:52:25
Is BCP really slower than BULK INSERT? (particularly if using the "import file is presorted on clustered index keys" route)

Kristen
Go to Top of Page
   

- Advertisement -