Tag Archives: sql statements
-
DROP and CREATE vs ALTER
25February 25, 2013 by Kenneth Fisher
When writing a script to change a piece of code, say a stored procedure or view, there are 3 basic …
Continue reading -
Something to watch out for when using sp_rename on Stored Procedures, Functions and Views
6February 11, 2013 by Kenneth Fisher
For those who don’t know, the stored procedure sp_rename allows you to change the name of a user-created object. Basically …
Continue reading -
EXECUTE, not required, but advisable.
1February 6, 2013 by Kenneth Fisher
The other day one of the developers I work with gave me a script similar to this: He was getting …
Continue reading -
Duplicate rows in a table
19February 4, 2013 by Kenneth Fisher
I recently got the following email: “I just keyed in two rows into a table with all identical column values. …
Continue reading -
Small changes, big effects
Leave a commentJanuary 30, 2013 by Kenneth Fisher
We got a call last week about an application that was running slowly. The server was showing about 80% CPU …
Continue reading -
IsMSShipped
3January 23, 2013 by Kenneth Fisher
I just wanted to do a brief highlight of a handy little object property. For those of you who aren’t …
Continue reading -
How I like to learn a t-sql command
11January 7, 2013 by Kenneth Fisher
Recently I received a security request and realized I wasn’t comfortable in my ability to script out the t-sql commands …
Continue reading -
Generating multiple SQL statements from a query
2December 17, 2012 by Kenneth Fisher
Dynamic SQL is one of my favorite tools in the DBA toolbox. I’m big on automation and dynamic SQL can …
Continue reading





