Skip to Content

Utility Posts

Utility to temporarily drop FOREIGN KEY constraints on a set of tables

Posted June 15, 2017

By

I was working on a database a few weeks back (maybe longer, I am kind of busy with several projects right now), and I wanted to truncate a set of tables. There... more »
2

Utility to script a FOREIGN KEY Constraint

Posted May 24, 2017

By

Note: Amended to include the word include in the first Note (I am a terrible editor of my own writing!) and to fix a bug in the code with a misplaced... more »
0

Utility Queries–Structure of Tables with Identity Column

Posted September 02, 2012

By

Edit: At the suggestion of a much knowledgable commenter who shall remain named Aaron, I changed from using schema_name() function to using... more »
6

Utility Queries–Column Metadata

Posted April 22, 2012

By

Very often, I find myself wanting to query system metadata for columns. Some of the metadata is fairly easy to deal with, like if you want to find column... more »
0

Utility Objects Series Introduction (but mostly a bit of an update)

Posted March 11, 2012

By

So, I have been away from blogging about technical stuff for a  long time,  (I haven’t blogged at all since my resolutions blog, and even my Simple... more »
1