Ensure temporary tables are always deleted within stored procedure

前端 未结 0 959
不思量自难忘°
不思量自难忘° 2021-02-04 07:49

I have an ASP.NET MVC app published in IIS Server which calls an SP:

BEGIN

if OBJECT_ID(N\'tempdb..#MyTempTable\') IS NOT NULL
BEGIN
  DROP TABLE #MyTempTable
EN         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题