Incorrect syntax next to the keyword "Primary"

I have this error message, but I can not find any errors, help?

const string sql = @"SELECT PrimarySchool,TopHonour,Cca,TopStudent,TopAggregate,TopImage FROM Primary"; 
+6
source share
1 answer

primary is a reserved keyword in TSQL. Make it SELECT ...(snipped)... FROM [Primary]" to avoid it and indicate that you mean an object named Primary.

+9
source

Source: https://habr.com/ru/post/887600/


All Articles