Like many DBAs I spend a lot of time maintaining my SQL Server backups. From SQL Server I maintain both full backups and transaction log backups. I have often restored my full backups but until recently I have never restored a transaction log backup. All backup strategy’s are only as good as the last time you tested...

I spend a lot of my time creating new features that simplify my companies business processes. A good example of this is an invoicing system I created. Instead of users working off different spreadsheets and copying and pasting data between various different programs the user can click a couple of buttons and everything...

I use SQL Server Management Studio all the time for writing queries, getting data and general SQL development. I have enjoyed seeing the improvements that each new version of SQL Server Management Studio (SSMS) introduced. One great improvement was intellisense. This feature saves typing and reduces errors by...

I recently read a blog post by Pinal Dave about how you can backup straight to Azure Storage. The procedure he described is only available for SQL Server 2014 or later. I won’t go into detail of this method as Pinal describes it better than I can, but the basic of it requires setting up credentials and then running a...

Unmanaged Database Deployment

For the past few months I have been deploying changes to my companies database every couple of weeks or so. Over a weekend when the database was not being used I would make a backup of the database, load up visual studio, deploy the database changes and copy a couple of front-end files. My weekends and evenings have...

How complex are my stored procedures?

Recently me and my development team have been looking at performance and how to improve it. One area of improvement we have identified is with our stored procedures, which we plan to rewrite. But how do we identify which are the easiest to rewrite and which are the hardest? My first thought was maybe to count the...

Today is my day off, but I wake up and have a quick look at nagios to see if there is anything I need to worry about. Yes there is, SQL Server has run out of disk space on its data disk. I race downstairs and VPN onto the server to find out what has happened. One of my monitoring databases has had runaway log growth...

Overflow

Today I encountered a new error. Run-time error ‘6’: Overflow doesn’t really tell me much. The error was occurring in the Access ADP front-end of our main database. It was only occurring for one particular Id number which was really confusing me. First thing I tried was to remove the most recent changes I had made,...