Hello,
I'm writing an application which connects to a database (SQL Server 2005). I want to make this flexible enough so it can connect to the server/database that the user specifies (so a form pops up, that they can select the server/database from the list).
I can work out just about everything, except how to give the user a list of available SQL Servers, and a list of the databases on it. Can someone point me to an example of this somewhere (I have looked and looked).
Thanks.
I'm writing an application which connects to a database (SQL Server 2005). I want to make this flexible enough so it can connect to the server/database that the user specifies (so a form pops up, that they can select the server/database from the list).
I can work out just about everything, except how to give the user a list of available SQL Servers, and a list of the databases on it. Can someone point me to an example of this somewhere (I have looked and looked).
Thanks.