I have a ZIP table with Zip_Code, Zip_City, Zip_State and the text file has the fields in Zip_City, Zip_State, Zip_Code. The instructions were to keep the order as defined in the Entity Definition which would be the first order.
My code for the bulk insert is usually
Expand|Select|Wrap|Line Numbers
- BULK INSERT DB2914.dbo.[ZIP]
- FROM 'C:\Documents and Settings\Jthep\My Documents\SQL Server Management Studio\Projects\S2914-HW3\ZIP_data.txt'
- WITH (FIELDTERMINATOR = ',', ROWTERMINATOR = '\n')