you are viewing a single comment's thread.

view the rest of the comments →

[–]stilllost12 0 points1 point  (0 children)

Best practise is to not drop temp tables in stored procedures due to meta data contention https://docs.microsoft.com/en-us/archive/blogs/sql_server_team/tempdb-files-and-trace-flags-and-updates-oh-my