0

Please help. This is the Bulk insert code to insert Employee data into SQL server 2019.The data is being inserted. but still with quotes. How to insert data without quotes? Please let me know what wrong AM' I doing?

BULK INSERT dbo.tblActiveDirData FROM 'E:\EmployeeData\ATadUserlistDB.csv' WITH ( DATAFILETYPE = 'char', FIRSTROW = 2, FIELDTERMINATOR= ',', ROWTERMINATOR = '\n' ) 
1
  • You didn't specify that fields are quoted Commented Apr 15, 2022 at 14:20

1 Answer 1

1

This worked:

BULK INSERT Test_CSV FROM 'C:\MyCSV.csv' WITH ( FORMAT='CSV'); 

No other other code with field terminator, datafiletype was needed

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.