<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Production Readiness | CraftedSQL</title>
	<atom:link href="https://www.craftedsql.com/tag/production-readiness/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tailored SQL Solutions</description>
	<lastBuildDate>Thu, 19 Nov 2026 21:05:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.craftedsql.com/wp-content/uploads/2024/11/CraftedSQL-Website-Icon-150x150.png</url>
	<title>Production Readiness | CraftedSQL</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Patching SQL Server Failover Cluster Instances: What to Validate Before the Maintenance Window</title>
		<link>https://www.craftedsql.com/sql-server-cluster-patching/</link>
		
		<dc:creator><![CDATA[Bjoern@CraftedSQL]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 15:29:00 +0000</pubDate>
				<category><![CDATA[High Availability & Recovery]]></category>
		<category><![CDATA[Operational Risk]]></category>
		<category><![CDATA[Production Readiness]]></category>
		<category><![CDATA[SQL Server Operations]]></category>
		<guid isPermaLink="false">https://www.craftedsql.com/?p=21270</guid>

					<description><![CDATA[<p>The first update in a SQL Server cluster patching window is complete. In this example, the DBA moves a two-node failover cluster instance (FCI) to the updated node. Failover Cluster Manager shows the instance online, and the DBA can connect. On the application side, the order screen opens as expected, but saving a test order ... <a title="Patching SQL Server Failover Cluster Instances: What to Validate Before the Maintenance Window" class="read-more" href="https://www.craftedsql.com/sql-server-cluster-patching/" aria-label="Read more about Patching SQL Server Failover Cluster Instances: What to Validate Before the Maintenance Window">Read more</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-cluster-patching/">Patching SQL Server Failover Cluster Instances: What to Validate Before the Maintenance Window</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The first update in a SQL Server cluster patching window is complete. In this example, the DBA moves a two-node failover cluster instance (FCI) to the updated node. Failover Cluster Manager shows the instance online, and the DBA can connect. On the application side, the order screen opens as expected, but saving a test order ends in a timeout. A second attempt succeeds.</p>



<p class="wp-block-paragraph">The next step in the plan is to update the original node. Is one successful retry enough to go ahead? The answer depends on what the team agreed to test, what it knows about the first attempt, and what it can still do if the application starts timing out again. Those questions are easier to settle while both nodes are available and the application is still serving users.</p>



<h2 class="wp-block-heading">What to check before SQL Server cluster patching</h2>



<p class="wp-block-paragraph">Start with the update package and the SQL Server build on each node. Confirm which instances the package applies to and whether any prerequisites or pending restarts need attention before Setup. If Windows maintenance falls in the same window, put both sets of work on the same timeline and agree who owns each part. The Windows team may be ready to reboot a node the DBA still needs to host an instance. A shared schedule makes that conflict visible before either team starts.</p>



<p class="wp-block-paragraph">On a cluster with several FCIs, a node can be passive for the ERP instance while actively running the reporting instance. The SQL Server cluster patching plan should show where each affected role will run while that node is in maintenance. If several instances will temporarily share one node, consider what they’ll be doing at the time. An overnight import or a scheduled report can compete for resources with the applications the team expects to validate.</p>



<h3 class="wp-block-heading">How much does the last failover tell you?</h3>



<p class="wp-block-paragraph">A node may have been <code>Up</code> for months while the other node owned the FCI. When you look at the last successful move, ask what has changed since then. A storage change or a new policy on the target node can make that earlier result less representative. Starting the instance on the target exercises the dependencies it actually needs there, including its network name and storage. See <a href="https://learn.microsoft.com/en-us/sql/sql-server/failover-clusters/windows/always-on-failover-cluster-instances-sql-server?view=sql-server-ver17">Microsoft’s overview of failover cluster instances</a>.</p>



<p class="wp-block-paragraph">Suppose the FCI last ran on the second node before a storage change. The application has worked normally on the first node ever since. A separately scheduled failover test before SQL Server cluster patching lets the team see whether the instance starts on the second node with the current configuration. The application team can then test its connection and workflow. If the instance fails to start, the DBA can investigate while the SQL Server build is unchanged. Where a separate test is impractical, factor any changes since the last successful move into the decision to proceed and the time reserved for recovery.</p>



<h3 class="wp-block-heading">Where the failover fits in the update sequence</h3>



<p class="wp-block-paragraph">Check what the selected update procedure does to ownership. SQL Server Setup can initiate a failover during a rolling upgrade, and the nodes eligible to own the instance can change as the upgrade progresses. Work out when the team can pause to test the application and act on the result. The previous runbook is a useful starting point if you first check its assumptions against the package, SQL Server version and cluster layout you’re working with. See <a href="https://learn.microsoft.com/en-us/sql/sql-server/failover-clusters/windows/upgrade-a-sql-server-failover-cluster-instance?view=sql-server-ver17#perform-a-rolling-upgrade-or-update">Microsoft’s guidance on rolling FCI updates and upgrades</a>.</p>



<h2 class="wp-block-heading">Agree on a test the application owner can run</h2>



<p class="wp-block-paragraph">“Verify the application” is easy to put in a change plan. Think about what the person carrying it out needs to see. Opening the order screen is a reasonable first check. If users need to save orders as soon as service resumes, include a save in the test and agree how to do it safely. A designated record may be enough. If saving an order can reserve stock or trigger a shipment, the application owner needs to know what the test will set in motion and how to handle it afterwards.</p>



<p class="wp-block-paragraph">Run the same test before maintenance if you can. Perhaps an order usually takes a few seconds to save because the application calls another service. Or the record may appear immediately while a background process handles it later. Knowing how the workflow behaves beforehand gives the team something to compare with the result after failover. It can also reveal that the proposed test depends on a service that will be unavailable that night. There’s still time to arrange for that dependency or choose another business operation that uses the database.</p>



<h3 class="wp-block-heading">Who can confirm the result during the window?</h3>



<p class="wp-block-paragraph">The DBA can establish where the instance is running and whether the database is available. The application owner may know whether a “saved” message means the order is already in the database or whether more processing needs to finish. On a shared FCI, agree which applications need that level of validation before the team moves on. An order entry system that users need as soon as the window ends may require a different check from a reporting application whose next scheduled job runs later.</p>



<p class="wp-block-paragraph">That matters when SQL Server cluster patching takes place outside business hours and the person who normally checks the order workflow starts the following morning. Another team member might be able to run the test with a written procedure, or an existing automated check might already provide the evidence the team needs. Agree on the approach before approving the change. The change owner should know who can run the check and interpret its result when the decision falls due.</p>



<h2 class="wp-block-heading">After FCI failover, follow the connection through to the application</h2>



<p class="wp-block-paragraph">Once the instance moves, confirm that it’s online on the expected node and reports the intended build. Check that the databases the application needs are online, then use the SQL Server error log to review startup and database recovery. If the business process depends on SQL Server Agent, include Agent and the relevant jobs. An import, for example, may rely on a job the team disabled before maintenance. Someone needs to know when to re-enable it and what to look for on its first run.</p>



<p class="wp-block-paragraph">Run the application test from a representative host using the usual connection settings and identity. A successful connection from the DBA’s workstation establishes that SQL Server responds along that path. The application may use a different driver, alias or authentication context, and even the way the client locates a named instance can matter during a move. These details came into play in the <a href="https://www.craftedsql.com/sql-server-case-studies/">CraftedSQL case study on FCI failover and client connectivity</a>.</p>



<h3 class="wp-block-heading">What a successful retry tells you</h3>



<p class="wp-block-paragraph">Back at the order screen, the first save timed out and the second succeeded. Before sending another request, check the application log and look at what happened to the designated record. The first request might have failed before it reached SQL Server. It might also have reached the database and taken longer than the application would wait, or completed while the application was still waiting for a response. If the timed-out request actually saved the order, a user who retries may have to work out which requests went through.</p>



<p class="wp-block-paragraph">The timing gives the team a place to start. If the first request used a connection that was open before failover, compare it with a test using a fresh connection. Repeated timeouts on fresh connections give the team a reproducible problem to investigate. If later saves complete normally and the record is visible, compare the result with the recovery time the application owner agreed to accept. A short reconnect delay may be within expectations. The team should have enough evidence to explain why it is ready to continue.</p>



<h2 class="wp-block-heading">When to stop SQL Server cluster patching</h2>



<p class="wp-block-paragraph">If Setup fails on the passive node and the original owner is still serving production, pause the rollout there. Capture the Setup result and logs before retrying. Find out what changed during the failed installation and whether the instance can still move to the other node. In a two-node cluster, the application may remain available while the team has less protection against another failure. Record both facts for the people taking over the investigation. Microsoft explains <a href="https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/install/windows/sqlserver-patching-issues">which Setup logs to review when a cumulative update fails</a>.</p>



<p class="wp-block-paragraph">If the failure occurs during the move, start with what the cluster attempted and where it stopped. The cluster events can help establish whether a required resource failed to come online. If the engine started, the SQL Server error log may show how far it got. A storage or network-name resource failure gives the infrastructure team a different starting point from a database recovery error after SQL Server starts. Keep the timestamps with the evidence so both teams are looking at the same failover attempt. For background, see <a href="https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/failover-clusters/windows-failover-cluster-resource-depend">Microsoft’s guidance on SQL Server cluster resource dependencies</a>.</p>



<p class="wp-block-paragraph">If SQL Server comes online on the updated node and the business operation keeps failing, hold the next update. How long the team can investigate depends on what it can still do to recover service. The time available is easier to judge if the team already knows which recovery options apply at this stage.</p>



<h3 class="wp-block-heading">Document when failback is possible</h3>



<p class="wp-block-paragraph">During SQL Server cluster patching, the available recovery options can change as Setup progresses. A runbook entry that says “fail back if required” needs enough detail for someone to act on it. Which node can still own the instance? Who makes the call to move it, and who verifies the application afterwards? If the original node can no longer take ownership, the team needs a recovery path it can use from the current state.</p>



<p class="wp-block-paragraph">Moving the role back, uninstalling an update and restoring a database address different failures. Each has prerequisites and takes time to carry out and validate. Check the supported options for the specific update before the window. If moving back would restore service in the scenario you’re planning for, write down when that option is available. Make it clear in the runbook if the recovery procedure changes once the instance starts on the updated node. See <a href="https://learn.microsoft.com/en-us/sql/sql-server/failover-clusters/windows/upgrade-a-sql-server-failover-cluster-instance?view=sql-server-ver17">Microsoft’s documentation on ownership during an FCI upgrade</a>.</p>



<h2 class="wp-block-heading">Set a decision time before the window starts</h2>



<p class="wp-block-paragraph">Work backwards from the end of the window. Leave enough time to carry out the agreed recovery action and have the application owner verify that service works again. Then estimate how long the remaining node needs for its update, any required restart and the checks that follow. These estimates tell the change owner how late the next update can start and when the team needs to stop investigating an unresolved problem. If the window can be extended, agree who can authorise that and which teams need to know.</p>



<p class="wp-block-paragraph">For the order application, the DBA confirms that the instance is online on the updated node, running the intended build, with the required databases available. The application owner confirms that the designated test order saved within the agreed time and that the record is visible afterwards. If either result is still open at the decision time, the change owner holds the next update and follows the agreed recovery or escalation path. The DBA and the application owner know what they’re waiting for and who can confirm it.</p>



<h3 class="wp-block-heading">Close the change after both nodes are ready</h3>



<p class="wp-block-paragraph">After updating the remaining node, verify the intended build on each node using the appropriate evidence. Confirm which node owns the instance and check that the cluster has the expected failover targets again. Restore the jobs and monitoring rules suspended for maintenance. If the runbook includes a move back to the original node, repeat the application test after that move. The earlier result covered the order workflow while the instance ran on the other node.</p>



<p class="wp-block-paragraph">Keep the timing of the first successful business operation with the change record. Before the next round of SQL Server cluster patching, compare that result with the time at which the instance came online. If SQL Server was ready quickly and the first order still took much longer to save, the gap gives the DBA and application owner something specific to investigate. It also gives them a better basis for estimating how long users will wait before they can get back to work.</p>
<p>The post <a href="https://www.craftedsql.com/sql-server-cluster-patching/">Patching SQL Server Failover Cluster Instances: What to Validate Before the Maintenance Window</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SqlClient Connection Pool V2: Faster Connections, New Questions for SQL Server Operations</title>
		<link>https://www.craftedsql.com/sqlclient-connection-pool-v2/</link>
		
		<dc:creator><![CDATA[Bjoern@CraftedSQL]]></dc:creator>
		<pubDate>Thu, 05 Nov 2026 10:08:00 +0000</pubDate>
				<category><![CDATA[Performance & Optimization]]></category>
		<category><![CDATA[Concurrency]]></category>
		<category><![CDATA[Production Readiness]]></category>
		<category><![CDATA[SQL Server Performance]]></category>
		<guid isPermaLink="false">https://www.craftedsql.com/?p=21255</guid>

					<description><![CDATA[<p>An application can take longer than expected to become ready, even when the SQL Server behind it is performing normally. After a deployment or restart, several application components may request database connections almost simultaneously. SqlClient Connection Pool V2 targets precisely this kind of cold-start behavior. The database is available, authentication works, and there are no ... <a title="SqlClient Connection Pool V2: Faster Connections, New Questions for SQL Server Operations" class="read-more" href="https://www.craftedsql.com/sqlclient-connection-pool-v2/" aria-label="Read more about SqlClient Connection Pool V2: Faster Connections, New Questions for SQL Server Operations">Read more</a></p>
<p>The post <a href="https://www.craftedsql.com/sqlclient-connection-pool-v2/">SqlClient Connection Pool V2: Faster Connections, New Questions for SQL Server Operations</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">An application can take longer than expected to become ready, even when the SQL Server behind it is performing normally. After a deployment or restart, several application components may request database connections almost simultaneously. <strong>SqlClient Connection Pool V2</strong> targets precisely this kind of cold-start behavior. The database is available, authentication works, and there are no obvious performance problems, yet the application is still waiting for the connections it needs.</p>



<p class="wp-block-paragraph">In such situations, the delay may have little to do with query execution. Before an application can submit its first query, the database driver needs to establish physical connections, which involves network communication, authentication and session initialization.</p>



<p class="wp-block-paragraph">Microsoft introduced the new implementation with Microsoft.Data.SqlClient 7.1. It lets the driver establish multiple physical database connections concurrently.</p>



<p class="wp-block-paragraph">Initial benchmarks show a substantial improvement during connection pool initialization. That is particularly interesting for applications that scale dynamically or frequently start new processes and containers. However, an improvement in the database driver also deserves a closer look from the infrastructure side.</p>



<p class="wp-block-paragraph">If applications can establish connections considerably faster, what does that mean for the SQL Server receiving those connections?</p>



<h2 class="wp-block-heading">What SqlClient Connection Pool V2 Actually Changes</h2>



<p class="wp-block-paragraph">Connection pooling has been part of SQL Server application connectivity for many years. Instead of establishing a new physical connection for every database operation, the driver maintains a pool of connections that applications can reuse.</p>



<p class="wp-block-paragraph">This avoids repeatedly paying the overhead associated with connection establishment and authentication. For applications that open and close logical connections frequently, pooling can make a considerable difference. Microsoft explains the underlying behavior in its <a href="https://learn.microsoft.com/en-us/sql/connect/ado-net/sql-server-connection-pooling?view=sql-server-ver17">SQL Server connection pooling documentation</a>.</p>



<p class="wp-block-paragraph">The situation changes when an application needs more connections than its existing pool can provide. This can happen after a restart, during application initialization or when additional application instances start to handle increasing demand.</p>



<p class="wp-block-paragraph">With the legacy Microsoft.Data.SqlClient implementation, an individual pool establishes new physical connections sequentially. Even if several application components request connections concurrently, the pool creates only one new physical connection at a time. As a result, connection establishment itself can become a limiting factor.</p>



<p class="wp-block-paragraph">Connection Pool V2 addresses this limitation through a different internal implementation that supports concurrent physical connection establishment. It also introduces a channel-based design intended to improve how the driver handles concurrent and asynchronous connection requests.</p>



<p class="wp-block-paragraph">The existing connection-string settings continue to apply, and applications do not need to change their database-access logic to use the new implementation.</p>



<p class="wp-block-paragraph">There is, however, an important distinction between creating connections and executing database operations. Connection Pool V2 changes how the client manages physical connections. It does not change the SQL Server query optimizer, improve execution plans or make individual SQL statements execute faster.</p>



<p class="wp-block-paragraph">An application that spends significant time establishing new connections may benefit considerably. An application that already reuses established connections efficiently may see little difference.</p>



<h2 class="wp-block-heading">Understanding the 6.6x Performance Improvement</h2>



<p class="wp-block-paragraph">Microsoft&#8217;s <a href="https://devblogs.microsoft.com/azure-sql/try-sqlclients-new-connection-pool-for-faster-parallel-connections/">original announcement of Connection Pool V2</a> includes benchmark results that demonstrate why the new implementation is attracting attention.</p>



<p class="wp-block-paragraph">In an asynchronous cold-start scenario involving 100 concurrent connection requests on Linux, the reported mean execution time decreased from 604.1 milliseconds with the legacy pool to 92.0 milliseconds with Connection Pool V2.</p>



<p class="wp-block-paragraph">That represents approximately a <strong>6.6x improvement</strong> in the measured operation.</p>



<p class="wp-block-paragraph">The result is impressive, particularly because teams often treat connection establishment as a relatively minor part of database performance. Yet the conditions of the benchmark are just as important as the resulting numbers.</p>



<p class="wp-block-paragraph">The test measured the time needed to establish a group of physical connections during a cold start. It did not measure SQL query execution times or the performance of an application continuously reusing an established pool.</p>



<p class="wp-block-paragraph">Microsoft also ran the benchmark application and SQL Server on the same machine, minimizing network-related variability. In production, the database server may run on a different host, in another network segment or behind additional infrastructure components. Authentication methods, network latency and resource availability can further influence the outcome.</p>



<p class="wp-block-paragraph">These differences do not invalidate the benchmark. They simply define what its results demonstrate and where additional testing becomes necessary.</p>



<p class="wp-block-paragraph">For an application that frequently initializes new connection pools, the improvement may be highly relevant. For an application server maintaining relatively stable connection pools throughout the day, the practical benefit could be considerably smaller.</p>



<p class="wp-block-paragraph">The useful question is therefore not whether SqlClient Connection Pool V2 is faster in the published benchmark. Microsoft has demonstrated that it is. The question is whether physical connection establishment represents a meaningful limitation in the application environment under review.</p>



<h2 class="wp-block-heading">Faster Connections and Their Impact on SQL Server</h2>



<p class="wp-block-paragraph">From a SQL Server operations perspective, the interesting part begins when we consider how applications use connection pools in larger environments.</p>



<p class="wp-block-paragraph">A connection pool belongs to an application process. It is not a shared pool that automatically serves every application server, container or service instance.</p>



<p class="wp-block-paragraph">Imagine an application running across several containers. Each container maintains its own database connections, and a deployment or scaling event may cause several containers to initialize their connection pools within a short period.</p>



<p class="wp-block-paragraph">With the legacy implementation, each pool establishes new physical connections sequentially. Connection Pool V2 allows those pools to grow more quickly by establishing multiple connections concurrently.</p>



<p class="wp-block-paragraph">For the application, this can reduce the time required to become fully operational. On the SQL Server side, however, it may change the arrival pattern of new connection requests.</p>



<p class="wp-block-paragraph">Instead of receiving those connections over a more extended period, SQL Server could experience a more concentrated burst of login and session initialization activity, particularly when many application instances start simultaneously.</p>



<p class="wp-block-paragraph">That does not automatically create a performance problem. A properly sized SQL Server environment may handle the additional concurrency without noticeable difficulty. In some situations, completing connection establishment sooner could even reduce the time during which startup-related activity affects the overall workload.</p>



<p class="wp-block-paragraph">Nevertheless, the behavior deserves attention because database connectivity consumes resources on both sides of the connection.</p>



<p class="wp-block-paragraph">Authentication, session initialization and the resources associated with established connections remain relevant, regardless of how efficiently the client manages its connection pool.</p>



<p class="wp-block-paragraph">This becomes especially interesting in environments where multiple applications share the same SQL Server instance or where application scaling can happen independently of database capacity.</p>



<h3 class="wp-block-heading">Connection Pool Limits Still Matter</h3>



<p class="wp-block-paragraph">Connection Pool V2 does not remove the need to understand connection pool sizing and configuration.</p>



<p class="wp-block-paragraph">Settings such as <code>Min Pool Size</code> and <code>Max Pool Size</code> continue to influence how the driver maintains connections and how many physical connections an individual pool can establish.</p>



<p class="wp-block-paragraph">The important detail is that these limits apply to individual pools rather than to an entire distributed application.</p>



<p class="wp-block-paragraph">For example, an application running across multiple processes or containers can maintain several independent pools. Different connection strings and certain differences in authentication context may create additional pools.</p>



<p class="wp-block-paragraph">Consequently, the total potential number of physical database connections can be considerably higher than the <code>Max Pool Size</code> configured for an individual pool.</p>



<p class="wp-block-paragraph">Connection Pool V2 does not inherently increase those limits. Instead, it changes how quickly the driver can establish physical connections within them.</p>



<p class="wp-block-paragraph">In environments where application scaling already approaches database connection or resource limits, this distinction becomes operationally relevant. Creating connections faster does not increase the database server&#8217;s underlying capacity.</p>



<h2 class="wp-block-heading">Where Connection Pool V2 Will Not Help</h2>



<p class="wp-block-paragraph">Not every delay involving database connections stems from slow physical connection establishment.</p>



<p class="wp-block-paragraph">An application may spend time waiting because all available pooled connections are already in use. Connections can remain occupied by long-running operations, open transactions or application code that does not release them promptly.</p>



<p class="wp-block-paragraph">Under those circumstances, creating new physical connections more efficiently may provide little benefit once the application reaches the configured pool limit.</p>



<p class="wp-block-paragraph">Similarly, an application suffering from blocking, inefficient execution plans or excessive resource consumption will not resolve those problems by changing its connection pool implementation.</p>



<p class="wp-block-paragraph">This distinction is important during troubleshooting because application errors and timeouts do not always identify the underlying cause.</p>



<p class="wp-block-paragraph">A connection timeout may originate while establishing a physical connection or while waiting for a connection to become available. A command timeout, on the other hand, concerns an operation submitted to SQL Server. Those situations require different diagnostic approaches.</p>



<p class="wp-block-paragraph">Understanding where the delay actually occurs is therefore more useful than immediately adjusting connection pool settings.</p>



<p class="wp-block-paragraph">Teams should evaluate application-side connection timings alongside SQL Server evidence such as session activity, resource utilization, wait statistics and the behavior of the affected workload.</p>



<p class="wp-block-paragraph">This is also a familiar principle in <a href="https://www.craftedsql.com/sql-server-bottleneck-triage-signals-causes/">SQL Server bottleneck triage</a>. The visible symptom provides a starting point, but a reliable diagnosis depends on understanding what happens throughout the affected operation.</p>



<h2 class="wp-block-heading">Evaluating Connection Pool V2 Before Production</h2>



<p class="wp-block-paragraph">Microsoft introduced SqlClient Connection Pool V2 with Microsoft.Data.SqlClient 7.1.0. It remains opt-in throughout the 7.x series, with the legacy pool still enabled by default.</p>



<p class="wp-block-paragraph">As of November 2026, version 7.1.1 is the latest documented 7.1 release. It fixes an issue involving expired access tokens when reusing connections with Pool V2, making the exact driver version relevant during testing. Microsoft documents the fix in the <a href="https://learn.microsoft.com/en-us/sql/connect/ado-net/microsoft-data-sql-client-release-notes?view=sql-server-ver17">Microsoft.Data.SqlClient release notes</a>.</p>



<p class="wp-block-paragraph">Applications can enable the new implementation through an <code>AppContext</code> switch:</p>



<pre class="wp-block-code"><code>AppContext.SetSwitch(
    "Switch.Microsoft.Data.SqlClient.UseConnectionPoolV2",
    true);</code></pre>



<p class="wp-block-paragraph">Applications must set the switch during startup, before SqlClient initializes and caches the relevant configuration. Microsoft explains this behavior in its <a href="https://learn.microsoft.com/en-us/sql/connect/ado-net/appcontext-switches?view=sql-server-ver17">AppContext switches documentation</a>.</p>



<p class="wp-block-paragraph">The configuration change is small, but its effects deserve a broader evaluation.</p>



<p class="wp-block-paragraph">Start by measuring the application with its existing pool. Record startup times, connection establishment latency and the number of physical connections created.</p>



<p class="wp-block-paragraph">Then evaluate the same workload with Connection Pool V2 enabled under conditions that reflect the deployment architecture.</p>



<p class="wp-block-paragraph">For dynamically scaled applications, this means looking beyond a single process. A coordinated restart of multiple instances may expose different behavior from a test involving just one application instance.</p>



<p class="wp-block-paragraph">DBAs should also monitor SQL Server during these tests. Login activity, session counts and resource utilization help assess whether the improvement benefits the overall environment.</p>



<p class="wp-block-paragraph">Network conditions also deserve consideration. Microsoft notes that <code>OpenAsync()</code> does not yet perform every underlying network operation asynchronously. Under higher network latency, concurrent connection establishment may therefore place additional pressure on managed thread-pool resources.</p>



<p class="wp-block-paragraph">This limitation does not negate the benefits of Pool V2, but it illustrates why a benchmark performed under low-latency conditions cannot represent every production environment.</p>



<h3 class="wp-block-heading">Recovery and Failover Scenarios Deserve Attention</h3>



<p class="wp-block-paragraph">Another useful test involves application recovery after a temporary loss of database connectivity.</p>



<p class="wp-block-paragraph">Following a SQL Server failover, network interruption or database service restart, multiple application instances may attempt to reconnect within a short period. Depending on the application&#8217;s retry behavior and the state of its connection pools, this can produce concentrated connection activity.</p>



<p class="wp-block-paragraph">Connection Pool V2 changes how the driver establishes new physical connections, but it does not define the application&#8217;s entire recovery behavior.</p>



<p class="wp-block-paragraph">Retry policies, connection timeouts, authentication and the handling of failed connections remain important. The interaction between these components should be understood rather than assuming that faster connection establishment automatically improves service recovery.</p>



<p class="wp-block-paragraph">For business-critical applications, the relevant assessment includes both how quickly the application reconnects and whether the resulting workload remains manageable for SQL Server.</p>



<p class="wp-block-paragraph">An evaluation should therefore cover normal startup, representative peak demand and recovery scenarios where connection pools need to establish new physical connections.</p>



<p class="wp-block-paragraph">Because SqlClient selects the pool implementation when it creates the first pool, meaningful A/B testing requires separate application processes with the appropriate configuration.</p>



<p class="wp-block-paragraph">Returning to the legacy implementation is straightforward: disable the switch and restart the application. Having that rollback option documented is useful, particularly while Pool V2 remains an opt-in feature.</p>



<h2 class="wp-block-heading">A Useful Improvement That Needs the Right Context</h2>



<p class="wp-block-paragraph">SqlClient Connection Pool V2 addresses a genuine limitation in the legacy Microsoft.Data.SqlClient implementation. Applications that frequently need to establish many physical database connections may benefit significantly from the ability to create them concurrently.</p>



<p class="wp-block-paragraph">The published benchmark provides encouraging evidence, and the implementation offers a relatively accessible way to evaluate the improvement without redesigning application database access.</p>



<p class="wp-block-paragraph">At the same time, connection management is part of the relationship between an application and its database infrastructure. Improving one part of that relationship can change how workloads arrive at SQL Server, even when the database engine itself remains unchanged.</p>



<p class="wp-block-paragraph">For an application with stable connection pools and predictable demand, adopting Pool V2 may have little immediate operational impact. In an environment with frequent container starts, dynamic scaling or periods of concentrated connection activity, the benefits and potential side effects deserve closer examination.</p>



<p class="wp-block-paragraph">Neither situation makes the new implementation inherently right or wrong. The decision depends on whether connection establishment currently limits application responsiveness and whether the surrounding infrastructure can support the resulting behavior.</p>



<p class="wp-block-paragraph">That is also why evaluating changes like this should not be left exclusively to application developers or database administrators. Both perspectives contribute information that the other side may not have.</p>



<p class="wp-block-paragraph">Application teams understand startup behavior, connection usage and scaling patterns. SQL Server administrators can assess how those patterns interact with database resources, existing workloads and operational limits.</p>



<p class="wp-block-paragraph">When those observations are brought together, the question becomes much more practical:</p>



<p class="wp-block-paragraph"><strong>Will Connection Pool V2 improve the application&#8217;s real operating conditions without introducing new bottlenecks elsewhere in the environment?</strong></p>



<p class="wp-block-paragraph">That is the level at which a promising technical improvement becomes a sound production decision.</p>



<p class="has-small-font-size wp-block-paragraph">Foto von <a href="https://unsplash.com/de/@federi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Patrick Federi</a> auf <a href="https://unsplash.com/de/fotos/eine-luftaufnahme-einer-mehrspurigen-autobahn-RshUMrKap-0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p>
<p>The post <a href="https://www.craftedsql.com/sqlclient-connection-pool-v2/">SqlClient Connection Pool V2: Faster Connections, New Questions for SQL Server Operations</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>When High Availability Becomes Critical: SQL Server in Essential Infrastructure</title>
		<link>https://www.craftedsql.com/sql-server-high-availability-critical-infrastructure/</link>
		
		<dc:creator><![CDATA[Bjoern@CraftedSQL]]></dc:creator>
		<pubDate>Thu, 29 Oct 2026 07:54:00 +0000</pubDate>
				<category><![CDATA[High Availability & Recovery]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[Operational Risk]]></category>
		<category><![CDATA[Production Readiness]]></category>
		<category><![CDATA[SQL Server Operations]]></category>
		<guid isPermaLink="false">https://www.craftedsql.com/?p=21244</guid>

					<description><![CDATA[<p>A hospital emergency department depends on much more than medical staff, diagnostic equipment and available treatment rooms. Behind everyday clinical processes, information systems exchange patient data, process laboratory results and deliver diagnostic findings to the people who need them. Most of these systems receive little attention as long as they work. Yet their availability can ... <a title="When High Availability Becomes Critical: SQL Server in Essential Infrastructure" class="read-more" href="https://www.craftedsql.com/sql-server-high-availability-critical-infrastructure/" aria-label="Read more about When High Availability Becomes Critical: SQL Server in Essential Infrastructure">Read more</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-high-availability-critical-infrastructure/">When High Availability Becomes Critical: SQL Server in Essential Infrastructure</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></description>
										<content:encoded><![CDATA[

<p class="wp-block-paragraph">A hospital emergency department depends on much more than medical staff, diagnostic equipment and available treatment rooms. Behind everyday clinical processes, information systems exchange patient data, process laboratory results and deliver diagnostic findings to the people who need them. Most of these systems receive little attention as long as they work. Yet their availability can become critical when medical decisions depend on information that has not arrived. In these environments, high availability in critical infrastructure is closely connected to the reliability of SQL Server systems supporting essential services.</p>



<p class="wp-block-paragraph">Consider a laboratory information system that suddenly becomes unavailable. Staff may still collect and analyse samples, but the normal electronic workflow for processing, validating and delivering results comes to a halt. Depending on the hospital&#8217;s contingency procedures and the affected systems, this can delay clinical decisions and disrupt emergency department operations. In more severe situations, the hospital may need to restrict parts of its clinical workflow until the required information becomes available again.</p>



<p class="wp-block-paragraph">The underlying cause might be a failed SQL Server instance, an unsuccessful cluster failover or an inaccessible infrastructure component. To medical staff waiting for laboratory results, however, the technical distinction between these failures has little immediate relevance. What matters is whether the application remains available and how quickly the hospital can restore its functionality.</p>



<p class="wp-block-paragraph">Similar dependencies exist in other areas of critical infrastructure. Energy providers rely on information systems to support operational processes and coordinate technical activities. Water utilities use digital infrastructure to monitor and manage essential processes. Transportation operators depend on applications that coordinate schedules, resources and operational information. Emergency services and public administrations also operate systems whose failure can affect services that people depend on.</p>



<p class="wp-block-paragraph">Naturally, the consequences differ considerably between these environments. Even within the same organization, a database supporting internal reporting does not necessarily require the same availability as one involved in operational control or clinical diagnostics. The criticality of a database depends on the service it supports and the consequences of an interruption.</p>



<p class="wp-block-paragraph">For <strong>SQL Server high availability</strong>, this changes the starting point of an architectural discussion. Before selecting a technology to protect a database, the organization needs to understand what an interruption would mean for the processes that depend on it.</p>



<h2 class="wp-block-heading">High Availability in Critical Infrastructure Begins With the Service</h2>



<p class="wp-block-paragraph">Critical infrastructure is more than a convenient label for systems that an organization considers important. In Europe, frameworks such as the <a href="https://eur-lex.europa.eu/eli/dir/2022/2555/oj/eng">NIS2 Directive</a> and the <a href="https://eur-lex.europa.eu/eli/dir/2022/2557/oj/eng">Critical Entities Resilience Directive (CER)</a> address security and resilience across essential sectors. These include healthcare, energy, transportation, drinking water and digital infrastructure.</p>



<p class="wp-block-paragraph">These frameworks establish a broader context for organizational resilience. However, they do not determine which SQL Server high-availability architecture best suits an individual application. That decision requires a closer examination of the service, its dependencies and the operational requirements that follow from them.</p>



<p class="wp-block-paragraph">A hospital, for example, may operate numerous SQL Server instances supporting clinical applications, administrative systems, reporting platforms and infrastructure services. Some workloads can tolerate an interruption of several hours, provided that recovery remains predictable and data loss stays within acceptable limits. Others require much shorter recovery times because even a temporary loss of functionality affects clinical workflows.</p>



<p class="wp-block-paragraph">The architecture needs to account for those differences. Recovery Time Objectives (RTO) and Recovery Point Objectives (RPO) help translate operational requirements into measurable expectations. They describe how quickly a service needs to recover and how much data loss the organization can tolerate. However, these objectives are useful only when the technical design, supporting infrastructure and operating procedures can realistically meet them.</p>



<p class="wp-block-paragraph">For a laboratory information system, that assessment must extend beyond the SQL Server instance. The application may depend on several databases, application servers, interfaces to laboratory equipment and connections to other hospital systems. Restoring a database or bringing a cluster resource online may be necessary, but neither action automatically restores the complete workflow.</p>



<p class="wp-block-paragraph">This distinction matters when evaluating an existing architecture. A system can meet its technical availability objectives at the database level while the operational service still fails to meet its requirements. The database may be running correctly, yet the application cannot perform the functions its users need.</p>



<h2 class="wp-block-heading">When a Successful Failover Does Not Restore the Service</h2>



<p class="wp-block-paragraph">SQL Server provides established high-availability technologies for different failure scenarios. Always On Availability Groups protect databases through replicas on separate SQL Server instances. Failover Cluster Instances provide instance-level availability through Windows Server Failover Clustering. Virtualization platforms, resilient storage and redundant network components can add protection at other infrastructure layers. Microsoft describes these mechanisms in its documentation on <a href="https://learn.microsoft.com/en-us/sql/sql-server/failover-clusters/high-availability-solutions-sql-server">SQL Server business continuity and database recovery</a>.</p>



<p class="wp-block-paragraph">These technologies have legitimate and well-established uses. Problems arise when their presence becomes the primary evidence that an application is highly available.</p>



<p class="wp-block-paragraph">Consider a SQL Server Failover Cluster Instance supporting a clinical application. During an incident, a cluster node becomes unavailable. The cluster then brings the SQL Server resources online on another node. From the cluster&#8217;s perspective, the transition may have succeeded. SQL Server starts, the databases recover and the instance becomes accessible again.</p>



<p class="wp-block-paragraph">The application, however, may not immediately resume normal operation. Existing connections have been interrupted, application services may need to reconnect and some components may require additional recovery steps. If other services have also failed, restoring SQL Server alone may leave important functionality unavailable. Microsoft describes related considerations for <a href="https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-group-listener-overview">client connections during Availability Group failover</a>. During such a transition, existing connections terminate and applications must establish new ones.</p>



<p class="wp-block-paragraph">The situation becomes more difficult when different teams assess recovery from their own technical perspective. The infrastructure team confirms that the cluster is operational, while the database administrator verifies that SQL Server accepts connections. Meanwhile, application administrators may still be investigating why users cannot complete transactions or why an interface has stopped processing information.</p>



<p class="wp-block-paragraph">All these observations can be correct, although they describe different stages of recovery.</p>



<p class="wp-block-paragraph">In a hospital laboratory, the consequences are easy to understand. A successfully recovered database provides little immediate benefit to clinical staff if laboratory results still cannot reach the applications where they are needed. The database remains an essential part of the process, but its availability is only one condition for restoring the service.</p>



<p class="wp-block-paragraph">This does not mean the underlying high-availability technology has failed or that the architecture is unsuitable. Instead, the organization needs to distinguish between recovering an individual component and restoring the application or service. That distinction should also influence how teams test and document availability.</p>



<p class="wp-block-paragraph">A planned failover can demonstrate that SQL Server resources move between nodes under controlled conditions. It also gives administrators an opportunity to observe application reconnection and recovery behaviour. Yet a successful planned transition does not prove that the environment will behave identically during an unexpected failure. A node might lose network connectivity, storage could become unavailable or several infrastructure components might fail together.</p>



<p class="wp-block-paragraph">Windows Server Failover Clustering uses mechanisms such as cluster membership, quorum, resource dependencies and health monitoring. SQL Server adds database recovery and service-specific behaviour. The underlying network, storage and virtualization platforms introduce further dependencies, and their interaction determines what happens during a particular failure.</p>



<p class="wp-block-paragraph">A meaningful test should therefore cover the complete recovery path. How does the cluster react to the failure? When does SQL Server become accessible again? Do applications reconnect as expected, and can users resume their work? Most importantly, does the service recover within the limits the organization considers acceptable?</p>



<p class="wp-block-paragraph">Without those observations, an architecture may appear highly available on paper while important aspects of its actual recovery behaviour remain unknown.</p>



<h2 class="wp-block-heading">High Availability Must Also Support Normal Operations</h2>



<p class="wp-block-paragraph">Unexpected failures are only part of the challenge. Even a well-designed SQL Server environment requires regular maintenance. Operating system updates, SQL Server patches and changes to supporting infrastructure all form part of normal operations. In critical environments, administrators need to plan these activities with the same attention to service continuity as an unexpected outage.</p>



<p class="wp-block-paragraph">A cluster with multiple nodes can simplify maintenance, but it does not automatically make every operation safe or interruption-free.</p>



<p class="wp-block-paragraph">Before patching a node, administrators need to understand which resources it owns, whether the remaining nodes are healthy and what happens when a workload moves. The expected behaviour also depends on the SQL Server configuration, the application and the supporting infrastructure. Some changes allow limited disruption, while others require coordinated maintenance windows and explicit acceptance of temporary restrictions.</p>



<p class="wp-block-paragraph">Moving a workload away from a node can simplify maintenance. However, administrators must also verify that the environment has regained its intended level of protection afterward.</p>



<p class="wp-block-paragraph">For example, a security update may install successfully and the patched node may return to the cluster without errors. Nevertheless, the environment might remain in a degraded state if resources, dependencies or availability configurations have not returned to their intended condition. Completing the patch installation does not necessarily mean the operational task is finished.</p>



<p class="wp-block-paragraph">In hospital environments, this becomes particularly relevant. Administrators cannot always postpone necessary maintenance simply because the applications are important. Security vulnerabilities, unsupported software and overdue infrastructure changes introduce risks of their own. At the same time, maintenance without a clear understanding of failover behaviour can cause avoidable interruptions.</p>



<p class="wp-block-paragraph">For that reason, an architecture review should consider patchability before the environment enters production, and revisit it as the infrastructure evolves. Treating maintenance solely as a later operational concern can leave important weaknesses in the design.</p>



<p class="wp-block-paragraph">A sustainable high-availability design needs a realistic way to maintain its components, recover from expected interruptions and return to a known operating state. If these procedures depend on undocumented knowledge or prove unreliable in practice, the organization may face an operational weakness despite having redundant infrastructure.</p>



<h2 class="wp-block-heading">Recovery and Responsibility Extend Beyond the Cluster</h2>



<p class="wp-block-paragraph">High availability aims to reduce interruptions caused by particular failures, but no individual mechanism protects against every possible scenario. Some incidents exceed the capabilities of an Availability Group or Failover Cluster Instance. Others require the organization to restore data or application functionality from an earlier state.</p>



<p class="wp-block-paragraph">A database replica, for instance, does not necessarily protect against logical corruption or an incorrect operation that affects replicated data. Likewise, a functioning cluster cannot compensate for every failure involving shared infrastructure, external dependencies or the wider application environment.</p>



<p class="wp-block-paragraph">Organizations therefore still need appropriate backup and recovery procedures, even when they have designed their SQL Server infrastructure for high availability. The earlier CraftedSQL article <a href="https://www.craftedsql.com/sql-server-backup-strategy/">SQL Server Backup Strategy: Why Successful Backups Are Not Enough</a> explains why successful backup jobs alone do not establish recovery readiness.</p>



<p class="wp-block-paragraph">For critical applications, recovery procedures must account for more than restoring the database. The responsible teams need to know which databases and services belong together, which credentials and access paths recovery requires and how to return the application to an operational state. These dependencies can determine whether a technically successful restore actually helps the organization resume its work.</p>



<p class="wp-block-paragraph">Incident responsibilities deserve the same attention. Consider an outage affecting a hospital application outside normal working hours. Infrastructure administrators may manage the cluster and supporting systems, while database administrators investigate SQL Server behaviour. Application specialists understand the interfaces needed to restore clinical functionality. Hospital operations must determine whether the service can continue with temporary procedures or whether additional measures are necessary.</p>



<p class="wp-block-paragraph">Each team contributes important information. However, recovery becomes more difficult when nobody has established how these responsibilities fit together.</p>



<p class="wp-block-paragraph">Documentation can help, provided that it reflects how the environment actually operates. Network diagrams, instance names and cluster configurations support technical administration, but they do not necessarily explain how to restore application dependencies. Nor do they always establish who makes operational decisions or how teams determine that recovery is complete.</p>



<p class="wp-block-paragraph">These questions become particularly important when the people who originally designed or implemented the environment are unavailable. An organization should not have to reconstruct essential dependencies for the first time during an incident.</p>



<p class="wp-block-paragraph">None of this means that organizations must eliminate every dependency or deploy the most elaborate high-availability technology for every critical system. Modern infrastructures inevitably rely on multiple components and specialist teams. Many of those dependencies are reasonable, provided that the organization understands their effect on service continuity and consciously accepts the resulting risks.</p>



<p class="wp-block-paragraph">The more useful objective is to make those dependencies visible, assess their consequences and verify that recovery procedures work under realistic conditions. That understanding allows teams to prepare for failures without introducing unnecessary complexity into the architecture.</p>



<h2 class="wp-block-heading">Evaluating SQL Server High Availability From the Service Backwards</h2>



<p class="wp-block-paragraph">An architecture review for critical infrastructure should begin with the operational service rather than the SQL Server technology underneath it.</p>



<p class="wp-block-paragraph">For a hospital laboratory, this means understanding how laboratory information reaches clinical applications, which processes depend on it and what happens when those processes stop. From there, the assessment can follow the dependencies through application services, database instances, clustering, storage, networking and the supporting infrastructure.</p>



<p class="wp-block-paragraph">This approach also helps distinguish between different kinds of risk. An untested failover procedure deserves attention when the organization cannot predict how the application will recover. A known dependency on shared storage may be acceptable if the architecture and recovery plan account for its failure. A maintenance procedure that repeatedly leaves the environment without its intended redundancy may indicate an operational problem, even if no unplanned outage has occurred.</p>



<p class="wp-block-paragraph">The appropriate response depends on the actual requirements and the available evidence. Not every finding requires an architectural redesign, and another layer of redundancy is not automatically the best solution.</p>



<p class="wp-block-paragraph">A focused SQL Server architecture and operational review can establish whether the configuration supports the required availability objectives. It can also examine how the environment behaves during planned and unplanned transitions, and identify dependencies that may prevent complete service recovery. CraftedSQL addresses these questions through its <a href="https://www.craftedsql.com/sql-server-consulting-services/">SQL Server High Availability and Disaster Recovery consulting services</a>.</p>



<p class="wp-block-paragraph">For organizations operating essential services, this provides a more meaningful basis for technical decisions than selecting a technology simply because people associate it with high availability.</p>



<p class="wp-block-paragraph">The underlying question remains relatively straightforward: if a critical application becomes unavailable, does the organization understand its dependencies well enough to restore the service within an acceptable timeframe?</p>



<p class="wp-block-paragraph">That question reaches beyond SQL Server, but database architecture, configuration and operational procedures can strongly influence the answer. The value of high availability becomes visible when teams test the infrastructure under realistic conditions. They also need to understand what must happen when normal operations fail and how to bring the complete service back to an acceptable state.</p>

<p>The post <a href="https://www.craftedsql.com/sql-server-high-availability-critical-infrastructure/">When High Availability Becomes Critical: SQL Server in Essential Infrastructure</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server High Availability: Define the Failure Before Choosing the Technology</title>
		<link>https://www.craftedsql.com/sql-server-high-availability-design/</link>
		
		<dc:creator><![CDATA[Bjoern@CraftedSQL]]></dc:creator>
		<pubDate>Thu, 01 Oct 2026 10:24:00 +0000</pubDate>
				<category><![CDATA[High Availability & Recovery]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[Operational Decision Making]]></category>
		<category><![CDATA[Operational Risk]]></category>
		<category><![CDATA[Production Readiness]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.craftedsql.com/?p=21198</guid>

					<description><![CDATA[<p>A SQL Server high availability discussion can turn into a technology discussion very quickly. Someone suggests an Availability Group, someone else prefers a Failover Cluster Instance, and before long the conversation is about synchronous replicas, shared storage, listeners and automatic failover. Those may all become relevant. But at that point, one important question is often ... <a title="SQL Server High Availability: Define the Failure Before Choosing the Technology" class="read-more" href="https://www.craftedsql.com/sql-server-high-availability-design/" aria-label="Read more about SQL Server High Availability: Define the Failure Before Choosing the Technology">Read more</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-high-availability-design/">SQL Server High Availability: Define the Failure Before Choosing the Technology</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A SQL Server high availability discussion can turn into a technology discussion very quickly. Someone suggests an Availability Group, someone else prefers a Failover Cluster Instance, and before long the conversation is about synchronous replicas, shared storage, listeners and automatic failover.</p>



<p class="wp-block-paragraph">Those may all become relevant. But at that point, one important question is often still unanswered: <strong>what exactly are we trying to protect the service against?</strong></p>



<p class="wp-block-paragraph">A failed Windows node is not the same problem as losing a storage system. An unavailable SQL Server instance is different from losing an entire site. Planned maintenance creates another requirement again. If we do not separate those situations first, choosing the technology becomes partly guesswork. We are already discussing the architecture before we have defined what it actually needs to do.</p>



<h2 class="wp-block-heading">SQL Server high availability starts with the failure the service needs to survive</h2>



<p class="wp-block-paragraph">High availability is not a single condition. A production application can become unavailable because the server hosting SQL Server fails, because Windows or the SQL Server service has a problem, or because storage becomes inaccessible. The network path between the application and database can disappear as well. SQL Server itself may be completely healthy while clients can no longer reach it.</p>



<p class="wp-block-paragraph">The scale of the required protection also varies. One environment may only need to tolerate the loss of a single physical or virtual server. Storage, networking and the data center may already provide sufficient redundancy. Another workload may need to continue operating after the loss of a complete storage platform or location. Both are legitimate requirements, but they lead to different architectures.</p>



<p class="wp-block-paragraph">This is where technologies such as <a href="https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/failover-clustering-and-always-on-availability-groups-sql-server?view=sql-server-ver17">Failover Cluster Instances and Availability Groups</a> enter the discussion, although they solve different parts of the problem. An FCI provides redundancy for a SQL Server instance across Windows Server Failover Cluster nodes, while the database files remain on storage accessible to those nodes. An Availability Group maintains database replicas on separate SQL Server instances and can move the primary role between them.</p>



<p class="wp-block-paragraph">That difference matters, but it still does not tell us which design is appropriate. If the relevant failure is the loss of a Windows node while the shared infrastructure remains available, one architecture may be sufficient. If the requirement also includes a separate copy of the databases or protection against failure of the original storage platform, the design has to cover a wider failure domain.</p>



<p class="wp-block-paragraph">The same reasoning applies beyond SQL Server. Two database servers do not automatically remove every single point of failure. Both systems may still depend on the same storage platform, network components, DNS infrastructure, authentication services or physical location. That does not make such an architecture wrong; shared components may themselves be highly available. What matters is knowing where the common dependencies are and whether they sit inside or outside the failure scenario the design needs to handle.</p>



<p>When reviewing an HA design, I therefore find a different question more useful than simply asking whether two SQL Servers exist: <strong style="display:inline">which failure could remove both systems, or make both unreachable, at the same time?</strong></p>



<p class="wp-block-paragraph">That usually gives the architecture discussion a much clearer boundary.</p>



<h2 class="wp-block-heading">RPO and RTO need to be requirements, not consequences</h2>



<p class="wp-block-paragraph">Once we understand the failure scenarios, the next question is what the organization expects to happen after one of them occurs. How much committed data can the business afford to lose, and how long may the service remain unavailable?</p>



<p class="wp-block-paragraph">We normally describe these requirements as recovery point objective and recovery time objective. They should influence the architecture before the team selects a technology. They should not become numbers derived afterwards from whatever solution the team happened to implement.</p>



<p class="wp-block-paragraph">A workload that can tolerate several minutes of potential data loss gives the architecture more options. A transactional system where losing acknowledged transactions would create a serious business problem has very different requirements. The same applies to recovery time. If an application can remain unavailable for an hour, the design does not need to behave like a system expected to resume operation within a few minutes.</p>



<p class="wp-block-paragraph">Availability Groups provide a good example because the configuration itself changes the recovery characteristics. Synchronous and asynchronous commit modes make different trade-offs around transaction protection, latency and distance. A synchronized synchronous replica can support failover scenarios without losing committed transactions under the conditions covered by that design. An asynchronous replica, by contrast, may not yet contain the latest transactions when the primary fails.</p>



<p class="wp-block-paragraph">Microsoft also provides guidance for <a href="https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/monitor-performance-for-always-on-availability-groups?view=sql-server-ver17">monitoring and estimating RPO and RTO for Availability Groups</a>. That is useful because these values depend on the actual configuration and data movement rather than on the product name alone.</p>



<p class="wp-block-paragraph">RTO depends on much more than the SQL Server role change. After a failover, the new primary must become usable, clients need to reach the correct endpoint and application connections have to recover. Listener configuration, DNS, network paths, authentication, connection strings and client retry behavior can all influence what users actually experience.</p>



<p class="wp-block-paragraph">This is why I would not define recovery time as the number of seconds required for SQL Server to complete a failover. The relevant measurement is the time until the service the business depends on works again. We looked at the same distinction from another direction in <a href="https://www.craftedsql.com/sql-server-restore-validation/">SQL Server Restore Validation</a>: a database being ONLINE is an important technical state, but it does not prove that users can actually use the application service again.</p>



<p class="wp-block-paragraph">The same separation is useful for backups. High availability can reduce interruption caused by certain infrastructure failures, but it does not provide the recovery options of a properly designed backup strategy. An accidental DELETE, an unwanted application change or another logical problem can reach additional replicas as part of normal data movement. If the requirement is to return to an earlier state, that is a recovery problem, not simply an HA problem.</p>



<p class="wp-block-paragraph">This distinction is also important when looking at <a href="https://www.craftedsql.com/sql-server-backup-strategy/">SQL Server backup strategy</a>. High availability and backup can both support service continuity, but they protect against different failure scenarios. Teams should not treat them as substitutes for each other.</p>



<h2 class="wp-block-heading">Maintenance is part of availability too</h2>



<p class="wp-block-paragraph">Unplanned failures naturally dominate high availability discussions, yet many production systems experience planned maintenance far more often than catastrophic infrastructure failure. Windows needs patching, SQL Server needs updates, virtualization hosts need maintenance and hardware eventually gets replaced.</p>



<p class="wp-block-paragraph">Those activities belong in the architecture discussion because the chosen design determines how the workload can move and how much disruption routine maintenance creates.</p>



<p class="wp-block-paragraph">If a service may only be unavailable for a few minutes, the team needs a practical and repeatable way to move production away from the component that needs maintenance. That includes more than issuing a failover command. Someone needs to know whether the target system is ready and whether application connections move as expected. The team also needs to understand how jobs and supporting services behave and what happens if it cannot complete the planned work.</p>



<p class="wp-block-paragraph">A different environment may have a generous maintenance window and no business reason to eliminate every planned interruption. In that situation, additional HA components can create complexity without solving a requirement that actually exists.</p>



<p class="wp-block-paragraph">That trade-off is easy to miss when the discussion starts with technology. More redundancy can remove failure points, but it also introduces additional components, configuration and operating procedures. Availability Groups, Windows clustering, listeners, endpoints, multiple SQL Server instances and possibly multiple locations all become part of the operating model. The team needs to monitor and understand them. During normal operation that complexity may remain almost invisible, but during an incident or maintenance window it suddenly becomes part of the recovery process.</p>



<p class="wp-block-paragraph">For that reason, I consider operational capability part of the architecture rather than something to document afterwards.</p>



<p class="wp-block-paragraph">This becomes particularly important in environments that have been running for many years. People change roles, applications evolve, teams replace infrastructure and the original reasons behind technical decisions become less obvious. An Availability Group or cluster may still be healthy according to monitoring while nobody is entirely comfortable performing a controlled failover because the team no longer fully understands the dependencies around it.</p>



<p class="wp-block-paragraph">The technology has not necessarily become unreliable. The operating model around it has changed.</p>



<p class="wp-block-paragraph">That is also one of the things worth looking at during a <a href="https://www.craftedsql.com/sql-server-health-check-operational-risk/">SQL Server Health Check</a>. The existence of an HA configuration tells us relatively little on its own. Its purpose, dependencies, maintenance procedures and current level of operational understanding are much more informative.</p>



<h2 class="wp-block-heading">Testing a SQL Server high availability design</h2>



<p class="wp-block-paragraph">Documentation and architecture diagrams can describe what should happen during a failure. A controlled failover shows what actually happens.</p>



<p class="wp-block-paragraph">It verifies whether the expected node or replica can take over, but that is only the beginning of the test. The application also needs to reconnect, monitoring should recognize the role change and required SQL Server Agent jobs and supporting processes need to behave correctly. The team also needs a reliable way to decide whether the service is healthy after the transition.</p>



<p class="wp-block-paragraph">Testing turns an assumed recovery time into something measurable. It may show that SQL Server changes roles within seconds while the application needs several additional minutes before users can work again. It can expose a DNS dependency, a connection string that still points directly to one server or an operational step that everyone assumed automation would handle.</p>



<p class="wp-block-paragraph">Those findings are not arguments against the HA technology. They are information about the complete service.</p>



<p class="wp-block-paragraph">This is why I am cautious with designs that look convincing on paper but that teams rarely exercise. If the team considers failover too risky to test during a controlled maintenance window, relying on the same process during an uncontrolled production incident deserves closer examination.</p>



<h2 class="wp-block-heading">AG or FCI becomes a useful question after this</h2>



<p class="wp-block-paragraph">Once the failure domain, recovery objectives, maintenance requirements and operating model are clear, comparing SQL Server technologies becomes much more productive.</p>



<p class="wp-block-paragraph">An FCI can be a natural fit where instance-level continuity is important and the surrounding storage architecture already provides the required availability. An Availability Group can fit a design that needs separate database replicas, database-level failover or replicas across different infrastructure or locations. In some environments, teams deliberately combine the technologies because they address different failure scenarios.</p>



<p class="wp-block-paragraph">There are further differences around storage, networking, instance-level objects, licensing, readable replicas, administration and SQL Server version capabilities. Those details matter when evaluating a concrete architecture, but they are not a substitute for the requirements that lead to it.</p>



<p class="wp-block-paragraph">A long AG-versus-FCI feature matrix can otherwise create a false sense of precision. A feature may be technically attractive without solving a problem the workload actually has. Conversely, a comparatively simple design can be completely appropriate when it matches the required failure domain, RPO, RTO and operating capabilities.</p>



<p class="wp-block-paragraph">Before approving a SQL Server high availability design, I would therefore want to describe several scenarios in ordinary language. We should know what happens when one Windows node disappears, when storage becomes unavailable and when the primary location can no longer be used. For each relevant scenario, we should also understand how much data the business could lose and how long the application may remain unavailable. Finally, the team should have demonstrated the recovery process rather than only documented it.</p>



<p class="wp-block-paragraph">That gives us something much more useful than starting with the question, “Should we use an Availability Group or an FCI?”</p>



<p class="wp-block-paragraph">It tells us what the architecture actually needs to accomplish.</p>



<p class="wp-block-paragraph">Once that is clear, choosing the SQL Server technology becomes a technical decision with defined boundaries rather than the starting point of the design.</p>



<p class="has-small-font-size wp-block-paragraph">Foto von <a href="https://unsplash.com/de/@alfred9069?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">huanyu chen</a> auf <a href="https://unsplash.com/de/fotos/luftaufnahme-eines-komplexen-autobahnknotens-mit-autos-JkqRnB5fYbE?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-high-availability-design/">SQL Server High Availability: Define the Failure Before Choosing the Technology</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server Vector Search: What to Evaluate Before Production</title>
		<link>https://www.craftedsql.com/sql-server-vector-search-production-readiness/</link>
					<comments>https://www.craftedsql.com/sql-server-vector-search-production-readiness/#comments</comments>
		
		<dc:creator><![CDATA[Bjoern@CraftedSQL]]></dc:creator>
		<pubDate>Thu, 13 Aug 2026 09:28:00 +0000</pubDate>
				<category><![CDATA[Architecture & Setup]]></category>
		<category><![CDATA[Production Readiness]]></category>
		<category><![CDATA[SQL Server 2025]]></category>
		<category><![CDATA[Vector Search]]></category>
		<guid isPermaLink="false">https://www.craftedsql.com/?p=21060</guid>

					<description><![CDATA[<p>SQL Server 2025 adds native support for vector data and vector search. Applications can keep embeddings alongside relational data and use the SQL Database Engine to find semantically similar information. A small proof of concept is easy enough to build: store an embedding, calculate the distance between vectors and return similar records. The questions I ... <a title="SQL Server Vector Search: What to Evaluate Before Production" class="read-more" href="https://www.craftedsql.com/sql-server-vector-search-production-readiness/" aria-label="Read more about SQL Server Vector Search: What to Evaluate Before Production">Read more</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-vector-search-production-readiness/">SQL Server Vector Search: What to Evaluate Before Production</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">SQL Server 2025 adds native support for vector data and vector search. Applications can keep embeddings alongside relational data and use the SQL Database Engine to find semantically similar information.</p>



<p class="wp-block-paragraph">A small proof of concept is easy enough to build: store an embedding, calculate the distance between vectors and return similar records.</p>



<p class="wp-block-paragraph">The questions I find more relevant begin when vector data becomes part of a production workload. It then has to fit into the same operational environment as the rest of the database, including capacity planning, performance testing, security, recovery and ongoing support.</p>



<p class="wp-block-paragraph">At that stage, I want to know how the workload behaves in the environment where it will actually run. A working vector search alone does not answer that.</p>



<h2 class="wp-block-heading">SQL Server vector search can simplify an architecture</h2>



<p class="wp-block-paragraph">Native vector support allows relational data and vector data to stay in the same database platform.</p>



<p class="wp-block-paragraph">Microsoft describes the SQL Database Engine as an option for scenarios where applications need to search structured, unstructured and vector data together. If an application already relies heavily on SQL Server, keeping that workload in the same platform may avoid the need for a separate search service.</p>



<p class="wp-block-paragraph">The additional workload still has to run somewhere. In this design, it runs inside SQL Server, shares the same underlying resources and becomes part of the same operational responsibilities.</p>



<p class="wp-block-paragraph">Before choosing this architecture, I would want to understand what the vector workload adds to the existing database environment and whether the simplification at application level creates new pressure elsewhere.</p>



<p class="wp-block-paragraph"><a href="https://learn.microsoft.com/en-us/sql/sql-server/ai/vectors?view=sql-server-ver17">Microsoft: Vector search and vector indexes in the SQL Database Engine</a></p>



<h2 class="wp-block-heading">Vector data has a measurable database footprint</h2>



<p class="wp-block-paragraph">SQL Server stores vector values in an optimized binary format. With the default float32 representation, each dimension requires four bytes.</p>



<p class="wp-block-paragraph">A 1,536-dimensional vector uses 6,144 bytes, roughly 6 KB, for the vector values alone. The rest of the row and the surrounding database structures come on top of that.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="683" src="https://www.craftedsql.com/wp-content/uploads/2026/08/craftedsql-sql-server-vector-data-footprint-1536-dimensions-1024x683.png" alt="SQL Server vector data footprint showing that 1,536 float32 dimensions require about 6 KB per vector." class="wp-image-21064" srcset="https://www.craftedsql.com/wp-content/uploads/2026/08/craftedsql-sql-server-vector-data-footprint-1536-dimensions-1024x683.png 1024w, https://www.craftedsql.com/wp-content/uploads/2026/08/craftedsql-sql-server-vector-data-footprint-1536-dimensions-300x200.png 300w, https://www.craftedsql.com/wp-content/uploads/2026/08/craftedsql-sql-server-vector-data-footprint-1536-dimensions-768x512.png 768w, https://www.craftedsql.com/wp-content/uploads/2026/08/craftedsql-sql-server-vector-data-footprint-1536-dimensions.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">In a small test database, that number is easy to overlook. With hundreds of thousands or millions of rows, vector data can become a noticeable part of the database footprint.</p>



<p class="wp-block-paragraph">Vector dimensions, row counts and expected growth therefore belong in normal capacity planning. A proof of concept with a few thousand rows tells us very little about how much space the same design may require later.</p>



<p class="wp-block-paragraph">The embedding model matters as well because different models use different vector dimensions. A choice made in the application or AI layer can have a direct effect on database size.</p>



<p class="wp-block-paragraph"><a href="https://learn.microsoft.com/en-us/sql/t-sql/data-types/vector-data-type?view=sql-server-ver17">Microsoft: Vector data type in SQL Server</a></p>



<h2 class="wp-block-heading">Vector search needs realistic production testing</h2>



<p class="wp-block-paragraph">Storage is only part of the workload. Search behavior also needs to be tested with realistic data volumes.</p>



<p class="wp-block-paragraph">Exact vector search calculates the distance between a query vector and the candidate vectors before returning the closest matches. As the number of candidates grows, SQL Server has more work to do.</p>



<p class="wp-block-paragraph">Microsoft gives fewer than 50,000 vectors as a general recommendation for exact search. A table itself can contain considerably more data if other predicates reduce the number of vectors involved in the actual search.</p>



<p class="wp-block-paragraph">The total table size therefore tells only part of the story. I also need to know how many vectors a particular query evaluates and how those searches behave alongside the existing workload.</p>



<p class="wp-block-paragraph">For a production-oriented test, I would measure execution time, CPU consumption and I/O with representative data volumes. I would then repeat the same tests while the rest of the application is active, because that is much closer to the environment the database will have to handle later.</p>



<p class="wp-block-paragraph">A fast search against a small dataset can be useful during development. It says little about how the same design will behave after months of data growth.</p>



<h2 class="wp-block-heading">Feature maturity becomes part of the architecture decision</h2>



<p class="wp-block-paragraph">For larger search sets, teams may eventually consider approximate search instead of evaluating every candidate vector.</p>



<p class="wp-block-paragraph">SQL Server 2025 includes approximate vector search and vector indexes for this scenario. Approximate search trades some exactness for better scalability and lower resource requirements.</p>



<p class="wp-block-paragraph">At the time of writing, approximate vector search and vector indexes are still Preview features in SQL Server 2025.</p>



<p class="wp-block-paragraph">I would not reject a feature simply because it carries a Preview label. I would, however, treat that dependency differently when evaluating a business-critical workload.</p>



<p class="wp-block-paragraph">The first question is whether the application needs that functionality at all. If it does, I also want to know what the fallback looks like if the planned implementation cannot be used as expected.</p>



<p class="wp-block-paragraph">The current vector implementation has other limitations that can affect an existing database design. Always Encrypted does not support the vector data type, and SQL Server does not allow vector columns as keys in traditional B-tree or columnstore indexes.</p>



<p class="wp-block-paragraph">For some applications, those limitations will have little practical effect. For others, they may conflict directly with an existing security or indexing design. That has to be checked against the actual environment.</p>



<h2 class="wp-block-heading">Production readiness is about the whole service</h2>



<p class="wp-block-paragraph">Once an application depends on embeddings and vector search, the operational model has to cover them as well.</p>



<p class="wp-block-paragraph">The security model still has to match the data the application stores. Access paths, permissions and data classification remain part of the same database design, even when some of the stored values are vectors.</p>



<p class="wp-block-paragraph">Recovery deserves the same attention. Restoring the database successfully is one technical step. The application also has to work with the restored data and provide the vector search functionality it depended on before the failure.</p>



<p class="wp-block-paragraph">Much of this is familiar DBA work. SQL Server 2025 introduces another type of workload, but sizing it, measuring its behavior and understanding its dependencies are familiar operational tasks.</p>



<p class="wp-block-paragraph">For a production decision, I would want evidence from the environment where the workload is expected to run: representative data volumes, realistic concurrent activity, understood feature dependencies and a recovery test that includes the application behavior. A successful demo would be the beginning of that evaluation, not the result.</p>



<p class="has-small-font-size wp-block-paragraph">Foto von <a href="https://unsplash.com/de/@tecnic?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">TECNIC Bioprocess Solutions</a> auf <a href="https://unsplash.com/de/fotos/ein-mann-misst-ein-metallbauteil-sorgfaltig-ab-EA7QL-GJWRM?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p>
<p>The post <a href="https://www.craftedsql.com/sql-server-vector-search-production-readiness/">SQL Server Vector Search: What to Evaluate Before Production</a> appeared first on <a href="https://www.craftedsql.com">CraftedSQL</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.craftedsql.com/sql-server-vector-search-production-readiness/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
