I’m extremely pleased that Microsoft are continuing their commitment to provide full DDL to preform TSQL operations that have previously been preformed using stored procedures.
The particular case that I came across today was regarding roles and the ALTER ROLE syntax.
Prior to SQL SERVER 2012, it has… Read more
Recently I was updating some of my Powershell scripts for managing SQL SERVER instances.
Generally, when writing a Powershell script to do something SQL related, the script takes the form of the following,
Author : Martin Catherall
Get status of sql instances (must have sql 10 libraries… Read more
On Saturday 16th April 2012, I attended SQL Saturday #136 in Wellington, New Zealand.
On Saturday 14th April I’ll be speaking at SQL Saturday 136 in Wellington, New Zealand.
One of the features that I most like about management studio is the ability to generate a script of the actions that have been taken in one of the (many) dialog boxes.
This has tremendous value for both learning and for creating scripts to pass to another DBA. Read more
I wrote a post recently about setting the DAC port for an SQL instance.
I now do this as a matter of course on all of my SQL instance as I manage most of them remotly.
However, from time to time I discover instances that have had… Read more
I had a situation today where I needed to ensure that the dedicated Administrator connection (DAC) ran on a specific port.
The main reason that I wanted it on a specific port was so I could use the connection remotely (if needed) and because the connection was on… Read more
I’ve noted a few instances lately of cases where VARCHAR(MAX) columns have been used unnecessarily, when a small value (for a VARCHAR) would have been fine.
Apart from the storage implications of a VARCHAR(MAX) column there is also the issue that in SQL SERVER 2008, having a column of… Read more
I was checking out some of our configuration options today using sys.configurations and I started to wonder how many people actually use this table, or whether most people simply use the more common system stored procedure sp_configure.
As sys.configurations is simply a table, we can use an ORDER BY… Read more
I think it’s a safe bet that everybody here has issued a DROP DATABASE statement and knows what to expect.
Well, today I was experimenting with a development database. The script I was using employed simply reusable code to drop and re-create the database – or so I though. Read more
I’m probably not the only one that has noticed that as the volume of data gets bigger in out databases, the time taken to preform maintenance increases.
This seems to be a simple fact of life for the DBA. But as our maintenance time increases, we need to be… Read more
Back in February, I was lucky enough to attend a week of training on SQL internals from the people at SQLskills in Dallas, Texas.
I felt that I learned that much there and enjoyed myself so much that the journey back across the Pacific from New Zealand for the… Read more
I recently ran into a nice feature that I had never encountered before.
Sometimes, when developing or administrating an unfamiliar table we will simply do a “SELECT *” so that we can quickly see the column names.
This is pretty much fine when the table is small.
However in… Read more
Here’s my input into this months Meme Monday – there are no dumb questions.
It seems (at least to me), that – occasionally – no matter how hard you try to ask an intelligent question about SQL SERVER on some of the forums – that somebody will interpret… Read more
I’m a big fan of maintaining and updating your technical skills, but sometimes its difficult to measure your ability at a task, especially if you don’t use that particular piece of a technology in your day job.
One good way of measuring these skills is to sit certifications and… Read more
I recently received a brand new windows 7 virtual machine for my every day work use and one of the first things that I did was install SQL SERVER 2008 developer edition on it.
As I’d expect, this was a pretty straight forward task and before long I had… Read more
The recommended way to access SQL SERVER metadata is through the catalog views.
The compatibility views basically… Read more
There’s a lot of mixed opinions around about certifications.
Are they worth while, do they mean anything, do employers value them and the like.
I’m personally in the “certifications are definatly” worth while camp. For a few reasons,
- Certifications test my knowledge to a certain standard and give me…
Running object creation scripts into other environments is a big part of most DBA’s work – especially when a new system is being built in an agile manner. Stored procedures get created and altered all the time.
Very often I used to see code like this
IF EXISTS (…
Apparently “Meme Monday” was started by Thomas Larock (Blog | Twitter) , as a way for getting people writing. I haven’t been tagged or anything, I just thought that I’d gate crash the party. It was also Tuesday (here in New Zealand), when I seen this weeks… Read more