Skip to content
Advertisement

Incorrect syntax near the keyword ‘Table’ C# SQL [closed]

Hello I’m trying to figure out why i have this error

Incorrect syntax near the keyword ‘Table’.

Thx in advance

Code :

Server Explorer :

enter image description here

Advertisement

Answer

That happens because TABLE is a reserved keyword for T-SQL.
If you really need to use that name, your query should enclose TABLE in square brackets

I strongly suggest to change that name and use a more descriptive word for the content of that table

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement