Ok, I had this code before and now I can't find it, how do I get the code do drop a temp table at the start of my query.
Right now I am saying
Drop table #Temp
Select top 10 * from tableX into #TEMP
The first time that I run this I get an error statement, I need to put something into an SP and I have a lot of temp tables, I can't remember the code.