<?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>T-SQL</title><link>http://sqlserver.ro/forums/15/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: DBCC SHRINKFILE</title><link>http://sqlserver.ro/forums/thread/1629.aspx</link><pubDate>Thu, 01 Feb 2007 14:43:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1629</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1629.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1629</wfw:commentRss><description>multumesc mult.....asa sa fie....asa citisem si eu....dar cateodata simt nevoia sa-mi zica cineva....DA...sigur e asa ;)))))</description></item><item><title>Re: DBCC SHRINKFILE</title><link>http://sqlserver.ro/forums/thread/1628.aspx</link><pubDate>Thu, 01 Feb 2007 14:35:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1628</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1628.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1628</wfw:commentRss><description>&lt;p&gt;In cazul "TRUNCATEONLY", spatiul ramas liberde la "coada" fisierului
este "inapoiat" sistemului de operare. "EMPTYFILE" migreaza datele in
fisiere din acelasi "filegroup".Apoi fisierul "golit" (pe care nu il
mai poti folosi) poate fi sters.&lt;/p&gt;&lt;p&gt;Vezi si http://msdn2.microsoft.com/en-us/library/aa258824(sql.80).aspx&amp;nbsp; ---&amp;gt; SQL 2000&lt;br&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://msdn2.microsoft.com/en-us/library/ms189493.aspx&amp;nbsp; ---&amp;gt; SQL 2005&lt;br&gt;
&lt;/p&gt;</description></item><item><title>Re: DBCC SHRINKFILE</title><link>http://sqlserver.ro/forums/thread/1627.aspx</link><pubDate>Thu, 01 Feb 2007 14:25:14 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1627</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1627.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1627</wfw:commentRss><description>&lt;p&gt;Pe scurt, nu. DBCC SHKRINKDATABASE şi DBCC SHRINKFILE nu vor şterge niciodată rânduri din tabele.&lt;/p&gt;&lt;p&gt;Mai pe larg: DBCC SHKRINKDATABASE se referă la toate fişierele unei baze de date (cu log sau date), iar DBCC SHRINKFILE se referă la un anumit fişier (de asemenea, log sau date), dar în orice caz, nu se vor şterge date utile, ci doar se va elibera spaţiul neutilizat. Opţiunea EMPTYFILE se foloseşte atunci când există mai multe fişiere de date şi se doreşte să se mute datele din unul dintre acestea în celelalte, în scopul de a se şterge fişierul respectiv. Opţiunea TRUNCATEONLY se foloseşte atunci când se doreşte micşorarea fişierului doar pe seama spaţiului liber de la sfârşitul acestuia, fără a se încerca mutarea celorlalte date.&lt;br&gt;&lt;/p&gt;&lt;p&gt;Răzvan&lt;/p&gt;</description></item><item><title>DBCC SHRINKFILE</title><link>http://sqlserver.ro/forums/thread/1626.aspx</link><pubDate>Thu, 01 Feb 2007 13:47:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1626</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1626.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1626</wfw:commentRss><description>&lt;P&gt;salut, nu mai stiu exact daca e primul meu post pe acest site...dar tin sa va salut pe toti si sa va spun ca am citit lucruri interesante si noi in acelasi timp aici.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;problema pe care o am eu este: poate cumva "dbcc shrinkdatabase" sau "dbcc shrinkfile" sa stearga vreo inregistrare din baza de date?&amp;nbsp; folosite cu EMPTYFILE, TRUNCATEONLY&lt;/P&gt;
&lt;P&gt;acestea 2 se folosesc si pe .mdf(Data) si pe .ldf(Log)? sau doar .ldf?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;multumesc&lt;/P&gt;
&lt;P&gt;ca sa fiu mai explicit:&lt;/P&gt;
&lt;P&gt;DBCC SHRINKFILE (DataBase_Data,TRUNCATEONLY )&lt;BR&gt;GO&lt;/P&gt;
&lt;P&gt;poate afecta baza de date in vreun fel.....poate sa dispara vreo inregistrare din baza de date?&lt;/P&gt;</description></item></channel></rss>