Disabling TDE on SQL Server 2008
Or more accurately: Preparing an encrypted TDE enabled database for restore on a Standard Edition SQL Server I recently had the challenge of restoring an encrypted database on to a standard edition...
View ArticleGet the query and execution plan for a session
A simple piece of code to help you get the execution plan and the query text for a currently running query. This is especially useful when dynamic sql is being run against your database or if DBCC...
View ArticleASP.Net – Sending Email Asynchronously
I’ve spent a lot of time over the last few months building a website, and as always, there is much help and information available on the internet. Something I struggled with however was the sending of...
View ArticleIsn’t it ironic
It’s quite ironic that being an ETL and database developer by trade, it has actually been easier to upgrade this website manually, literally copying and pasting each of the blog entries. SSIS which is...
View ArticleA simple restore script
This is a simple script that finds all (backup) files in a directory that match a pattern specified. It then derives the database name from the filepath and attempts to do a full restore. It should be...
View ArticleA cleaner meaner website!
Well it has taken a long time to finally move off of WordPress 2.0, but we have finally done it. Welcome to the new look Protean IT!
View ArticleThe Developer DBA toolkit
Fellow developers are often surprised at how much I use command line and xp_cmdshell. The reason for this is two fold: It saves a lot of time because it means that you don’t always have to remote on to...
View ArticleWhat port number does my SQL Server listen on?
Looking for an easy way to know what port number your SQL Server is listening on? You can of course go to the Configuration Manager or check through the registry… but an even simpler way is to query...
View ArticleInclude HTML in a SSIS Configuration File
This stumped me for a while, but a useful pointer from a colleague reminded me how this can be achieved… Quite simply as the configuration file is XML we can use CDATA so that the content won’t be...
View ArticleSimple PS script to copy files from one share to another
XCopy is great but sometimes you need something a little more powerful. Powershell can give you the ability to perform more complex manipulations. Here we’re finding the previous weekday and using it...
View Article