Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Deallocating Objects

Author  Topic 

mmdullah
Starting Member

10 Posts

Posted - 2009-06-17 : 06:16:52
Hi all,
I have a stored procedure in which I have to declare a table variable. I populate the variable from cursor data and manipulate operations. now my question is "do I need to deallocate the table? Remember that it is a varriable of type object."
thanks for your help
mir

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-17 : 06:41:01
The answer for your homework question is "No".
All temporary objects are automatically deleted when procedure is ending.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -