Practical SQL Server http://sqlmag.com/blog/10109/feed en AlwaysOn Availability Groups and SQL Server Jobs, Part 15: Setting Up Linked Servers http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part15-setting-linked-servers <div class="node-body blog-body">Learn about setting up Linked Server definitions to let two (or more) servers in an AlwaysOn Availability Group talk to each other and check up on job statuses of jobs running on each other. </div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part15-setting-linked-servers" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part15-setting-linked-servers#comments Database Security Database Administration AlwaysOn Availability Groups AlwaysOn Availability Groups jobs synchronization jobs synchronization Kerberos kerberos Linked Servers Linked Servers Practical SQL Server Tue, 18 Nov 2014 18:06:00 +0000 21781 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 14: Establishing Synchronization Checks http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-14-establishing-synchronization-checks <div class="node-body blog-body">When compared to AlwaysOn Failover Cluster Instances or clustered deployments of SQL Server, one of the main problems with AlwaysOn AGs is that a single database is made to straddle multiple hosts.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-14-establishing-synchronization-checks" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-14-establishing-synchronization-checks#comments Database High Availability Database Performance Tuning connection connection jobs jobs Scripting scripting sql server agent sql server agent synchronization synchronization Practical SQL Server Tue, 11 Nov 2014 20:34:00 +0000 21711 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 13: Creating and Populating a Batch Job State Table http://sqlmag.com/blog/creating-and-populating-batch-job-stat <div class="node-body blog-body">Get a detailed look at some simple mechanisms that can be used to track the state of SQL Server Agent Jobs being used as Batch Jobs against SQL Server AlwaysOn Availability Group Databases.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/creating-and-populating-batch-job-stat" target="_blank">read more</a></p> http://sqlmag.com/blog/creating-and-populating-batch-job-stat#comments Database High Availability Database Administration SQL Server Agent Job Synchronization SQL Server Agent Job Synchronization SQL Server Agent Jobs. AlwaysOn Availabilitly Groups SQL Server Agent Jobs. AlwaysOn Availabilitly Groups Practical SQL Server Tue, 04 Nov 2014 05:00:00 +0000 21581 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 12: Issues with Enabling and Disabling Batch Jobs http://sqlmag.com/blog/enabling-and-disabling-batch-jobs <div class="node-body blog-body">An in-depth look at some of the concerns involved with enabling/disabling entire SQL Server jobs based upon whether they should be run, or not—and then look at options for addressing those concerns.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/enabling-and-disabling-batch-jobs" target="_blank">read more</a></p> http://sqlmag.com/blog/enabling-and-disabling-batch-jobs#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups batch jobs batch jobs category category disabled disabled enabled enabled SQL Server Agent Jobs SQL Server Agent Jobs Practical SQL Server Thu, 30 Oct 2014 04:00:00 +0000 21421 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 11: A Fork in the Road http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-11-fork-road <div class="node-body blog-body">A quick overview of the pros and cons of dynamic detection at job execution time or the option of dynamically enabling/disabling jobs.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-11-fork-road" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-11-fork-road#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups dynamic detection dynamic detection execution execution USE USE Practical SQL Server Wed, 22 Oct 2014 04:00:00 +0000 21331 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 10: Dynamic Detection Gotcha #3 http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-10-dynamic-detection-gotcha-3 <div class="node-body blog-body">You can interject a SQL Server Job Step into your Jobs and have this new/injected Job Step do some checking for you. Here's a look at everything that’s involved in such an approach.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-10-dynamic-detection-gotcha-3" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-10-dynamic-detection-gotcha-3#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups Jobs Steps Jobs Steps SQL Server Agent Jobs SQL Server Agent Jobs Practical SQL Server Thu, 09 Oct 2014 11:01:00 +0000 20891 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 9: Dynamic Detection Gotcha #2 http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part-9-dynamic-detection-gotcha2 <div class="node-body blog-body">Given that a USE statement is parsed before code is actually run, there are a few options that could be used as a around when it comes to detecting whether or not code should be run.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part-9-dynamic-detection-gotcha2" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part-9-dynamic-detection-gotcha2#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups does not exist does not exist Dynamic SQL dynamic SQL SQL Server SQL Server USE USE Practical SQL Server Tue, 07 Oct 2014 16:43:00 +0000 20881 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 8: Dynamic Detection Gotcha #1 http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-8-dynamic-detection-gotcha-1 <div class="node-body blog-body">Learn about why the option of dynamically detecting whether or not to run a SQL Server Job at execution time is quite a bit more problematic than you might think.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-8-dynamic-detection-gotcha-1" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-8-dynamic-detection-gotcha-1#comments Database High Availability AlwaysOn AlwaysOn Availability Groups Availability Groups detection detection dynamic dynamic jobs jobs SQL Server SQL Server Practical SQL Server Thu, 02 Oct 2014 18:29:00 +0000 20801 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 7: Detecting Primary Replica Ownership http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-7-detecting-primary-replica-ownership <div class="node-body blog-body">In my mind, there are two logical ways that you might want to have your code check to see if the Primary Replica of a given AG database is currently hosted on a particular server or not</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-7-detecting-primary-replica-ownership" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-7-detecting-primary-replica-ownership#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups backups backups jobs jobs Primary Primary replica replica SQL Server SQL Server Practical SQL Server Wed, 24 Sep 2014 04:00:00 +0000 20441 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 6: High-Level Options and Rationale for Handling Batch Jobs http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-6-high-level-options-and-rationale-handli <div class="node-body blog-body">There are a couple of options for how we could handle batch jobs when Availability Groups are thrown into the mix.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-6-high-level-options-and-rationale-handli" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-6-high-level-options-and-rationale-handli#comments Database High Availability Availability Groups Availability Groups jobs jobs SQL Server SQL Server synchronization synchronization Practical SQL Server Wed, 17 Sep 2014 10:00:00 +0000 20361 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 5: Setting Up Failover Alerts http://sqlmag.com/blog/alwayson-ags-and-sql-server-jobs-setting-failover-alerts <div class="node-body blog-body">Alerts represent a great way to take a proactive stance on being notified or alerted when something ugly, potentially ugly, or important happens on a SQL Server. On most servers that I manage, I typically deploy a whole bevy of different alerts.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-ags-and-sql-server-jobs-setting-failover-alerts" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-ags-and-sql-server-jobs-setting-failover-alerts#comments Database High Availability Alerts Alerts AlwaysOn Availability Groups AlwaysOn Availability Groups deadlocks deadlocks disk space disk space SQL Server SQL Server Practical SQL Server Tue, 09 Sep 2014 04:00:00 +0000 20271 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 4: Synchronizing Server-Level Details http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-4-synchronizing-server-level-details <div class="node-body blog-body">When setting up HA or HA+DR solutions with SQL Server AlwaysOn Availability Groups, it's critical to remember that the basic unit of failover in these scenarios is the availability group (or the group of user-defined databases). </div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-4-synchronizing-server-level-details" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-4-synchronizing-server-level-details#comments Database High Availability Database Performance Tuning Availability Groups Availability Groups Servers servers SQL Server AlwaysOn SQL Server AlwaysOn synchronization synchronization Practical SQL Server Fri, 05 Sep 2014 18:07:00 +0000 20211 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 3: Defining Batch Jobs http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-3-defining-batch-jobs <div class="node-body blog-body">I commonly find that many organizations will set up regular tasks to go out and delete abandoned carts—or shopping carts that haven’t been touched in the last N hours. Situations like this can be pretty easily tackled by SQL Server Agent Jobs.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-3-defining-batch-jobs" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-3-defining-batch-jobs#comments Database High Availability AlwaysOn Availability Groups AlwaysOn Availability Groups jobs jobs Maintenance Maintenance sql server agent sql server agent Practical SQL Server Thu, 04 Sep 2014 10:01:00 +0000 20131 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 2: Putting AlwaysOn into Context http://sqlmag.com/blog/sqlserver-alwayson-availability-groups-putting-alwayson-into-context <div class="node-body blog-body">Despite similar intentions and high-level goals, the ways in which AlwaysOn Failover Cluster Instances and AlwaysOn Availability Groups tackle high availability and disaster recovery are quite different.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/sqlserver-alwayson-availability-groups-putting-alwayson-into-context" target="_blank">read more</a></p> http://sqlmag.com/blog/sqlserver-alwayson-availability-groups-putting-alwayson-into-context#comments Database High Availability Database Performance Tuning AlwaysOn AlwaysOn Clustering Clustering SQL Server SQL Server Practical SQL Server Thu, 28 Aug 2014 18:59:00 +0000 20001 at http://sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 1: Introduction http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-1-introduction <div class="node-body blog-body">While AlwaysOn Availability Groups are a powerful solution that let DBAs tackle both high availability and some disaster recovery concerns from within a single, unified, set of technologies and tooling, AlwaysOn Availability Groups also come with a number of challenges.</div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-1-introduction" target="_blank">read more</a></p> http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-1-introduction#comments SQL Server Database Administration AlwaysOn Availability Groups AlwaysOn Availability Groups backups backups jobs jobs sql server agent sql server agent Practical SQL Server Tue, 26 Aug 2014 18:53:00 +0000 19951 at http://sqlmag.com