<?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>Articole</title><link>http://sqlserver.ro/forums/22/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Operatii Online pe Indecsi</title><link>http://sqlserver.ro/forums/thread/166.aspx</link><pubDate>Sat, 23 Sep 2006 18:15:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:166</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/166.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=22&amp;PostID=166</wfw:commentRss><description>&lt;P&gt;Practic se genereaza o versiune a tabelei in &lt;STRONG&gt;tempdb&lt;/STRONG&gt;. &lt;/P&gt;
&lt;P&gt;Online inseamna de fapt aproape online. Exista trei faze parcurse - prepare, build si final. Indecsii sunt disponibili doar in faza &lt;STRONG&gt;build&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;A se vedea diagrama din Books Online: &lt;IMG src="http://msdn2.microsoft.com/en-us/library/ms191261.Local_-638607833_online_index(en-US,SQL.90).gif"&gt;&lt;/P&gt;
&lt;P&gt;"How Online Index Operations Work" &lt;A href="http://msdn2.microsoft.com/en-us/library/ms191261.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms191261.aspx&lt;/A&gt;&lt;/P&gt;</description></item><item><title>Re: Operatii Online pe Indecsi</title><link>http://sqlserver.ro/forums/thread/165.aspx</link><pubDate>Sat, 23 Sep 2006 17:41:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:165</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/165.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=22&amp;PostID=165</wfw:commentRss><description>Ar fi interesant de facut un experiment pentru a afla&amp;nbsp;cat de mare este incarcarea tempdb in momentul indexarii online. Pe de alta parte, reindexarea&amp;nbsp; indecsului clustered pe un tabel atrage refacerea si a indecsilor nonclustered care, dupa cum stim, se bazeaza pe indexul clustered. Parerea mea este ca trebuie sa te gandesti bine (de 2 ori) inainte de a face indexare online!</description></item><item><title>Operatii Online pe Indecsi</title><link>http://sqlserver.ro/forums/thread/134.aspx</link><pubDate>Thu, 21 Sep 2006 18:54:00 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:134</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/134.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=22&amp;PostID=134</wfw:commentRss><description>&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;Operatii Online pe Indecsi&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;In SQL Server 2005 Enterprise Edition sunt permise operatiile online pe indecsi, astfel fiind posibile crearea, refacerea sau stergerea indecsilor fara blocarea accesului la datele respective.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;Urmatoarele instructiuni Transact-SQL: &lt;I&gt;&lt;STRONG&gt;CREATE INDEX&lt;/STRONG&gt;, &lt;STRONG&gt;ALTER INDEX&lt;/STRONG&gt;, &lt;STRONG&gt;DROP INDEX&lt;/STRONG&gt;, &lt;STRONG&gt;ALTER TABLE&lt;/STRONG&gt;&lt;/I&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;au la dispozitie folosirea optiunii &lt;I&gt;&lt;STRONG&gt;ONLINE&lt;/STRONG&gt;&lt;/I&gt; care permite mai multor utilizatori accesul concurential la datele unui tabel sau al ale unui index clustered si oricaror indecsi nonclustered in timpul operatiilor cu acesti indecsi. De exemplu la executarea offline a unor instructiuni de tip Data Definition Language (DDL) cum ar fi construirea unui index clustered, este blocat accesul asupra datelor respective, exclusiv pentru aceste operatii. In timp ce in cand un utilizator reface un index clustered online, toti utilizatorii au acces la datele asociate acelui index putand face interogari sau update-uri.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;Pentru a permite accesul la un indecs in timpul modificarii acestuia se foloseste noua tehnologie &lt;STRONG&gt;row versioning&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;STRONG&gt;Row versioning&lt;/STRONG&gt; consta in mentinerea de mai multe versiuni pentru datele modificate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Urmatorul exemplu preluat din Books Online arata aceasta functionalitate:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;Exemplu:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;USE AdventureWorks;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;ALTER INDEX ALL ON Production.Product&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;REBUILD WITH (ONLINE = ON);&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=Arial&gt;&lt;FONT size=2&gt;O scurta observatie: operatiile online pe indecsi cat si celelalte functionalitati care folosesc framework-ul row versioning (Snapshot Isolation, MARS, DML triggers) pot contribui la incarcarea bazei de date &lt;STRONG&gt;tempdb&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description></item></channel></rss>