question

Todd Reddinger avatar image
Todd Reddinger asked

Incorrect syntax near the keyword 'with'.

I have been getting this error a lot and need direction on how to find what exactly is causing it.

These are the errors coming from sp_readerrorlog

Log Date Process Info Message
May 24 2021 4:55AM spid19s Incorrect syntax near the keyword 'with'.

May 24 2021 4:55AM spid19s Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

sql2012errors
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.