by Katherine Villyard | Feb 17, 2013 | scripting
So, I have this friend *cough* who had a domain controller that needed a new motherboard. Due to the excitement of the hardware vendor’s tech forgetting to reattach the RAID, then the server no longer recognizing its network cards, and then the tech realizing...
by Katherine Villyard | Dec 22, 2012 | scripting
I support developers. In our dev/QA environment, people add, delete, and change the recovery model of databases all the time without telling me. How do I keep track of which databases need to be backed up? I don’t. I back up everything. Master has information...
by Katherine Villyard | Oct 8, 2012 | scripting, sysadmin
You didn’t get this from me. You downloaded it off the internet. In fact, why don’t I turn that bunch of scripts into a series of jobs and give it to you as one big lump? (Download.) How to use: Load file into SQL Server Management Studio. Replace all...
by Katherine Villyard | Sep 23, 2012 | scripting
You never know when you’re going to have to plagiarize yourself. Seriously, I just repurposed the “migrate databases to new drives” script to be a “migrate databases to a new server” script. Rather than starting from scratch, I changed a...
by Katherine Villyard | Aug 31, 2012 | scripting
“Windows Internal Database,” is basically SQL Server with network access and the maintenance tools turned off. You might want to do maintenance on whatever’s in there, anyway. I use Windows Task Scheduler for that, at least until I move the...
by Katherine Villyard | Aug 21, 2012 | scripting
Suppose that you’ve been asked to migrate 166 databases’ .mdf files from one drive to another. How would you do that? I’d generate a list based on the .mdf files (the databases are all named the same thing as the .mdf. If this wasn’t the...
by Katherine Villyard | May 6, 2012 | scripting
This isn’t the entire thing, it’s bits and pieces, but it’s enough for you to bend, fold, spindle, and mutilate for your own purposes. I was given 70,000+ tab delimited lines that were output dumped from a program and asked to find out what version...
by Katherine Villyard | Mar 6, 2012 | monitoring, scripting
I checked out Nagios Exchange, and didn’t see anything that checked the status of a job and used Windows/AD credentials/trusted connection. So I wrote this. It’s intended to run as an NRPE script, and doesn’t require anything that doesn’t come...