<?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: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7947.aspx</link><pubDate>Wed, 06 Jan 2010 11:59:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7947</guid><dc:creator>MihaiBejenariu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7947.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7947</wfw:commentRss><description>Am gasit un best practice aici:&lt;br&gt;&lt;a href="http://technet.microsoft.com/en-us/library/ms189858.aspx"&gt;http://technet.microsoft.com/en-us/library/ms189858.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Pe scurt, aflu gradul de fragmentare:&lt;br&gt;&lt;br&gt;SELECT object_name(S.object_id), I.[name], S.avg_fragmentation_in_percent&lt;br&gt;FROM&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.dm_db_index_physical_stats(DB_ID(@tableName), OBJECT_ID(@tableName), NULL, NULL , NULL) S&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN sys.indexes I ON I.object_id = S.object_id AND I.index_id = S.index_id&lt;br&gt;&lt;br&gt;Dc. gradul de fragmentare &amp;gt; 5% si &amp;lt; 30% trebuie facut ALTER INDEX REORGANIZE (doar sunt re-ordonate leaf level pages)&lt;br&gt;Dc. gradul de fragmentare &amp;gt; 30% trebuie facut ALTER INDEX REBUILD (adica indecsii sunt recreati).&lt;br&gt;&lt;br&gt;&lt;br&gt;Multumesc tuturor pentru sugestii, suport si idei.&lt;br&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7942.aspx</link><pubDate>Tue, 05 Jan 2010 09:08:30 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7942</guid><dc:creator>werty80</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7942.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7942</wfw:commentRss><description>Eu recomand sa faci un plan de mentenanta la baza de date date pe care o folosesti(Management-Mtnce plan)&amp;nbsp; in care sa introduci si o defragmentare de index-i.&lt;br&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7929.aspx</link><pubDate>Fri, 25 Dec 2009 16:56:53 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7929</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7929.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7929</wfw:commentRss><description>Probabil ca indexsi se defragmenteaza in urma operatiunii de stergere si ar trebui facut un rebuild la ei.Din sql management studio du-te pe index click dreapta si Propeties, vezi ce grad de defragmentare ai pe acei indexsi ,daca e mai mare de 30% ar trebui facut rebuild la indexsi.</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7928.aspx</link><pubDate>Thu, 24 Dec 2009 02:13:16 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7928</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7928.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7928</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;MihaiBejenariu:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;Am sa incerc sa identific care este query-ul/query-urile care sunt cu probleme, ... &lt;br&gt;Totusi ma gandeam ca ar fi trebuit sa existe un "best practice" in acest caz.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;Absolut exista un 'best practice': Termina de identificat query-urile cu probleme. Bafta!&lt;br&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7927.aspx</link><pubDate>Wed, 23 Dec 2009 17:15:50 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7927</guid><dc:creator>step</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7927.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7927</wfw:commentRss><description>Atentie la parameter Sniffing .&lt;br /&gt;nu stiu daca te ajuta ,dar incearca sa declari variabile locale , care preiau valorile din parametrii proceduri.Si foloseste variabilele respective&lt;br /&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7926.aspx</link><pubDate>Wed, 23 Dec 2009 10:48:10 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7926</guid><dc:creator>MihaiBejenariu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7926.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7926</wfw:commentRss><description>Sunt 4-5 tabele si vreo 15 proceduri stocate care fac niste verificari triviale (dar multe!) si niste update-uri punctuale.&lt;br&gt;Dupa stergerea randurilor dintr-o tabela, se observa o degradare a performantei pe aceste proceduri, cu un factor de 3x.&lt;br&gt;&lt;br&gt;Am sa incerc sa identific care este query-ul/query-urile care sunt cu probleme, ... &lt;br&gt;Totusi ma gandeam ca ar fi trebuit sa existe un "best practice" in acest caz.&lt;br&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7925.aspx</link><pubDate>Wed, 23 Dec 2009 08:20:38 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7925</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7925.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7925</wfw:commentRss><description>&lt;a href="http://www.devx.com/tips/Tip/13386"&gt;Recompilează&lt;/a&gt;&lt;br&gt;</description></item><item><title>Re: Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7923.aspx</link><pubDate>Wed, 23 Dec 2009 06:39:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7923</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7923.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7923</wfw:commentRss><description>Poti descrie exact problemele? &lt;br /&gt;Poti trimite structura tabelei, a indecsilor, query-ul care "nu merge", planurile de executie pentru cele 2 cazuri?</description></item><item><title>Stergere numar mare de inregistrari dintr-o tabela</title><link>http://sqlserver.ro/forums/thread/7922.aspx</link><pubDate>Tue, 22 Dec 2009 21:18:23 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7922</guid><dc:creator>MihaiBejenariu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7922.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7922</wfw:commentRss><description>Am o tabela care are 400k randuri si in urma unui delete sterg 300k randuri. Pe aceasta tabela am 2 indecsi care "satisfac" toate cererile pe aceasta tabela, dar dupa acest delete nu mai merge nimic.&lt;br&gt;&lt;br&gt;Am incercat sa reconstruiesc indecsii pe aceasta tabela si sa actualizez statisticile, dar tot am probleme cand interoghez alte tabele care se joineaza cu aceasta tabela.&lt;br&gt;&lt;br&gt;Ce sugestii/posibilitati am a.i. query-urile sa mearga la fel ca inainte de stergere?&lt;br&gt;&lt;br&gt;Am vazut o solutie cu o copiere a randurilor intr-o tabela temporara, apoi truncate table si copiere randuri inapoi. Este recomandat asa ceva?&lt;br&gt;&lt;br&gt;Sunt pe SQL-Server 2005. Baza de date are setat recovery model "simple".&lt;br&gt;</description></item></channel></rss>