Creating Configurable and Portable SSIS Packages Part 3

In this article I’ll conclude my set of articles into SSIS configuration. This article will be slightly more verbose than the previous two, but I hope I clearly convey the logic behind my method. If you haven’t yet done so, please read Part 1 and Part 2 of the series. The Portability problem In my first forays... More

Creating Configurable and Portable SSIS Packages Part 2

In Part 1 I showed how a simple SSIS package could be created using variables and expressions as a basis for deployable configuration. When I first started working with SSIS I assumed naively that during deployment, a wizard or a configuration file would allow the variables and expressions to be readily editable. Speaking o... More

Get a comma-delimited list of columns

One of the things I've been doing recently has been writing lots of SQL inserts in which I've had to specify the columns. For example: INSERT INTO tblMyTable () SELECT FROM tblMySourceTable The most tedious part was writing the column names in a comma-separated list. It would be good if I could automagically create... More

How to tell what has changed in a SQL Server Database

One of the things I've had to do recently is work out if objects on a SQL Server had been modified after a particular date. I did some Googling and came up with the following which I've condensed into one simple and easy to read article. Just one caveat before we dive in: these scripts ought to work on all SQL Server versio... More

How to Import and Export DTS packages quickly

This article applies to DTS packages on SQL Server 2008 R2, but will probably work on most other versions. Yes I know, I know - DTS is deprecated. But bear with me. There is a lot of DTS still hanging around out there. How to export DTS packages to binary file The slow way Open SQL Server Management Studio (SSMS), open... More

Handling Orphaned Database Users

This isn't the first time I've had to deal with orphaned users in SQL Server, and probably won't be the last but today I found myself investigating why it happens and how to resolve the issue it causes. I guess before I start on that I should explain what an orphaned user is. The best way is probably to illustrate with a c... More