Hi,
I have been using sql server 2000 for many months successfully importing a flat file into my dbase.
the file has naming data in row 1 before the real data begins in row 2. the last row of the flat file always has a data string which can be ignored.
in 2000 i was using BCP import with cmdshell. now 2005 has come along i am unable to use cmdshell.
i have looked into BULK INSERT and this seems to be my answer however it fails on import saying unexpected end of file, which im putting down to the data string in the last row.
my question is how do i set bulk insert to ignore the last row in the flat file? the row is never the same row so LASTROW is out of the question i assume?
Please guide me!...
Many thanks
Gareth
Start Free Trial