Practical SQL Server http://demo.sqlmag.com/blog/10109/feed en AlwaysOn Availability Groups and SQL Server Jobs, Part 10: Dynamic Detection Gotcha #3 http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-10-dynamic-detection-gotcha-3" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 9: Dynamic Detection Gotcha #2 http://demo.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://demo.sqlmag.com/blog/alwayson-ags-sqlserver-jobs-part-9-dynamic-detection-gotcha2" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 8: Dynamic Detection Gotcha #1 http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-8-dynamic-detection-gotcha-1" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 7: Detecting Primary Replica Ownership http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-7-detecting-primary-replica-ownership" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 6: High-Level Options and Rationale for Handling Batch Jobs http://demo.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://demo.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://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 5: Setting Up Failover Alerts http://demo.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://demo.sqlmag.com/blog/alwayson-ags-and-sql-server-jobs-setting-failover-alerts" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 4: Synchronizing Server-Level Details http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-4-synchronizing-server-level-details" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 3: Defining Batch Jobs http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-3-defining-batch-jobs" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 2: Putting AlwaysOn into Context http://demo.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://demo.sqlmag.com/blog/sqlserver-alwayson-availability-groups-putting-alwayson-into-context" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com AlwaysOn Availability Groups and SQL Server Jobs, Part 1: Introduction http://demo.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://demo.sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-1-introduction" target="_blank">read more</a></p> http://demo.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://demo.sqlmag.com SQL Server Management Studio’s Ugly ANSI_PADDING Bug http://demo.sqlmag.com/blog/sql-server-management-studio-s-ugly-ansipadding-bug <div class="node-body blog-body">Learn more about the problem with SQL Server Management Studio's generation of scripts with ANSI_PADDING OFF along with a helpful solution.</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://demo.sqlmag.com/blog/sql-server-management-studio-s-ugly-ansipadding-bug" target="_blank">read more</a></p> http://demo.sqlmag.com/blog/sql-server-management-studio-s-ugly-ansipadding-bug#comments Database Administration ANSI_PADDING ANSI_PADDING SQL Server SQL Server SQL Server Management Studio SQL Server Management Studio SSMS SSMS Practical SQL Server Tue, 05 Aug 2014 04:00:00 +0000 19461 at http://demo.sqlmag.com When More Expensive Processors Actually Cost Less http://demo.sqlmag.com/blog/when-more-expensive-processors-actually-cost-less <div class="node-body blog-body">Smart organizations are always looking for ways to cut costs when it comes to licensing SQL Server. Here are two ideas, or options, to save money.</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://demo.sqlmag.com/blog/when-more-expensive-processors-actually-cost-less" target="_blank">read more</a></p> http://demo.sqlmag.com/blog/when-more-expensive-processors-actually-cost-less#comments SQL Server Database Administration costs costs licensing licensing SQL Server SQL Server Practical SQL Server Wed, 30 Jul 2014 19:20:00 +0000 19391 at http://demo.sqlmag.com The Marginalization of SQL Server Standard Edition http://demo.sqlmag.com/blog/marginalization-sql-server-standard-edition <div class="node-body blog-body">Microsoft seems to be bent on marginalizing SQL Server Standard Edition—both in the sense of the artificial constraints placed upon how much memory it can use, and in terms of what seems to be a shift in focus on the role of Standard Edition from Microsoft. </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://demo.sqlmag.com/blog/marginalization-sql-server-standard-edition" target="_blank">read more</a></p> http://demo.sqlmag.com/blog/marginalization-sql-server-standard-edition#comments SQL Server licensing licensing SQL Server SQL Server Standard Edition Standard Edition Practical SQL Server Tue, 15 Jul 2014 16:43:00 +0000 18891 at http://demo.sqlmag.com Replication: Sometimes More is Less http://demo.sqlmag.com/blog/replication-sometimes-more-less <div class="node-body blog-body">The unconventionality of having two publications for complex, unruly databases typically ends up saving huge amounts of time over the long haul and makes replication much easier to manage. </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://demo.sqlmag.com/blog/replication-sometimes-more-less" target="_blank">read more</a></p> http://demo.sqlmag.com/blog/replication-sometimes-more-less#comments Database Administration publication publication replication replication SQL Server SQL Server Tip Tip trick trick Practical SQL Server Tue, 08 Jul 2014 04:00:00 +0000 18721 at http://demo.sqlmag.com AlwaysOn Availability Groups and Third Party Log Readers http://demo.sqlmag.com/blog/alwayson-availability-groups-and-third-party-log-readers <div class="node-body blog-body">When DBAs and SysAdmins learn the ins-and-outs of AlwaysOn Availability Groups, they’re then able to address high availability and disaster recovery concerns from a single interface or set of tooling, thus providing better scalability of management.</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://demo.sqlmag.com/blog/alwayson-availability-groups-and-third-party-log-readers" target="_blank">read more</a></p> http://demo.sqlmag.com/blog/alwayson-availability-groups-and-third-party-log-readers#comments Database Backup and Recovery Database High Availability Disaster Disaster DR DR HA HA Log Reader Agent Log Reader Agent SQL Server SQL Server Practical SQL Server Tue, 24 Jun 2014 16:53:00 +0000 18551 at http://demo.sqlmag.com