查询已停止的应用程序启动

时间:2014-05-11 16:34:25

标签: asp.net sql-server-2008

如果修改查询,我的应用程序无法启动;

此查询的应用程序正常运行:

String query_str = "SELECT * FROM [" + TAdvert_table + "] WHERE [Country]='GLOBAL' AND [Viewed] IS NULL";

并且应用程序无法通过修改查询启动:

String query_str = "SELECT * FROM [" + TAdvert_table + "] WHERE ([Country]='GLOBAL' AND [Viewed] IS NULL) AND ([DateStart]=cast('"+Cdate+"' as DATE))";

0 个答案:

没有答案