如何查询出SQL语句?
我在执行下列语句时,经常出错,原因是v_where定义错误。但现在想查询出具体的SQL语句,以便能够更改v_where语句。怎么查??
Set RsBrowse = conn.execute("SELECT * FROM dbo.eos_prepare where "&v_where&" order by prepare_no")
...全文
404打赏收藏
如何查询出SQL语句?
如何查询出SQL语句? 我在执行下列语句时,经常出错,原因是v_where定义错误。但现在想查询出具体的SQL语句,以便能够更改v_where语句。怎么查?? Set RsBrowse = conn.execute("SELECT * FROM dbo.eos_prepare where "&v_where&" order by prepare_no")
on error resume next
Set RsBrowse = conn.execute("SELECT * FROM dbo.eos_prepare where "&v_where&" order by prepare_no")
response.write err.description
response.end
Set RsBrowse = Server.CreateObject("ADODB.Recordset")
strsql=SELECT * FROM dbo.eos_prepare where "&v_where&" order by prepare_no"
Response.Write strsql ''查看SQL语句
RsBrowse.open strsql,conn,1,1 ''运行