Bert Wagner

IN vs UNION ALL

Watch this week’s episode on YouTube. When you need to filter query results on multiple values, you probably use an IN() statement or multiple predicates separated by ORs: or...

2019-05-13 (first published: )

1,179 reads

Correlated Subqueries vs Derived Tables

Correlated subqueries provide an intuitive syntax for writing queries that return related data. However, they often perform poorly due to needing to execute once for every value they join on....

2019-05-07 (first published: )

1,327 reads

Temporary Staging Tables

Watch this week’s episode on YouTube. SQL Server Spool operators are a mixed bag. On one hand, they can negatively impact performance when writing data to disk in tempdb....

2019-05-07

142 reads

Window Functions vs GROUP BYs

There are many options available for improving the performance of a query: indexes, statistics, configuration settings, etc… However, not all environments allow you to use those features (eg. vendor...

2019-04-25 (first published: )

1,150 reads

Blogs

SQL in the City Comes Back to Seattle

By

This year at the PASS Summit, Redgate is holding our SQL in the City...

Backup Techniques for SQL Server on Azure Virtual Machines

By

In the previous blog post I did a quick overview building a SQL VM...

SQLCover 0.5 - Fixes, smaller features and an exciting surprise

By

It has been a little while but I have updated SQLCover to include a...

Read the latest Blogs

Forums

Exception handling for backup related errors.

By vsamantha35

Hi All, Need some help in exception handling. In below code, I want to...

DB Log File Location Error

By na_ma_cool

Hi, I am taking full backup of db on remote location. The issue we...

SQL query help

By sqlenthu 89358

I have a table like this: Year month col_abc1 col_abc2 col_abc3 col_abc4 col_processing 2019...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers