what is ## infront of table in sqlserver
what is ## infront of table in sqlserver
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep Singh ShekhawatPosted Dec 7, 2012, 12:19 AM
Both represent temp table.
In both case temp table create in Temp database.
Both type temp table accessible in different store procedure.
Now question arise when both have same working then what are differences in local temp table and global temp table?
The global temp table(##) is accessible for different user login with same data but local temp table(#) has data for particular user login. means the difference is for different user use same table(##) and different users have different temp tables(#).
Hope It will be helpful.
Santhosh Kumar JayaramanPosted Dec 7, 2012, 12:09 AM
single hash (#) stands for local temporary tables