<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Diferenta intre TRUNCATE TABLE si DELETE</title><link>http://sqlserver.ro/forums/thread/5051.aspx</link><pubDate>Sun, 01 Jun 2008 13:25:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5051</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5051.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5051</wfw:commentRss><description>O difetenta notabila ar fi la campurile identioty.La truncate conturul de identity se seteaza la zero iar la delete nu</description></item><item><title>Re: Diferenta intre TRUNCATE TABLE si DELETE</title><link>http://sqlserver.ro/forums/thread/5045.aspx</link><pubDate>Fri, 30 May 2008 17:14:39 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5045</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5045.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5045</wfw:commentRss><description>&lt;P&gt;Vezi &lt;A href="http://sqlblog.com/blogs/denis_gobo/archive/2007/06/13/1458.aspx"&gt;http://sqlblog.com/blogs/denis_gobo/archive/2007/06/13/1458.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pentru diferentele intre TRUNCATE si DELETE&amp;nbsp;din punct de vedere al informatiei inregistrate in log, vezi BOL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Diferenta intre TRUNCATE TABLE si DELETE</title><link>http://sqlserver.ro/forums/thread/5044.aspx</link><pubDate>Fri, 30 May 2008 14:33:52 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5044</guid><dc:creator>miralon</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5044.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5044</wfw:commentRss><description>&lt;P&gt;Revin cu o observatie. &lt;/P&gt;
&lt;P&gt;In postul anterior nu am specificat faptul ca "cercetarea" pe care am facut-o se refera la SQL Server 2000...unde nu am clauza"OUTPUT" in sintaxa comenzii DELETE. Referindu-ma la SQL 2005...pot spune ca afirmatia ca DELETE permite "rollback" e adevarata...&lt;/P&gt;
&lt;P&gt;Alte pareri? Ati folosit aceasta facilitate a SQL 2005? Eu, sincer, nu... nici nu m-am intrebat daca pot face rollback altfel decat intr-o tranzactie explicita...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Diferenta intre TRUNCATE TABLE si DELETE</title><link>http://sqlserver.ro/forums/thread/5042.aspx</link><pubDate>Fri, 30 May 2008 13:31:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5042</guid><dc:creator>miralon</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5042.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=5042</wfw:commentRss><description>&lt;P&gt;Intrebare al carei raspuns (raspunsuri se gasesc din belsug pe unele forumuri...) nu m-a edificat. Ma refer la ceva de genul "DELETE pastreaza log la nivel de rand , ... se poate face ROLLBACK, iar TRUNCATE nu permite ROLLBACK ". Nu am reusit sa traduc inca termenul "ROLLBACK" utilizat aici. Voi la ce credeti ca se refera? Ca nu cred sa aiba nimic de a face cu tranzactiile (atat DELETE cat si TRUNCATE TABLE sunt tranzactii implicite, asadar...daca setez "SET IMPLICIT_TRANSACTIONS ON", in ambele cazuri fac Rollback fara probleme, se comporta identic&amp;nbsp;). Rugamintea mea e de a ma lamuri in ce situatii pot fructifica diferentele dintre cele doua comenzi in practica (exceptand faptul ca, daca vreau sa obtin un timp mai mic la stergerea tuturor inregistrarilor din tabela folosesc TRUNCATE, datorita comportamentului vis-a-vis de&amp;nbsp; retinere in log doar a dealocarii paginilor de date)... Sa fie vorba de restore "point in time"? Voi ce credeti?&lt;/P&gt;
&lt;P&gt;In speranta ca voi primi un &amp;nbsp;raspuns edificator, &lt;/P&gt;
&lt;P&gt;Va salut cu respect si simpatie.&lt;/P&gt;</description></item></channel></rss>