用sqlcommand设定sql语句为
set parseonly on
检查的语句
set parseonly off然后接受返回的例外,例外中有相应的语法信息。
要求sever存在,语句中不能加GO.