and they introduce additional overhead costs in the Database Engine.
dropped, truncated, and rebuilt just like in SQL Server 2000. This
Dean wrote:
> Hi,
>
> I need some clarification.
>
> A few days ago, at our UG meeting, we had a discussion about some less-known new features in SQL Server 2005. Among these, deferred drop of large temporary objects - as described in
http://www.microsoft.com/technet/prodtechnol/sql/2005/workingwithtempdb.mspx - was mentioned. An MVP, who made the presentation, stated that this deferred drop happens only when the object goes out of scope, and if it's not explicitly dropped. It somehow didn't sound right (being told, in a way, that cleaning up after myself is not only unnecessary, but actually a bad thing performace-wise), so I did some testing, and it seems that the drop is deferred regardless of how the object was dropped - explicitly (with DROP TABLE) or implicitly (when going out of scope). Of course, I might be wrong, and my testing method could be incorrect.
>
> Could someone please give the definitive answer to this - is it a prerequisite for the deferred drop to happen that the object is not dropped explicitly?
>
> Thanks,
>
> Dean
> ------=_NextPart_000_00BA_01C6D459.E1D41BB0
> Content-Type: text/html; charset=iso-8859-2
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 2109
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
> <META content="MSHTML 6.00.2900.2963" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>I need some clarification. </FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>A few days ago, at our UG meeting, we had a
> discussion about some less-known new features in SQL Server 2005. Among these,
> deferred drop of large temporary objects - as described in <A
> onclick="return top.js.OpenExtLink(window,event,this)"
> href="
http://www.microsoft.com/technet/prodtechnol/sql/2005/workingwithtempdb.mspx" > target=_blank>http://www.microsoft.com<WBR>/technet/prodtechnol/sql/2005<WBR>/workingwithtempdb.mspx</A>
> - was mentioned. An MVP, who made the presentation, stated that this deferred
> drop happens only when the object goes out of scope, and if it's not
> explicitly dropped. It somehow didn't sound right (being told, in a way, that
> cleaning up after myself is not only unnecessary, but actually a bad thing
> performace-wise), so I did some testing, and it seems that the drop is
> deferred regardless of how the object was dropped - explicitly (with DROP TABLE)
> or implicitly (when going out of scope). Of course, I might be wrong, and
> my testing method could be incorrect.</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>Could someone please give the definitive answer to
> this - is it a prerequisite for the deferred drop to happen that the object is
> not dropped explicitly?</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>Dean</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_00BA_01C6D459.E1D41BB0--