Technical Article

Auditing Solution - Generate Triggers automatically

The procedure looks at the table you want to be audited and writes the INS, UPD, and DEL triggers automatically required for the auditing to work. The auditing requires a table called Progress to hold the audit information in so have provided the DDL for this as well. Typically you would write a cursor to […]

2002-02-04

471 reads

Technical Article

Procedure Search by Keyword(s)

Searches SysComments for occurances of entered keywords and returns a list of procedures that contain the keywords. eg1) To find all procedures with 'nMyColumn' in EXEC utl_ProcSearch 'nMyColumn' eg2) To find all procedures with 'nMyColumn' in and 'nMyColumn2' in EXEC utl_ProcSearch 'nMyColumn', 'nMyColumn2' eg3) To find all procedures with temporary tables in... EXEC utl_ProcSearch '#' […]

2002-02-04

192 reads

Blogs

Daily Coping 26 Jan 2023

By

Today’s coping tip is to focus on what’s good, even if today feels tough....

Using SQL Data Compare from the Command Line with a Project

By

SQL Data Compare (SDC) is a great way to sync data among tables. It’s...

Daily Coping 25 Jan 2023

By

Today’s coping tip is to be gentle with yourself when you make mistakes. I...

Read the latest Blogs

Forums

Can't Add Delegation for MSSQLSvc to IIS for AG Listener

By skreebydba

I have a two-replica SQL Server Availability Group running on Windows VMs in the...

Read # of trace files

By Chitown

I have a SQL agent job which starts the trace (for audit purpose) everyday...

cannot grant user view definition on a database

By winston Smith

I have a number of databases on a sql server 2017 instance. For most...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers