Why would you Truncate immediately before Dropping a temp table?

Posted by d03boy on Stack Overflow See other posts from Stack Overflow or by d03boy
Published on 2010-04-09T15:25:19Z Indexed on 2010/04/10 0:43 UTC
Read the original article Hit count: 367

Filed under:
|
|

I see some code where the author has truncated a temp table immediately before dropping the temp table. Is there a reason for doing this?

TRUNCATE TABLE #Temp
DROP TABLE #Temp

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about tsql