Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HowTo: Release a Table variable
Message
From
12/01/2005 12:02:22
 
 
To
12/01/2005 10:15:09
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00976391
Message ID:
00976453
Views:
23
>Fabio,
>
>I'm not sure that you can release declared variables. Their scope is only to the SP, so they're gone when the SP is done anyway. That's not good enough?
>
>~~Bonnie

Absolutely not.
A stored procedures can be much complex and the created temporary tables can be many,
and the duration can be much long (also 1 hour);
if all this comes projected with the access of 1000 or more customers,
the memory allocation becomes much inefficient one.

Too much difficult to make a RELEASE @Table?

Another mystery ?

Fabio

Of course i can use a CREATE TABLE #blabla, but the point is not this.

>
>>I'm not able to found a command for release a Declared Table variable.
>>
>>I cannot think that a way does not exist.
>>If I write a sp very complex one,
>>where i declare 300 table variables !!!
>>
>>Thanks
>>Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform