Microsoft SQL Server

How to filter non-existing records in SQL

  • Article

Introduction Developing predefined reports in addition to all the ad-hoc queries have been a part of my daily activities. Often I find my stakeholders asking me to prepare reports in which they want to know something that has never happened. It might sound strange, but yeah, that's what their point of concern is all about. […]

4 (6)

2019-11-04

6,482 reads

Generic trigger for maintaining the Audit Log

  • Script

This trigger will work even if you don't have the primary key on any table. Mechanism to configure the primary key in config table has been provided. This can be very helpful to solve the system audit requirements without much efforts.

Disclaimer : Audit Log trigger has performance overhead. It’s meant for table which is not frequently updated, deleted or inserted. Please take precaution when creating the trigger on the table having too many columns.

2.33 (3)

2019-10-15 (first published: )

770 reads

Blogs

[MSSQLTips] Visual Studio 2019 Configuration for the Production DBA

By

Happy Tuesday everyone… Today I am honored to have my first article published on...

Daily Coping 22 Sep 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Converting a Datetime to UTC

By

I was in a need of converting some datetime values (of which I know...

Read the latest Blogs

Forums

SCOM/SCCM alert when Always On High Availability dashboard is green

By webrunner

Hello experts, Does anyone know why SCOM (or is it SCCM?) would send the...

Restart SQL server from CMD

By SQLAddict01

We have a issue in SQL Server 2017 (RTM-CU21) with SSISDB when a server...

Replication issue

By premkuttan

my table is getting replicated from server 1 to server 2. I got a...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers