临时表有什么办法删除掉?比较急

临时表有什么办法删除掉?比较急

作者: slyNS   发布时间: 2011-06-10

drop table #tb
不删也自己会没有啊

作者: aspwebchh   发布时间: 2011-06-10

drop table #tb或者重启一下sql服务

作者: cd731107   发布时间: 2011-06-10

select * from sysobjects where name like '#t_% '
有好久的了,但是还没有自动清掉

作者: slyNS   发布时间: 2011-06-10

不会吧,临时表没自动删掉,那你的这个有问题呢

作者: mingpei0703   发布时间: 2011-06-10

引用 3 楼 slyns 的回复:
select * from sysobjects where name like '#t_% '
有好久的了,但是还没有自动清掉

SQL code
 你关掉 连接就会自动删除的了,还是手工删除吧
  drop table #tb

作者: abcjun188   发布时间: 2011-06-10

drop table tempdb..#tb

作者: ldslove   发布时间: 2011-06-10

作者: claro   发布时间: 2011-06-10