• Unfortunately this doesn't quite work, see the explanation in the following article:

    http://www.sqlservercentral.com/articles/Stored+Procedure/62975/