Can someone give me the code generate a list of the names of all the databases from the server that i choose...???

I already list all of the sql server.. but now i need to know if i can list the databases...

Thanks a lot!