Home Forums SQL Server 2008 T-SQL (SS2K8) Bulk Insert from file to table RE: Bulk Insert from file to table
Ant-Green
SSC Guru
Points: 113445
More actions
January 28, 2013 at 4:56 am
#1581548
bulk insert ... from '...' with (fieldterminator = ',', rowterminator = ', \ n') --Remove the spaces between , \ n
Need to ensure that there is a carrage return at the end of the last line in the file
1,2,3,(CR)
4,5,6,(CR)
7,8,9,(CR)