• Apologies to all -- I've now made a correction to the answers so that it applies correctly to SQL Server 2005.

    Best,

    Tony.