Application Development


If you ever have problems loading EXCEL based data into SQL via SSIS, you are not alone.  It can cause all kinds of problems with data type selection for the columns.  The real problem is not with how SSIS selects the data types for all the columns, but actually how far down a spread sheet that SSIS scans to process the data. I think of this as a deliberate Microsoft bug (or a feature, as they like to call it). I am


The purpose of Merge is where you have two tables – maybe a transaction table and a staging table which could have records to be inserted and/or replaced in the transaction table.  Or maybe you have two tables of people (staff or patients) – one table (the master) with last years data and one table from this year, and you want to bring the master up to date with additions, updates or removals. Under SQL 2005 you would have had to


With the introduction of SQL Server 2012, it is worth looking at the features available in the different versions of SQL Server, and the benefits that they bring. The following list the major features (and a few negatives) for each upgrade step from SQL 2005 to 2012. Note, SQL Server 2012 SP1 is now available, and brings very few new features, but improves performance and satiability. SQL Server 2005 to 2008 • Transparent Data Encryption. The ability to encrypt


One of the functions most useful in programming is Instr. This routine gets parts of strings - yet the funtion is missing in SQL Server. Well, its missing no more - welcome to my version which I call GETPART. This function returns part of a string based on a seperator character As an example select GetPart("the~cat~sat~on",'~',2) returns "cat" So imagine you have a persons name in a column of "Jaffa Brown" - Getpart(Name,' ',1) will get you the first name.


If you ever struggle to backup, process or use a database only to find that somebody (somewhere) is using it, then this collection of SQL commands will help. They will list the processes and will then allow you to either shout at the people, or if needed, kill the processes.  If you KILL them, SQL will take care of making sure its a clean kill - in that any updates will be rolled back, and