<?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: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/8048.aspx</link><pubDate>Fri, 12 Feb 2010 10:15:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8048</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8048.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=8048</wfw:commentRss><description>Ce dimensiune au (cate pagini) indecsii?&lt;br /&gt;http://www.sqlskills.com/BLOGS/PAUL/post/Where-do-the-Books-Online-index-fragmentation-thresholds-come-from.aspx</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/8047.aspx</link><pubDate>Fri, 12 Feb 2010 01:09:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8047</guid><dc:creator>blc2001ro</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8047.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=8047</wfw:commentRss><description>Buun.&lt;br&gt;Incercarea nr.1 (cu modificarea numai a bazei de date la care se lucreaza):&lt;br&gt;http://sqlfool.com/2009/06/index-defrag-script-v30/&lt;br&gt;Incercarea nr.2 (cu modificarea numai a&amp;nbsp; bazei de date cu care se lucreaza):&lt;br&gt;http://ola.hallengren.com/&lt;br&gt;&lt;b&gt;De ce la o verificare a starii fragmentarii indecsilor, datele raman neschimbate? &lt;/b&gt;&lt;br&gt;&lt;br&gt;Scriptul de verificare:&lt;br&gt;&lt;br&gt;SELECT ps.database_id, ps.OBJECT_ID, ps.index_id, si.name, ps.avg_fragmentation_in_percent,&lt;br&gt;(SELECT distinct so.name FROM sys.objects so INNER JOIN sys.indexes ON so.object_id = si.object_id) ParentTable&lt;br&gt;FROM sys.dm_db_index_physical_stats (NULL, NULL, NULL, NULL, NULL) AS ps&lt;br&gt;INNER JOIN sys.indexes si ON ps.OBJECT_ID = si.OBJECT_ID&lt;br&gt;AND ps.index_id = si.index_id&lt;br&gt;WHERE ps.database_id = DB_ID() AND si.name is not null AND&lt;br&gt;ps.avg_fragmentation_in_percent &amp;gt; 30&amp;nbsp; &lt;br&gt;ORDER BY ps.avg_fragmentation_in_percent desc&lt;br&gt;GO&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7579.aspx</link><pubDate>Wed, 09 Sep 2009 06:21:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7579</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7579.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7579</wfw:commentRss><description>Multumesc, Calin.</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7575.aspx</link><pubDate>Mon, 07 Sep 2009 18:28:17 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7575</guid><dc:creator>sageata2002</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7575.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7575</wfw:commentRss><description>Salut.&lt;br /&gt;&lt;br /&gt;Din pacate nu stiu daca sunt autorizat sa iti furnizez un script de pe SQLMag.com (unde am subscription), dar http://ola.hallengren.com este ceea ce iti recomand cu caldura, nu numai pentru index defrag.&lt;br /&gt;&lt;br /&gt;De asemenea mai am un script de la Microsoft, dar ceea ce ti-am recomandat mi se pare superior, mai ales ca merge si pe 2005, si pe 2008.&lt;br /&gt;&lt;br /&gt;toate cele bune,&lt;br /&gt;calin</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7571.aspx</link><pubDate>Mon, 07 Sep 2009 06:43:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7571</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7571.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7571</wfw:commentRss><description>Multumesc &lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7543.aspx</link><pubDate>Mon, 31 Aug 2009 11:45:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7543</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7543.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7543</wfw:commentRss><description>Te poti inspira si dupa:&lt;br /&gt;http://www.sqlservercentral.com/scripts/Rebuild+Index/65933/&lt;br /&gt;La http://www.sqlservercentral.com/Scripts/ gasesti script-uri pentru diverse "situatiuni"... &lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7541.aspx</link><pubDate>Mon, 31 Aug 2009 11:34:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7541</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7541.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7541</wfw:commentRss><description>Pe langa scriptul sugerat de Remus, as mentiona si exemplul dat de Books Online &lt;a href="http://msdn.microsoft.com/en-us/library/ms175008.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms175008.aspx&lt;/a&gt; (inlocuind DBCC SHOWCONTIG cu &lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl02" href="http://msdn.microsoft.com/en-us/library/ms188917.aspx"&gt;sys.dm_db_index_physical_stats&lt;/a&gt;).</description></item><item><title>Re: Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7533.aspx</link><pubDate>Sat, 29 Aug 2009 01:47:40 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7533</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7533.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7533</wfw:commentRss><description>http://sqlfool.com/2009/06/index-defrag-script-v30/</description></item><item><title>Script to REBUILD/REORGANIZE all database indexes</title><link>http://sqlserver.ro/forums/thread/7531.aspx</link><pubDate>Fri, 28 Aug 2009 08:20:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7531</guid><dc:creator>cardasim</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7531.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=7531</wfw:commentRss><description>Salut, &lt;br&gt;&lt;br&gt;1. Are cineva un script care face REBUILD pe toti indecsii dintr-o baza de date?&lt;br&gt;2. Eventual cu optiunea de a face REORGANIZE in functie de gradul de fragmentare&lt;br&gt;&lt;br&gt;Multumesc.&lt;br&gt;</description></item></channel></rss>