Edward Pollack in T-SQL Programming Effective Strategies for Storing and Parsing JSON in SQL Server Like XML, JSON is an open standard storage format for data, metadata, parameters, or other unstructured or semi-structured data. Because of its heavy usage in... 23 August 2024 26 min read
Aaron Bertrand in SQL Server Days of the Week, Bitwise Edition I recently had to help support synchronization and distribution of workloads between multiple servers. Some of this work involves Task Scheduler and, be honest, who... 02 August 2024 7 min read
Ben Johnston in Blogs Auditing SQL Server – Part 3 – SQL Server Configuration Audit This is the continuation of my series on auditing SQL Server. In the first part, I discussed basic server discovery and documentation. The next section... 25 July 2024 21 min read
Aaron Bertrand in T-SQL Programming Index cleanup : Harder than it looks I’m not the first person to write about cleaning up unused or redundant indexes. You can read many articles about how non-clustered indexes are expensive... 22 July 2024 7 min read
Ben Johnston in Blogs Auditing SQL Server – Part 2 – Hardware Audit This is the second part of my series on auditing SQL Server. In the first part, I discussed basic server discovery and documentation. It covered... 17 July 2024 13 min read
Aaron Bertrand in Database Administration It’s a recovery strategy, not a backup strategy I’ve talked about it before; you shouldn’t have a backup strategy, you should have a recovery strategy. I can’t possibly care if my backups succeed... 08 July 2024 12 min read
Edward Pollack in T-SQL Programming XML Performance Tuning and Added Options SQL Server provides a variety of ways to tune XML so that it provides consistent performance, consumes less space, all while ensuring efficient access to... 21 June 2024 12 min read
Ben Johnston in Blogs Auditing SQL Server – Part 1 – Discovery and Documentation Inheriting a server, whether as an inexperienced user or an experienced DBA, has many challenges. It’s very helpful to evaluate the servers, document issues, and... 06 June 2024 29 min read
T-SQL Programming Edward Pollack in T-SQL Programming Effective Strategies for Storing and Parsing XML in SQL Server XML is a common storage format for data, metadata, parameters, or other semi-structured data. Because of this, it often finds its way into SQL Server... 03 June 2024 21 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake draft sorting in SQL Server, part 4 Part of a series: [ Part 1 | Part 2 | Part 3 | Part 4 ] In the previous posts in this series, I... 27 May 2024 9 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake draft sorting in SQL Server, part 3 Part of a series: [ Part 1 | Part 2 | Part 3 | Part 4 ] In part 2 of this series, I showed... 15 May 2024 5 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake draft sorting in SQL Server, part 2 Part of a series: [ Part 1 | Part 2 | Part 3 | Part 4 ] In my previous post, I showed how to... 15 April 2024 7 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake draft sorting in SQL Server, part 1 Part of a series: [ Part 1 | Part 2 | Part 3 | Part 4 ] I recently had a restore job where I... 12 April 2024 8 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Pagination and ordering by large values Pagination is a technique for limiting output. Think of Google search results, shopping the electronics category on Amazon, or browsing tagged questions on Stack Overflow.... 25 March 2024 9 min read
Database Administration Aaron Bertrand in Database Administration Get the most out of SQL Server Agent logs If you haven’t migrated your workloads to a managed database platform yet, you’re probably still relying on SQL Server Agent for various maintenance and other... 11 March 2024 6 min read
Ben Johnston in Blogs Friendly Deletes in SQL Server One of the first things you learn when working with SQL Server, and other transactional based SQL systems, is that set based operations perform best.... 01 March 2024 24 min read
T-SQL Programming Edward Pollack in T-SQL Programming Find and Replace Text in Strings in T-SQL String manipulation is an inevitable task for developers and data professionals alike. Despite all the best efforts to normalize databases, eventually we are faced with... 29 February 2024 17 min read
Database Administration Aaron Bertrand in Database Administration Upgrade SQL Server on your workstation Lately, I’ve seen many people struggling to upgrade their workstation to the latest version of SQL Server. The main source of the problem is usually... 26 February 2024 6 min read
PowerShell Laerte Junior in PowerShell Automating BCP with PowerShell I was talking with a good friend that has an environment with terabytes of information and to create a homolog or dev environment to him... 09 February 2024 8 min read
Database Administration Edward Pollack in Database Administration The Importance of Retention It is always an afterthought. New objects are created that start off small and current. New feature development takes over and the recently architected data... 19 January 2024 24 min read