Posted by: virusno1 September 30, 2010
how to find SPID of client program in SQL-Server
Login in to Rate this Post:     0       ?        
hareeb, If exists with condition makes sure that temp table is not created already. This is the best practice while creating any temp table. and Yes temp table is a session label variable. It will be destroyed when your session close. I dropped the table table because what if you need to run that command again and again (like with 10 minute interval). Write a extra few extra lines for code doesn't harm at all :). Well, you will soon understand the importance of if Exist when you write a big queries for production dbs and best of luck for that
Read Full Discussion Thread for this article