Tag Archives: code language
-
Backup a password, change it, then restore it.
3May 30, 2013 by Kenneth Fisher
A couple of months ago I talked about moving a login from one server to another without the password. The …
Continue reading -
Using CROSS APPLY to calculate an aggregate across a single row.
2May 28, 2013 by Kenneth Fisher
I’ve had CROSS APPLY on the mind recently. You could probably tell since its been the subject of my last …
Continue reading -
Using CROSS APPLY instead of a calculated variable
3May 22, 2013 by Kenneth Fisher
Earlier this week I posted The many uses of CROSS APPLY and I’m quite glad I did. I’ve been working …
Continue reading -
The many uses of CROSS APPLY
4May 20, 2013 by Kenneth Fisher
Over the last few years of studying SQL I’ve noticed 4 different uses for the command CROSS APPLY. In the …
Continue reading -
CREATE SCHEMA can do what?!?!?
4May 15, 2013 by Kenneth Fisher
So I was studying for the 70-451 and ended up reading the BOL entry for CREATE SCHEMA. I honestly can’t …
Continue reading -
INFORMATION_SCHEMA the un-sung system views
13April 29, 2013 by Kenneth Fisher
I spend a reasonable amount of time looking through various forums, answering some questions and reading the answers to others. …
Continue reading -
How do I tell the stored procedure name from inside the stored procedure?
1April 24, 2013 by Kenneth Fisher
I’ve occasionally had the problem of trying to put “smart” logging messages into a process. You know the ones, you’re …
Continue reading -
Calculating the length of a string (Len vs DataLength)
3April 14, 2013 by Kenneth Fisher
This one is basic but still something that can catch you unawares if you aren’t careful. Most DBAs and developers …
Continue reading -
How do I use a variable in an IN clause?
16April 8, 2013 by Kenneth Fisher
I see this question in one form or another a lot. I’ve seen this or something like it probably half …
Continue reading -
UNPIVOT a table using CROSS APPLY
23April 1, 2013 by Kenneth Fisher
I generally spend part of each day looking through http://www.stackoverflow.com, http://dba.stackexchange.com or http://www.sqlservercentral.com. I read through questions that have already …
Continue reading





