<?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: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/5119.aspx</link><pubDate>Wed, 18 Jun 2008 06:54:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5119</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5119.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=5119</wfw:commentRss><description>&lt;P&gt;Poti incerca&amp;nbsp;sa rulezi numai&amp;nbsp;query-ul / query-urile&amp;nbsp;cu probleme folosind OPTION (MAXDOP 1) - deci mai "granular",&amp;nbsp;fara sa schimbi "max degree of parallelism" la nivel de server.&lt;/P&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/5117.aspx</link><pubDate>Wed, 18 Jun 2008 06:12:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5117</guid><dc:creator>cristin</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5117.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=5117</wfw:commentRss><description>&lt;P&gt;cred ca am rezolvat problema. Asta dupa ce am observat ca o procedura ce rula f. rapid pe o baza de teste, se lungea la infinit dupa mutarea pe baza de productie, si in "Activity Monitor" am vazut ca se bloca pe sine insusi. Am modificat optiunea "Max degree of parallelism" din 0 (folosirea toturor procesoarelor de pe server&amp;nbsp;in interogari - am 2 procesoare) in 1. Am observat o "linistire" rapida a tuturor problemelor din acest moment, si de atunci au trecut vreo 2 saptamani.&amp;nbsp; &lt;img src="http://sqlserver.ro/emoticons/emotion-21.gif" alt="Yes" /&gt; Nu imi explic totusi cauza, si pe SQL 2000 am avut activata optiunea sa foloseasca toate procesoarele, si nu am avut probleme acestea.&lt;/P&gt;
&lt;P&gt;Oricum, va multumesc pentru sfaturi, m-au ajutat si cateva din ele le-am bagat in joburile de optimizare!&lt;/P&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4976.aspx</link><pubDate>Fri, 16 May 2008 12:38:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4976</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4976.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4976</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;cristin:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grija mea e sa nu fi uitat sa rulez vreun pas in trecerea de pe 2000 pe 2005, care sa afecteze baza de date. &lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;Daca zici ca performanta e proasta pe SQL 2000, nu vad de ce ar fi (mult mai ) buna in 2005...&lt;br&gt;Pentru uzul managerilor, documenteaza care merg greu - si ce ai facut ca sa imbunatatesti performanta (indexi, ram, hard, etc). Apoi da-o mai departe ... &lt;br&gt;Dar utilizatorii se pling ? Nu ar fi pentru prima oara cind oamenii, mai flexibili, se adapteaza la soft in loc de invers..&lt;br&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4974.aspx</link><pubDate>Fri, 16 May 2008 12:13:13 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4974</guid><dc:creator>cristin</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4974.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4974</wfw:commentRss><description>&lt;P&gt;nu prea e "tare". Aplicatia e facuta in strainatate, si pana in prezent nu prea s-au "obosit" si raspunda la sugestiile mele, sa mai si rezolve din ele nici atat ... O utilizam de peste 6 ani, si am trecut prin cateva update-uri, care imbunatateau calitatea tranzactiilor. Daca aveau probleme cu ultima versiune a aplicatiei, scoteau un patch pe piata, sunt destule firme in Romania care folosesc aceasta aplicatie. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grija mea e sa nu fi uitat sa rulez vreun pas in trecerea de pe 2000 pe 2005, care sa afecteze baza de date. &lt;/P&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4969.aspx</link><pubDate>Fri, 16 May 2008 05:58:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4969</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4969.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4969</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;cristin:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;3. Si aplicatia e la o noua versiune, si pentru ca incepuse sa ruleze mai greu pe 2000, am "sarit" pe SQL 2005, in speranta ca o se "miste" mai repede. Nu s-a miscat ...&lt;/p&gt;[...]&lt;p&gt;4. Profilerul nu prea ma ajuta, chiar daca identific selecturile cu probleme, nu am acces la ele (inglobate in aplicatie). Pot doar sa ma enervez de la prima ora !&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br&gt;TARE !!!! Poti sa treci si la SQL Server 2008, si la ce mai vrei tu ... O aplicatie care e prost facuta ramine asa.&lt;br&gt;Ce pot sa iti sugerez este politica : documentezi ce Select-uri merg greu, documentezi de ce, in ciuda a orice index-uri, si trimiti la aia care au cumparat aplicatia...Sau le trimiti celor care au facut aplicatia sugestii pentru versiunea urmatoare ...&lt;br&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4967.aspx</link><pubDate>Fri, 16 May 2008 05:01:11 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4967</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4967.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4967</wfw:commentRss><description>Încearcă să foloseşti READ_COMMITTED_SNAPSHOT ON ( &lt;a href="http://msdn.microsoft.com/en-us/library/ms175095.aspx"&gt;[1]&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/ms189050.aspx"&gt;[2]&lt;/a&gt; )&amp;nbsp; / FROM tabela WITH(NOLOCK) la acele interogări rulate pe mai multi ani dar atentie la situatiile de tipul &lt;a href="http://blogs.msdn.com/sqlcat/archive/2007/02/01/previously-committed-rows-might-be-missed-if-nolock-hint-is-used.aspx"&gt;acesta&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Duncan Bart blog &lt;a href="http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx"&gt;[1]&lt;/a&gt;, &lt;a href="http://blogs.msdn.com/bartd/archive/2006/09/13/Deadlock-Troubleshooting_2C00_-Part-2.aspx"&gt;[2]&lt;/a&gt;, &lt;a href="http://blogs.msdn.com/bartd/archive/2006/09/25/deadlock-troubleshooting-part-3.aspx"&gt;[3]&lt;/a&gt;&lt;br&gt;&lt;br&gt;Capitol &lt;a href="http://www.informit.com/content/images/9780321447746/samplechapter/0321447743_CH01.pdf"&gt;Waiting and Blocking Issues&lt;/a&gt; (PDF)&lt;br&gt;&lt;br&gt;Poate ajută şi &lt;a href="http://download.microsoft.com/download/1/3/4/134644fd-05ad-4ee8-8b5a-0aed1c18a31e/TShootPerfProbs.doc"&gt;Troubleshooting Performance Problems in SQL Server 2005&lt;/a&gt;&lt;br&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4965.aspx</link><pubDate>Fri, 16 May 2008 04:19:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4965</guid><dc:creator>cristin</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4965.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4965</wfw:commentRss><description>&lt;P&gt;1. De la 2000 la 2005 am trecut prin attach ... nu am facut restore. &lt;/P&gt;
&lt;P&gt;2. UPDATE STATISTICS si "rebuild" pentru indecsi rulez sapamanal, intr-un plan de maintenanta.&lt;/P&gt;
&lt;P&gt;3. Si aplicatia e la o noua versiune, si pentru ca incepuse sa ruleze mai greu pe 2000, am "sarit" pe SQL 2005, in speranta ca o se "miste" mai repede. Nu s-a miscat ...&lt;/P&gt;
&lt;P&gt;3. Pentru vizualizarea blocajelor foloseam o interogare pe care o rulam automat din 5 in 5 sec. Se uita in master.dbo.sysprocesses. In 2005, aceeasi interogare nu mai da aproape nici un blocaj... dar utilizatorii "rai" care imi dadeau bataie de cap si inainte (rapoarte rulate pe ani de zile, de doua-trei ori pe zi, care "omorau" facturarea ...) sigur mai ruleaza rapoartele respective si in prezent, dar nu ii mai "vad" in interogarea mea. &lt;/P&gt;
&lt;P&gt;4. Profilerul nu prea ma ajuta, chiar daca identific selecturile cu probleme, nu am acces la ele (inglobate in aplicatie). Pot doar sa ma enervez de la prima ora !&lt;/P&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4956.aspx</link><pubDate>Thu, 15 May 2008 17:10:25 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4956</guid><dc:creator>marcel soare</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4956.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4956</wfw:commentRss><description>porneste un sql profiler si investigheaza query-urile cu probleme.&lt;br&gt;intrebare: cum ai trecut de la 2000 la 2005 ? back-up si restore?&lt;br&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4955.aspx</link><pubDate>Thu, 15 May 2008 13:30:50 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4955</guid><dc:creator>B_gd_n[ ]Sahlean</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4955.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4955</wfw:commentRss><description>Incearca sa forteti recompilarea / refacerea planului de executie:&lt;br&gt;sp_recompile&lt;br&gt;si eventual pe o baza de date TEST&lt;br&gt;DBCC FLUSHPROCINDB( db_id )&lt;br&gt;DBCC FREEPROCCACHE&lt;br&gt;</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4952.aspx</link><pubDate>Thu, 15 May 2008 12:34:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4952</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4952.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4952</wfw:commentRss><description>...si in afara de toate astea pot fi probleme care isi au originea in aplicatie...greu de spus acum...</description></item><item><title>Re: probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4951.aspx</link><pubDate>Thu, 15 May 2008 12:25:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4951</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4951.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4951</wfw:commentRss><description>&lt;P&gt;Ai rulat sp_updatestats / UPDATE STATISTICS si DBCC UPDATEUSAGE? Uneori se pare ca e necesar un "rebuild" pentru indecsi. Care sunt query-urile lente? Poate ai probleme cu discul (---&amp;gt; perfmon ---&amp;gt; Avg. Disk Queue Length)?&lt;/P&gt;
&lt;P&gt;Da, sysprocesses e "deprecated" in 2005. Incearca sys.dm_exec_sessions, sys.dm_exec_requests.&lt;/P&gt;
&lt;P&gt;Daca sunt totusi blocaje, le poti vedea in management studio ---&amp;gt; management ---&amp;gt; Activity monitor. Vezi si &lt;A href="http://blogs.msdn.com/slavao/archive/2006/11/14/sqlosdmv-s-continue.aspx"&gt;http://blogs.msdn.com/slavao/archive/2006/11/14/sqlosdmv-s-continue.aspx&lt;/A&gt;&amp;nbsp;si &lt;A href="http://blogs.msdn.com/slavao/archive/2006/09/28/776437.aspx"&gt;http://blogs.msdn.com/slavao/archive/2006/09/28/776437.aspx&lt;/A&gt;&amp;nbsp;. &lt;/P&gt;</description></item><item><title>probleme trecere pe SQL Server 2005</title><link>http://sqlserver.ro/forums/thread/4949.aspx</link><pubDate>Thu, 15 May 2008 11:21:07 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:4949</guid><dc:creator>cristin</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/4949.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=4949</wfw:commentRss><description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Buna ziua. Acum cateva saptamani am trecut de pe SQL Server 2000 pe 2005 Standard SP2, si tot de atunci au inceput problemele. Interogarile/tranzactiile in baza merg foarte greu. Am reindexat indecsi/tabele, am facut update la statistici - nu am rezolvat problema. Utilizatorii nu s-au inmultit, partea hardware e aceeasi (2 procesoare 3G, memorie 4G, Windows 2000 Server). Spre deosebire de SQL2000, nu mai am (sau nu mai vad !!!) blocaje intre utilizatori, dar timpul de asteptare pentru o interogare / tranzactie tinde spre infinit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Am o intrebare suplimentara: in master.dbo.sysprocesses am coloana memusage. In sql2000 vedeam cat consuma din memorie fiecare spid. In 2005 valoarea maxima pe care o vad in aceasta coloana e 2 (rar un 4), in timp ce in SQL2000 se ducea si la valori de ordinul sutelor. Am o setare pe server care limiteaza memoria per tranzactie sau sysprocesses e "deprecated" in 2005 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Multumesc anticipat pentru orice idee. Cristin&lt;/P&gt;</description></item></channel></rss>