标签: c# sql database silverlight service
我有此错误消息,但我找不到任何不当行为,帮助?
const string sql = @"SELECT PrimarySchool,TopHonour,Cca,TopStudent,TopAggregate,TopImage FROM Primary";
答案 0 :(得分:9)
primary是TSQL中的reserved keyword。使SELECT ...(snipped)... FROM [Primary]"转义它并指出你的意思是名为Primary的对象。
SELECT ...(snipped)... FROM [Primary]"