<?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>Pop Quiz: SET OPTIONS in Triggers</title><link>http://sqlserver.ro/blogs/cristians_blog/archive/2007/12/30/pop-quiz-set-options-in-triggers.aspx</link><description>It started with this question: Let's suppose that I want override the QUERY_GOVERNOR_COST_LIMIT value for an user that connects to the server. How can I do that? I want to customize the value per user so I won't use sp_cofigure and query governor cost</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Pop Quiz: SET OPTIONS in Triggers</title><link>http://sqlserver.ro/blogs/cristians_blog/archive/2007/12/30/pop-quiz-set-options-in-triggers.aspx#3709</link><pubDate>Wed, 02 Jan 2008 15:52:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:3709</guid><dc:creator>xmldeveloper</dc:creator><description>&lt;p&gt;Since there are no answers, I will give the answer myself:&lt;/p&gt;
&lt;p&gt;[quote from=&amp;quot;BOL&amp;quot;]&lt;/p&gt;
&lt;p&gt;If a SET statement is run in a stored procedure or trigger, the value of the SET option is restored after control is returned from the stored procedure or trigger. &lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;So, the value will be the defaul one: 0.&lt;/p&gt;
</description></item></channel></rss>