Archives: February 2016
What with the #sqlnewblogger effort we’ve been seeing a lot of new bloggers (and some old ones starting up again) and there is one thing that seems to come up over and over again.
How often should I blog?
Let’s start with how often I blog. I post twice a… Read more
As with most of these types of things, I had a need. I want to show how using sys.dm_exec_[requests/sessions/connections] is better than sp_who. Particularly when you have a large number of connections. Well in order to do that I need a large number of… Read more
I had one of my developers ask me why he keeps seeing the following warning when he tries to modify a table:
Well just like it says he doesn’t have dbo access so he might not be able to save his changes.
Let’s start by creating a user with the… Read more
When developing in SQL Server you are eventually going to have to modify a column or two (at least). And if you use T-SQL to make the modifications (and I would recommend it most of the time) there is something you need to watch out for.
First remember that when… Read more
The other day I made a somewhat flip coment on twitter. (I know, everyone is shocked right?)
It started a rather amusing conversation over using varchar(1) vs char(1) and I thought it might be helpful to go over… Read more
Clearing out a full transaction log is a common problem. A quick search will find you dozens of forum entries and blog posts. Because of that I’m not going to talk about the correct methods of dealing with a transaction log full error. What I want to discuss is why… Read more
I use impersonation all the time to let me see additional permissions information I can only get that way and, sometimes to help me see what permissions error someone is getting.
For those of you who aren’t aware, with the right permissions you can impersonate another principal (server or database)… Read more
I have a moderately popular blog. In part because I syndicate but largely (in my opinion) because I write a lot of posts (twice a week for > 3 years). Over 340 of them in fact. Because of this a friend asked me what I do if I write a… Read more
Every now and again you need to run code when your instance starts up. For example you might want to check if the SQL Agent is running.
The first thing you have to do is make sure that the scan for startup procs configuration is set to 1. Read more