<?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: SQL Server 2000 - Try...Catch (intrebare de pe ITBoard)</title><link>http://sqlserver.ro/forums/thread/646.aspx</link><pubDate>Tue, 31 Oct 2006 07:08:06 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:646</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/646.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=646</wfw:commentRss><description>&lt;p&gt;Chiar daca intrebarea se refera la SQL 2000 , trebuie sa spun ca la SQL 2005 varianta cu SSIS permite tratarea erorilor (asa cum a pomenit Diana la SQL Server Day), deci ar fi de luat in calcul trecere pe SQL 2005!&lt;/p&gt;</description></item><item><title>Re: SQL Server 2000 - Try...Catch (intrebare de pe ITBoard)</title><link>http://sqlserver.ro/forums/thread/640.aspx</link><pubDate>Mon, 30 Oct 2006 16:41:45 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:640</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/640.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=640</wfw:commentRss><description>SET XACT_ABORT OFF din pacate nu functioneaza cu toate erorile. TRY...CATCH ar fi ideal (desi si in cazul acesta nu pot fi prinse toate erorile) insa in cazul asta e vorba de SQL Server 2000 si nu de SQL Server 2005.</description></item><item><title>Re: SQL Server 2000 - Try...Catch (intrebare de pe ITBoard)</title><link>http://sqlserver.ro/forums/thread/636.aspx</link><pubDate>Mon, 30 Oct 2006 14:42:34 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:636</guid><dc:creator>ggciubuc</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/636.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=636</wfw:commentRss><description>&lt;p&gt;Un mecanism care iti permite sa treci la un rand urmator fara sa crape tranzactia este si cel in care SET XACT_ABORT&amp;nbsp;se pune pe &amp;nbsp;OFF&lt;/p&gt;&lt;p&gt;(vezi &lt;a href="http://msdn2.microsoft.com/en-us/library/ms188792.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms188792.aspx&lt;/a&gt;&amp;nbsp;) dar ca sa si prinzi eroarea, nu-mi dau seama cum. Ce-mi vine acum in minte este ca poti sa compari nr. de inregistrari de prelucrat cu nr. de inregistrari care se prelucreaza in mod real; daca raportul nu e 1 inseamna ca pe cel putin o inregistrare a intervenit o eroare.&lt;/p&gt;&lt;p&gt;In alta ordine de idei prin DTS si actualul SSIS poti seta pe un package numarul de linii dupa care sa crape executia acestuia- poate alegeti varianta asta!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SQL Server 2000 - Try...Catch (intrebare de pe ITBoard)</title><link>http://sqlserver.ro/forums/thread/634.aspx</link><pubDate>Mon, 30 Oct 2006 13:57:21 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:634</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/634.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=634</wfw:commentRss><description>&lt;p&gt;O modalitate ar fi cum a indicat si Catalin folosirea @@ERROR care intoarce numarul de eroare pentru ultima instructiune executata. Atentie valoarea @@ERROR este resetata dupa fiecare instructiune.&lt;/p&gt;&lt;p&gt;O alta modalitate ar fi sa faceti debug la procedura stocata sau sa folositi SQL Server Profiler.&lt;/p&gt;&lt;p&gt;Aveti in urmatorul link o solutie completa de monitorizare a erorilor (sectiunea Detailed Analysis Process): &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops7.mspx#E1G"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops7.mspx#E1G&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alte referinte:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.sommarskog.se/error-handling-II.html"&gt;&lt;em&gt;Implementing Error Handling with Stored Procedures&lt;/em&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;a href="http://www.sommarskog.se/error-handling-I.html"&gt;Error Handling in SQL Server &amp;ndash; a Background&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>SQL Server 2000 - Try...Catch (intrebare de pe ITBoard)</title><link>http://sqlserver.ro/forums/thread/633.aspx</link><pubDate>Mon, 30 Oct 2006 13:46:37 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:633</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/633.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=633</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cum as putea sa fac in sql ceva asemanator unui try... catch... din vb.net.&lt;/p&gt;&lt;p&gt;Problema mea este ca am o procedura ce executa intr-un cursor o alta procedura care &amp;quot;in unele conditii crapa&amp;quot;...si as vrea ca in momentul in care aceast lucru se intampla sa loghez o eroare intr-un tabel si sa se treaca la urmatoarea inregistrare din cursor fara sa imi afiseze un mesaj de eroare...&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>