Hi Friends
I want to know the differenece between Local and a Global temporary table in SQL ?
Global temporary table in SQL
1 Answer
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
Sukesh MarlaRank #461 · 5.4K reputationPosted Aug 18, 2012, 11:30 PM EDT
1. It wont be accessible for other sessions in sql server
2. It will be removed when session1 closes.
For every session there will be unique local temporary table.
Consider in session1 a globaltemporary table(##SukeshGTable) is created ,Then
1.IT will be accessible for all the sessions like session 2,session 3...If anyone try to create with same name again they get error.
2.it will be removed when session 1 closes.
Check this is correct answer if it helped