What is ## infront of table in sqlserver
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Dec 6, 2012, 7:09 PM EST
single hash (#) stands for local temporary tables
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Dec 6, 2012, 7:19 PM EST
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.