<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx</link><description>Strange requirement, right? 
 Recently, I got a peculiar case wherein the demand made by the customer was to make sure no application should be able to connect to SQL Server unless and until all the databases are ONLINE. The business requirement of this</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx#10379727</link><pubDate>Thu, 20 Dec 2012 11:49:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379727</guid><dc:creator>Sumit Sarabhai</dc:creator><description>&lt;p&gt;Thanks for your comments. &lt;/p&gt;
&lt;p&gt;@Stisse: I haven&amp;#39;t tested it on Win 2012\SQL 2012. However, I will check this out and let you know.&lt;/p&gt;
&lt;p&gt;@Szymon: I didnt&amp;#39;t thought of this scenario. Obviously, you need to make relevant modifications to the trigger code to exclude Mirror database.&lt;/p&gt;
&lt;p&gt;@Pedro: There is no reason for not using the code that you have provided :) I just used a simplest scenario to write this blog. You may want to change the code as per your requirement.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379727" width="1" height="1"&gt;</description></item><item><title>re: How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx#10379445</link><pubDate>Wed, 19 Dec 2012 14:48:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379445</guid><dc:creator>Pedro Lopes</dc:creator><description>&lt;p&gt;Correction: I meant (...) WHERE state = 2 OR state = 3 (...)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379445" width="1" height="1"&gt;</description></item><item><title>re: How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx#10379385</link><pubDate>Wed, 19 Dec 2012 11:15:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379385</guid><dc:creator>Pedro Lopes</dc:creator><description>&lt;p&gt;Hi Sumit,&lt;/p&gt;
&lt;p&gt;Good post. Any reason you didn&amp;#39;t validate just something like (...) WHERE state != 2 OR state != 3 (...)?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;PL&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379385" width="1" height="1"&gt;</description></item><item><title>re: How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx#10379373</link><pubDate>Wed, 19 Dec 2012 10:35:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379373</guid><dc:creator>Szymon Wojcik</dc:creator><description>&lt;p&gt;What about databases which are mirrored? They have state = 1 in sys.databases, so in this example you won&amp;#39;t be able to log in if your server contains a mirror database.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379373" width="1" height="1"&gt;</description></item><item><title>re: How to limit connections to SQL Server until all databases are ONLINE!</title><link>http://blogs.msdn.com/b/sqlserverfaq/archive/2012/12/18/how-to-limit-connections-to-sql-server-until-all-databases-are-online.aspx#10379004</link><pubDate>Tue, 18 Dec 2012 12:06:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379004</guid><dc:creator>Stisse Twardy</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It is very interesting article, but how I should create such solution using Windows 2012 Cluster and SQL2012 in Cluster?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379004" width="1" height="1"&gt;</description></item></channel></rss>