I think it may be more complete to change the declaration "@guid varchar(32)" to "@guid varchar(36)" to be able to include de 4 dashes '-', in case someone want to specify a complete 32 char. guid.
Except for that, it is a very very nice proc!!!
Thanks for the contribution,
Bruno Arnold