Brahmanand Shukla

I’m a seasoned SQL Server Professional having certified with MCSA SQL 2016 and with over 12 years of rigorous working experience in the Design, Development, and Optimization of MS SQL Databases. Few of my unique skills involved – Out of box thinking when working out the database design and can-do anything attitude when it comes to the database. Managed money critical, compliance critical, and performance-critical SQL Server databases, and some of them were in TB’s. You can find out more about me on LinkedIn (https://in.linkedin.com/in/brahmanand-shukla)

Technical Article

T-SQL script to purge all the tables including foreign key references

T-SQL script to purge all the tables including foreign key references. The script has been made smart enough to use TRUNCATE wherever there is no foreign key reference and to use DELETE wherever there is foreign key reference.

5 (3)

You rated this post out of 5. Change rating

2019-12-10

2,549 reads

Technical Article

Generic trigger for maintaining the Audit Log

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)

You rated this post out of 5. Change rating

2019-10-15 (first published: )

3,041 reads

Blogs

A Conversation That Refused to End: What We Learned from Our First Event in Zurich

By

On May 8, 2025, we hosted our first official event in Switzerland at Prime...

A DevOps Workshop Tomorrow in Atlanta

By

Tomorrow is the Redgate DevOps Day in Atlanta. You can still sign up, so...

Stop Wasting Time Rebuilding Indexes Every Night

By

Too many IT teams run index rebuild jobs on autopilot. Every night. Every index....

Read the latest Blogs

Forums

is there an elegant way for agent notification to show failure if any step fails

By stan

hi our corp dw load sqlagent job goes to the next step on the...

is there an elegant way for agent notification to show failure if any step fails

By stan

hi our corp dw load sqlagent job goes to the next step on the...

Are Data Breaches Inevitable?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Are Data Breaches Inevitable?

Visit the forum

Question of the Day

The Internals of Writing a Page

In SQL Server, when the buffer manager write pages to disk, page protection is added to the pages. There are two types of protection: torn page protection and checksum page protection. What happens with regards to concurrency with page protection during writes?

See possible answers