Anyone know how to retrieve the listing of all the databases available on a SQL Server machine thru code? I would like the user to enter the name of the server and display all the databases available. Very similar to what happens when you are setting up a connection the a particular DB. Thanks!

Matt