temp table && check temp table

生成temp表
select * into #Temp_a  from a

'驗測是否在temp表
  sql="select isnull(OBJECT_ID('tempdb..#Temp_material'),0) as temp,"&_
      "isnull(OBJECT_ID('tempdb..##Temp_material_A'),0) as temp_A,"&_
      "isnull(OBJECT_ID('tempdb..##Temp_material_B'),0) as temp_B"
  set rs=conn.execute(sql)
  if (rs(0)<>0 or rs(1)<>0 or rs(2)<>0) then
    msg="系統正忙,請過段時間再查詢."
    response.Write("<script language='javascript'>alert('"&msg&"');</script>")
    rs.close
    conn.close
    response.end()
  end if
  '檢查結束

申明

非源创博文中的内容均收集自网上,若有侵权之处,请及时联络,我会在第一时间内删除.再次说声抱歉!!!

博文欢迎转载,但请给出原文连接。

原文地址:https://www.cnblogs.com/Athrun/p/638391.html