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