cursor shell - An administrator
frequently needs to perform an operation against all objects of a certain
type in sysobjects. This 'shell' is easily modified to do those tasks.
nested cursor - Not exactly a
'shell', this routine demonstrates a technique that can simplify the
development of complex algorithms.
index maintenance - Some
thoughts, procedures, and techniques for optimal integrity and performance
of a database.
check tempdb size from batch -
A full tempdb is a disapointing end to a long running query. Here's a way
to check before you waste the CPU cycles.
Using a debug flag - Finding out what went wrong in a batch process is
easy with a little planning. My basic technique is to use a debug
parameter as the last parm passed to all stored procedures with a default
of 'false'. I explicitly set the parm to 'true' to use debug mode.