Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BULK INSERT 0 rows affected

Status
Not open for further replies.

Dimitrie1

Programmer
Jan 5, 2007
138
CA
I have a csv file and am trying to insert it into a table
it doesn't error it just says 0 rows affected. I am signed on to SQL with SQL Authentication

Code:
BULK INSERT database.dbo.table
   FROM '\\Studebaker\itpmdocs\Business_Proc\Cheque\Test_Subsequent.csv'
with
(
firstrow = 2,
fieldterminator = '\t',
rowterminator = '\n'
)
 
Without seeing your file it's impossible to say what the problem might be.

Post your csv file
 
If the file is CSV why the field terminator is TAB?

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
I can't use comma delimited because there is commas in the data. I was able to get my code to work when I created a tab delimited text file and removed the double quotes it added.

thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top