That is terrific Jonathan, and to my mind, a great solution generally for elevating the rights of a stored procedure (especially a stored proc that has to use xp_cmdshell or oa_create methods).
An easy to follow article 10/10 !
C# Gnu
____________________________________________________