TSQL

Episode 233: ScriptDOM

Episode 233: ScriptDOM 560 420 Carlos L Chacon

Never heard of ScriptDOM? Neither had we…okay, except Kevin, who obviously knows all. Apparently, the…

read more

Updating Default Values for Columns

Updating Default Values for Columns 150 150 Carlos L Chacon

To make life a little simpler, a default value can be added to a column…

read more

Converting to UTC Time

Converting to UTC Time 150 150 Carlos L Chacon

In preparation for a migration to Azure SQL Database, we found we had to adjust…

read more

GETUTCDATE Function

GETUTCDATE Function 150 150 Carlos L Chacon

I came across a database that stores the execution date in UTC time.  I needed…

read more

Backup History

Backup History 560 420 Carlos L Chacon

As someone who has helped design systems, I know auditing can take a back seat…

read more

We Can Pivot If You Want To

We Can Pivot If You Want To 150 150 Carlos L Chacon

So I get that I am a little late to the party here; however, I…

read more

Finding Active Heap Tables

Finding Active Heap Tables 150 150 Carlos L Chacon

As part of a review of a system, I look for tables without clustered indexes;…

read more

Coalesce instead of Max

Coalesce instead of Max 150 150 Carlos L Chacon

I was asked to tune a query which was used in an export of registration…

read more

Recursive CTE Query

Recursive CTE Query 150 150 Carlos L Chacon

A client came to me and had the similar to data set below. Create Table…

read more

sp_executesql

sp_executesql 150 150 Carlos L Chacon

I don’t normally have a need to do dynamic sql; however, I found myself at…

read more
  • 1
  • 2
Back to top