Back to Basics: Why not parameterize?

I think sometimes those of us that have been doing database administration/development for a while take it for granted that everyone knows the basics. One such basic is parameterizing stored procedures. This allows us to potentially consolidate multiple stored procedures into a single procedure.  It’s as simple thing to do that many don’t. I try to parameterize as many stored procedures as possible. This not only minimizes the amount of procedures I need to maintain, it in my opinion is a much cleaner way to code. It disturbs me when I see multiple stored procedures that pull the exact same… Continue Reading

QUICK & DIRTY: Table name change for all stored procedures

Recently, I was tasked to find all stored procedures in a database that use a particular table and change them to utilize another table. I needed to get this done quickly so I decided to think simple. Since it was a quick and dirty answer I figured I would share, it’s not rocket science, but useful none the less. The quick answer that I came up with is to script out all of the stored procedures into a single query window.  This can be done easily through the GUI.  Once that is complete, I can easily do a “Find &… Continue Reading

It’s time to speak again!

My second time speaking at a SQL Saturday is upon us. This weekend I will be giving my Survival Techniques for a Lone DBA session at SQLSat470 Washington, DC.  Living in Virginia, I am surprised that I’m a first timer to this event. I live only 3 hours away but December is usually crazy with my daughter’s dance schedules and I haven’t been able to attend until now. My session is bright and early as the first session at 8:20 am and going up against some other great sessions. Thankfully they will have an actual barista on hand to make me a… Continue Reading