A Script A Day - Day 29 - The Importance of Being Idle
Today’s script is also one I used in my migration on Wednesday. It again uses string manipulation to generate a script, this time the restore database script. Now granted this quick script wouldn't...
View ArticleA Script A Day Finished!
Well that's it, my "A Script A Day" series is finished. I hope you found the scripts I provided useful, I've used all the scripts in real world DBA tasks. I tried to provide a variety of scripts...
View ArticleHow Resilient Is Your Recovery Plan?
In this modern age of technology DBA’s face an ever increasing demand from businesses; our databases must perform, be secure, highly available and scalable and equally as important recoverable. There...
View ArticleWhy I don’t like maintenance plans
If you create a maintenance plan (SQL 9.0.3042) to backup databases and select All databases as below;Then at some point in the future if one of the databases is taken offline the job created by the...
View ArticleRebuilding System Databases
Today’s post is something I thought I would share as there is an awful lot of incorrect commands I have seen (and some even tried) in the past around rebuilding system databases. Now first off let me...
View ArticleDatabase Tables
Today I was asked for "a list of all tables in all databases" on a particular instance of SQL Server. Knowing what was actually required was all "User" tables in all "Accessible" "User" databases I...
View ArticleCost Savings and Backup Compression
Let me set the scene, one of our internal IT SQL Servers which stores a whole host of performance metrics has over the last few months’ experienced tremendous growth as we have started to monitor more...
View ArticleHigh Availability Lingo
You have got to love the way the SQL Server team change the lingo in all of their high availability (HA) / disaster recovery (DR) features. To a novice and even to more seasoned DBA’s it can be...
View Articletablediff Utility
I recently stumbled across a little gem of a utility called tablediff. I have been working a lot with replication in my current position and recently had to setup merge replication between 3 servers...
View ArticleCreate Database Script
I always try to enforce standards across all the SQL Servers I manage, it makes tons of administrative tasks much easier to complete and ensures consistency across the estate. One thing that really...
View ArticleDatabase Mirroring Error
I have been setting up multi instance database mirroring for the last couple of days along with some other DR related processes. I will do a detailed post about these at a later date. I came across...
View ArticleDatabase Mirroring Performance Counters
This week’s SQL Skills insider email contains a simple but often too true scenario regarding database mirroring. If you haven’t signed up to the insider email I suggest you do as there is wealth of...
View ArticleUnused Indexes
A sound indexing strategy is paramount to performance in an OLTP system. Not having the correct indexes in place can cause unnecessary reads placing additional overhead on, among other things the IO...
View ArticleTables without a Clustered Index
Yesterday while adding some new logic to an existing process I noticed an unacceptable level of performance degradation with the routine. Investigation led me to find that a new table had slipped...
View ArticleTables without a Primary Key
As well as creating the script for yesterday’s post on finding Tables without a Clustered Index I tweaked the script slightly to get all tables without a primary key. A Primary Key constraint enforces...
View ArticleActive Directory Group Membership and Powershell
I’ve done my fair share of work with Active Directory over the years and LDAP has helped immensely, it did however let me down recently. Well when I say LDAP let me down it was probably my knowledge...
View ArticleSQL Server 365 - Fantastic First Year In Numbers
So, tomorrow marks one year since I started blogging here on SQL Server 365 and what a year it has been. I can honestly say that I have taken a great deal away from this experience which has been so...
View ArticleReplication Latency
I've used Replication a lot over the years and contrary to the opinions of most DBA’s I know, I think it is a brilliant feature. Replication I feel gets a bad reputation for causing a number of...
View ArticleScript Replication with PowerShell
I promised you some PowerShell scripts this year and this post is the first one. I can see the value PowerShell can bring, but find it equally frustrating. I don’t know the syntax very well or all...
View ArticleT-SQL Gotcha
I came across an interesting issue a few days ago that I thought I would blog about. The issue is replacing NUL characters from values in SQL Server, more specifically usingREPLACE(). Take the below...
View Article