Sorry for my interruption, actually i am looking for this as well. i have try the posted code but i get the following error message...

QueryInterface for interface SQLDMO.NameList failed.

do you have any idea about this?