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 |
shadowi
Starting Member
3 Posts |
Posted - 2006-10-07 : 01:13:14
|
OPENROWSET('MSDASQL','Driver={Microsoft Text Driver (*.txt; *.csv)};DEFAULTDIR=C:\;Extensions=CSV;','SELECT * FROM abc.csv')ID, Name, Tel,12, Peter, 63783434, Mary, (853)3434343443, John, 234238I find that the the 2nd row, tel column will return nullI think it is the mixed-type problem but it seems that "IMEX=1" doesn't work with CSV file, what can i do for this? Please Help... ><" |
|
shadowi
Starting Member
3 Posts |
Posted - 2006-10-07 : 01:19:08
|
ID, Name, Tel,12, Peter, 63783434, Mary, (853)3434343443, John, 23423832, "Henry, Yu", 4234234Because of the "Henry, Yu", I can't use bulk insert with format file as "," <-- will become a field termintor ><" |
|
|
|
|
|
|
|