What's Difference between checking permanent and temporary tables?

 Posted by vishalneeraj-24503 on 11/3/2014 | Category: Sql Server Interview questions | Views: 223 | Points: 40
Answer:

We have to write below query:-

//temporary table
if(object_id('tempdb..#Employee') is not null)

drop table #Employee;


//permanent table
if(object_id('Employee1') is not null)

drop table Employee1;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response