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.
Author |
Topic |
sanjay5219
Posting Yak Master
240 Posts |
Posted - 2014-12-22 : 03:49:06
|
Hi All,I have a Excel File which is having three columnsRoll varchar(100)Name varchar(100)DOJ datetimeHow can I upload this in SQL via BCP CommansPlease Suggest |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
sz1
Aged Yak Warrior
555 Posts |
Posted - 2014-12-22 : 07:32:47
|
you can save the xlsx file as a tab-delimited text file and do BULK INSERT TableName FROM 'C:\SomeDirectory\my table.txt' WITH ( FIELDTERMINATOR = '\t', ROWTERMINATOR = '\n' )GOWe are the creators of our own reality! |
|
|
|
|
|