The code in T-SQL doesn't work for me.
I found this:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=30598
I then modified according to my needs:
I uploaded here the VB solution:
http://www.uploadstation.com/file/qvemdYR
Thanks!
René Pereira Flores
renezito [arroba] gmail.com