你在asp中的调用代码也写出来.估计是你在asp中调用的参数没有写正确,因为存储过程改为: select * from table 的时候,根本没有用到参数
strsql="exec print_Dw_New '','where 1=1 and dwmc like '%四%川%'' " rs.open strsql,conn,1,1 现在是这样参数不对 错误类型: Microsoft OLE DB Provider for SQL Server (0x80040E14) 第 1 行: '%' 附近有语法错误。
strsql="exec print_Dw_New '','where 1=1 and dwmc like ''%四%川%''' " rs.open strsql,conn,1,1
好像调用写少了单引号strsql="exec print_Dw_New '','where 1=1 and dwmc like ''''%四%川%'''''" rs.open strsql,conn,1,1
select * from table
的时候,根本没有用到参数
rs.open strsql,conn,1,1
现在是这样参数不对
错误类型:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
第 1 行: '%' 附近有语法错误。
rs.open strsql,conn,1,1
rs.open strsql,conn,1,1