谁能够帮我纠错上面这段代码
我用查询分析器能够得出结果,我在asp中就打不开了,不知道为什么

解决方案 »

  1.   

    那就是ASP里调用有错啊!!转到ASP里去问吧!
      

  2.   

    asp应该没有问题,我把我的存储过程改为select * from table 没有问题
      

  3.   

    你在asp中的调用代码也写出来.估计是你在asp中调用的参数没有写正确,因为存储过程改为:
    select * from table 
    的时候,根本没有用到参数
      

  4.   

    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 行: '%' 附近有语法错误。
      

  5.   

    strsql="exec print_Dw_New '','where 1=1 and dwmc like ''%四%川%''' "
    rs.open strsql,conn,1,1
      

  6.   

    好像调用写少了单引号strsql="exec print_Dw_New '','where 1=1 and dwmc like ''''%四%川%'''''"
    rs.open strsql,conn,1,1