<?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: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6541.aspx</link><pubDate>Mon, 12 Jan 2009 14:39:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6541</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6541.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6541</wfw:commentRss><description>&lt;P&gt;e un deadlock nou, alte proceduri implicate&lt;/P&gt;
&lt;P&gt;posturile 6538 si 6539 sunt 2 probleme noi (2 deadlockuri diferite care se intampla)&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6540.aspx</link><pubDate>Mon, 12 Jan 2009 14:35:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6540</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6540.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6540</wfw:commentRss><description>Este aceasi problema sau una noua, ca nu intzeleg.&lt;br&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6539.aspx</link><pubDate>Mon, 12 Jan 2009 13:54:54 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6539</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6539.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6539</wfw:commentRss><description>&lt;P&gt;(nu am reusit sa prind deadlock-ul graph-ul pt asta)&lt;/P&gt;
&lt;P&gt;un alt deadlock care se intampla este cand ii dau&lt;/P&gt;
&lt;P&gt;select * from ELEMENTE_OUT &lt;FONT size=2&gt;where CodGrup=220018999&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;si&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;FONT size=2&gt;update #MESAJE_OUT &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;set CodGrup=a.CodGrup,CodSesiune=a.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;CodSesiune,GrupData=a.Data,GrupSuma=a.Suma,GrupCodEroare=a.CodEroare,GrupEroare=a.Eroare,GrupDescriere = a.Descriere,ElementCodEroare=b.CodEroare,ElementEroare=b.Eroare from GRUPURI_OUT a, ELEMENTE_OUT b,#MESAJE_OUT c&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;where a.CodGrup = b.CodGr&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;up and b.CodMesajOut = c.CodMesajOut&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;asta e tabela&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;CREATE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;TABLE&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[ELEMENTE_OUT]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodGrup] [int] &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodSucursala] [int] &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodMesajOut] [int] &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodEroare] [int] &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[Eroare] [varchar]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;255&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;COLLATE&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL&lt;/P&gt;
&lt;P&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [PRIMARY]&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;CREATE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;UNIQUE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;NONCLUSTERED&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;INDEX&lt;/FONT&gt;&lt;FONT size=2&gt; [CodGrupCodSucursalaCodMesajOut] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[ELEMENTE_OUT] &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodGrup] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ASC&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodSucursala] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ASC&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[CodMesajOut] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ASC&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;)&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;WITH&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;SORT_IN_TEMPDB &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; DROP_EXISTING &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; IGNORE_DUP_KEY &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; ONLINE &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [PRIMARY]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;multumesc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;alex.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6538.aspx</link><pubDate>Mon, 12 Jan 2009 13:35:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6538</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6538.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6538</wfw:commentRss><description>&lt;P&gt;am atasat aici mai multe deadlock graph-uri care par a folosi acelasi index iTableName&lt;/P&gt;
&lt;P&gt;ma poate ajuta cineva sa rezolv problema&lt;/P&gt;
&lt;P&gt;&lt;A style="COLOR:#009900;" href="http://s4.transfer.ro/storage/deadlock_graph-68e72.rar"&gt;http://s4.transfer.ro/storage/deadlock_graph-68e72.rar&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;asta e tabela respectiva&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;CREATE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;TABLE&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[SEQ_NUMBER_TABLE]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[SeqNo] [int] &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL,&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[TableName] [varchar]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;30&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;COLLATE&lt;/FONT&gt;&lt;FONT size=2&gt; SQL_Latin1_General_CP1_CS_AS &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NOT&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;NULL&lt;/P&gt;
&lt;P&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [PRIMARY]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;si asta e indexul&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;CREATE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;UNIQUE&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;NONCLUSTERED&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;INDEX&lt;/FONT&gt;&lt;FONT size=2&gt; [iTableName] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [dbo]&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;[SEQ_NUMBER_TABLE] &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;[TableName] &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ASC&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;
&lt;P&gt;)&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;WITH&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT size=2&gt;SORT_IN_TEMPDB &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; DROP_EXISTING &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; IGNORE_DUP_KEY &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; ONLINE &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;OFF&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ON&lt;/FONT&gt;&lt;FONT size=2&gt; [PRIMARY]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;are 153 de inregistrari si din ea se face doar select...e ca un nomenclator.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6515.aspx</link><pubDate>Thu, 08 Jan 2009 11:55:03 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6515</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6515.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6515</wfw:commentRss><description>&lt;P&gt;am modificat indexul si se pare ca de vreo 2 ore nu am mai avut nici un blocaj....o sa urmaresc in continuare&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;
&lt;P&gt;p.s. revin&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6507.aspx</link><pubDate>Thu, 08 Jan 2009 08:41:25 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6507</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6507.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6507</wfw:commentRss><description>&lt;P&gt;pana prind un blocaj ca sa iau deadlock graphul am atasat aici Execution Plan pt procedurile respective atat cu index pe StatusCode noncluster cat si cu index pe StatusCode,MessageCode cluster.....poate ajuta&lt;/P&gt;
&lt;P&gt;&lt;A style="COLOR:#009900;" href="http://s4.transfer.ro/storage/transfer_ro-0473d45e99.zip"&gt;http://s4.transfer.ro/storage/transfer_ro-0473d45e99.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;multumesc&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6502.aspx</link><pubDate>Thu, 08 Jan 2009 07:06:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6502</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6502.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6502</wfw:commentRss><description>&lt;P&gt;da, am modificat am facut cheie cluster dupa StatusCode, MessageCode si am sters indexul noncluster de pe StatusCode&lt;/P&gt;
&lt;P&gt;acum dimineata o sa incerc sa testez si revin cu raspunsuri...&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6500.aspx</link><pubDate>Wed, 07 Jan 2009 16:53:04 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6500</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6500.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6500</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;cred ca asta e si cazul meu:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.sql-server-performance.com/articles/per/advanced_sql_locking_p1.aspx"&gt;http://www.sql-server-performance.com/articles/per/advanced_sql_locking_p1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;dar nu vad si solutia :)&lt;/p&gt;
&lt;p&gt;alex.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Deadlock graph-ul ne-ar ajuta, din nou.&lt;br&gt;&lt;br&gt;Si daca tot cautam resurse pe net, articolul din link e gresit si incorect.&lt;br&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Andres Taylor:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;So, to fulfill this query, SQL Server will traverse the index on
RegionId, locking index pages and index keys with update locks on the
way.&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Nu se face lock pe pagini ci intent lock ceea ce e cu totul alta mincare de peste si intent lock-urile sint totdeauna compatibile intre ele, chiar si IU si IX. Pentru o explicatie corecta cauta in &lt;a href="http://www.amazon.com/Transaction-Processing-Concepts-Techniques-Management/dp/1558601902"&gt;Transaction Processing: Concepts and Techniques&lt;/a&gt; , pg. 406. &lt;br&gt;Deadlock din cauza mixari page-lock-urilor cu row-lock-uri se poate intimpla (si se intimpla frecvent) cind are loc &lt;a href="http://msdn.microsoft.com/en-us/library/aa213033.aspx"&gt;lock-escalation&lt;/a&gt;, ori lock-escalation e provacat de scan-uri mari si in cazult tau scan-ul e provocat de structura tabelelor. &lt;br&gt;&lt;br&gt;Ai incerca sa modifici tabele sa fie clustered dupa StatusCode, MessageCode ?&lt;br&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6499.aspx</link><pubDate>Wed, 07 Jan 2009 16:39:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6499</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6499.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6499</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;use row locks when accesing the index&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;Asa si trebuie.&lt;br&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6498.aspx</link><pubDate>Wed, 07 Jan 2009 16:39:18 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6498</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6498.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6498</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;font size="2"&gt;5&amp;nbsp;1410924198&amp;nbsp;9&amp;nbsp;0&amp;nbsp;1&amp;nbsp;0&amp;nbsp;0&amp;nbsp;NULL&amp;nbsp;2009-01-07 15:44:50.487&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;0&amp;nbsp;0&amp;nbsp;0&amp;nbsp;0&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;NULL&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;OK, apare, dar apare cu 1 (unu) user scan de cind ai pornit serverul si atit. Si scan, nici macar nu e seek. Nu as zice ca se justifica existenta lui. Consider ca te-ai uitat in serverul live sub un load normal, desigur.&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6497.aspx</link><pubDate>Wed, 07 Jan 2009 16:08:10 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6497</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6497.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6497</wfw:commentRss><description>&lt;P&gt;cred ca asta e si cazul meu:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sql-server-performance.com/articles/per/advanced_sql_locking_p1.aspx"&gt;http://www.sql-server-performance.com/articles/per/advanced_sql_locking_p1.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;dar nu vad si solutia :)&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6496.aspx</link><pubDate>Wed, 07 Jan 2009 15:47:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6496</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6496.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6496</wfw:commentRss><description>&lt;P&gt;La Index properties am urmatoarele pe iStatusCode&lt;/P&gt;
&lt;P&gt;Page fullness 79%&lt;/P&gt;
&lt;P&gt;Total fragmentation 0%&lt;/P&gt;
&lt;P&gt;bifa pe: automaticaly recompute statistics&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;use row locks when accesing the index&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;use page locks when accesing the index&lt;/P&gt;
&lt;P&gt;use index&lt;/P&gt;
&lt;P&gt;fara bifa la: fill factor&lt;/P&gt;
&lt;P&gt;multumesc,&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6495.aspx</link><pubDate>Wed, 07 Jan 2009 15:37:36 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6495</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6495.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6495</wfw:commentRss><description>&lt;P&gt;da, apare in &lt;FONT color=#008000&gt;sys.dm_db_index_usage_stats&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#008000 size=2&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;CREATE FUNCTION INDEX_ID&lt;/P&gt;
&lt;P&gt;( @table sysname,&lt;/P&gt;
&lt;P&gt;@index_name sysname )&lt;/P&gt;
&lt;P&gt;RETURNS int&lt;/P&gt;
&lt;P&gt;AS&lt;/P&gt;
&lt;P&gt;BEGIN&lt;/P&gt;
&lt;P&gt;DECLARE @indid int&lt;/P&gt;
&lt;P&gt;SELECT @indid = indid FROM sysindexes&lt;/P&gt;
&lt;P&gt;WHERE id = OBJECT_ID(@table) AND name = @index_name&lt;/P&gt;
&lt;P&gt;RETURN @indid&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;P&gt;GO&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;SELECT&lt;/FONT&gt;&lt;FONT size=2&gt; dbo&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;.&lt;/FONT&gt;&lt;FONT size=2&gt;INDEX_ID&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'tbl1'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;'iStatusCode'&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;select&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;*&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;from&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;sys.dm_db_index_usage_stats&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;where&lt;/FONT&gt;&lt;FONT size=2&gt; database_id &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; 5 &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;and&lt;/FONT&gt;&lt;FONT size=2&gt; index_id &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; 9&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;5&amp;nbsp;1410924198&amp;nbsp;9&amp;nbsp;0&amp;nbsp;1&amp;nbsp;0&amp;nbsp;0&amp;nbsp;NULL&amp;nbsp;2009-01-07 15:44:50.487&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;0&amp;nbsp;0&amp;nbsp;0&amp;nbsp;0&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;NULL&amp;nbsp;NULL&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;multumesc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;alex.&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6494.aspx</link><pubDate>Wed, 07 Jan 2009 14:26:47 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6494</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6494.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6494</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;Alex:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;daca reusesc sa-mi dau seama cum fac rost de deadlock graph...da&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;&lt;br&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms190465.aspx"&gt;How to: Save Deadlock Graphs &lt;/a&gt;&lt;br&gt;</description></item><item><title>Re: deadlock - SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/6493.aspx</link><pubDate>Wed, 07 Jan 2009 14:24:59 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:6493</guid><dc:creator>rremus</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/6493.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=6493</wfw:commentRss><description>si fa-i DROP la iStatusCode, probabil e inutil la cit e de neselectiv. Este folosit cumva, apare in &lt;a href="http://msdn.microsoft.com/en-us/library/ms188755.aspx"&gt;sys.dm_db_index_usage_stat&lt;/a&gt;s ?&lt;br&gt;</description></item></channel></rss>