Temp DB
-
2012년 7월 27일 금요일 오후 3:03
Hi guys ..
we have one stored procedure running through front end application . That procedure creates temp table (#) but in procedure there is no DROP command for temp table at the end. So what would be happening with that temp table ?
That temp table resides always in tempdb or automatically dropped after SP finish execution?
Thanks...
Ankit Shah SQL Server DBA
모든 응답
-
2012년 7월 27일 금요일 오후 3:10
Temp Table will be destored by SQL Server engine automatically after the connection that created temp table closes.
So temp table exists as long as connection that created temp table exists, as connection that created temp table get destoryed so does the temp table.
Yes, temp table exists in TempDB and it will be automatically dropped after SP finishes execution.
- 편집됨 Chirag Shah 2012년 7월 27일 금요일 오후 3:12
- 답변으로 제안됨 vr.babu 2012년 7월 27일 금요일 오후 3:19
- 답변으로 제안 취소됨 vr.babu 2012년 7월 27일 금요일 오후 3:19
- 답변으로 제안됨 vr.babu 2012년 7월 27일 금요일 오후 3:19
- 답변으로 표시됨 Logicinisde 2012년 7월 27일 금요일 오후 3:21

