1

I have this code: BULK INSERT [custdb].[dbo].[TB_T_DISP_PARTY] FROM 'd\DB\dbo.TB_T_DISP_PARTY.csv' WITH ( FIRSTROW = 2, FORMAT = 'CSV' );

And then I get this error

'Msg 102, Level 15, State 1, Line 6 Incorrect syntax near'FORMAT'.'

Can somebody tell me how to fix this error?

2
  • FORMAT only works on SQL 2017 and higher. What version are you running? Commented Jul 1, 2020 at 10:07
  • I tried both SQL2017 and SQL 2018 but can't. Commented Jul 1, 2020 at 10:10

1 Answer 1

1

It just bcoz of Version Difference

It is just bcoz of Version Difference

FORMAT = 'CSV' Applies to: SQL Server 2017 + Versions

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

1 Comment

I tried to copy the correct path, but still can't run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.