John F. Tamburo


SQLServerCentral Article

How Long Before Your Database Runs Out of Space?

Almost all SQL Server databases grow in size over time. Capacity planning is an important activity for the DBA. You need to know how long before you run out of space long before you actually do. Here are some helpful tips and tricks.

4.67 (24)

You rated this post out of 5. Change rating

2017-05-12 (first published: )

7,758 reads

SQLServerCentral Article

A Single-Parameter Date Range in SQL Server Reporting Services

Many reports you will generate in SSRS will need to report within date ranges, and most of those will need a date range parameter. Here's an way to make an easy-to-use date range parameter.

4.81 (83)

You rated this post out of 5. Change rating

2017-03-31 (first published: )

14,669 reads

SQLServerCentral Article

SQL Authentication Via AD Groups Part III: What About Orphaned Users?

With AD Authentication via groups, SQL Server is vulnerable to orphaned Windows users' logins being added to SQL Server at a later date. This article gives an improved user audit script that detects orphaned DB Users and also a delete script.

4.82 (11)

You rated this post out of 5. Change rating

2016-07-18

2,964 reads

Blogs

SQL Server 2025 Release Candidate Available

By

For those testing SQL Server 2025 before it officially releases, Microsoft has made the...

Scooby-Doo and the Mystery of Cloud Costs (Let’s have some fun!) – Scooby Dooing Episode 1

By

If there’s one thing I’ve learned in consulting, it’s that SQL Server, and other...

Fabric Real Time Data: Making the Shift from Batch to Live Insights

By

Embracing the New Paradigm Fabric real-time data signals a fundamental shift in how organizations...

Read the latest Blogs

Forums

Detecting Multiple Changes

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Detecting Multiple Changes

Ghostworkers

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Ghostworkers

Encryption or Certificate - Trying to NOT put hardcoded password in Proc

By cFauvel

We have a few stored procs where we need to a dos command "net...

Visit the forum

Question of the Day

Detecting Multiple Changes

I want to write a trigger to detect changes to columns in SQL Server 2022. I have this table:

CREATE TABLE CustomerLarge
  (CustomerID               INT NOT NULL IDENTITY(1, 1) CONSTRAINT CustomerLargePK PRIMARY KEY CLUSTERED
 , CustomerName             VARCHAR(20)
 , CustomerContactFirstName VARCHAR(40)
 , CustomerContactLastName  VARCHAR(40)
 , Address                  VARCHAR(20)
 , Address2                 VARCHAR(20)
 , City                     VARCHAR(20)
 , CountryCode              CHAR(3)
 , Postal                   VARCHAR(20)
 , creditlimit              INT
 , discount                 NUMERIC(4, 2)
 , lastorderdate            DATETIME
 , lastorderamount          NUMERIC(10, 2)
 , lastordercontact         VARCHAR(20)
 , created                  DATETIME
 , modified                 DATETIME
 , modifiedby               VARCHAR(20)
 , statusid                 INT
 , active                   BIT
 , customersize             INT
 , primarysalesid           INT);
GO
I want to determine if both the CustomerContactFirstName and CustomerContactLastName fields are changed, but no others. What is the mask I need to use with COLUMNS_UPDATED()?

See possible answers