Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Bulk Insert Help Needed

$
0
0

Please help.... Thanks in advance

I know all the text qualifiers can be solved in XML, here is the link...but this is not resolving the last record of my csv file, which is blank.

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c484899e-6d77-4441-9737-696d6299bb85/help-with-bulk-insert-with-text-qualifier-

Data in CSV File

ID, Name ,Phone
100983, "Jones, Frank",555-1212
118928,"Joe",5 mngh 55-1313
115454,,555-1414

Using Bulk insert data is going like this

ID          Name        Phone 
100983 "Jones       Frank"       555-1212
118928 "Joe"          555-1313 115454..555-1414 

What is expected

ID         Name              Phone 
100983 Jones, Frank  555-1212
118928  Joe               555-1313
115454                       555-1414 


Viewing all articles
Browse latest Browse all 23857

Trending Articles