Hi Group!
I'm looking for a tutorial in using SQL-DMO, or some sample code that will
allow me to let my users switch the SQL Server database that the front end
app is linking to as a back end.
I know that this is quite simple if the front end is an adp/ade, but for now
it's an mde, and will have to be for a while yet (it's too complex to upsize
overnight).
So I need to be able to write something that will list the available Servers
in a combo box or list box, then list the available databases in another
combo or list box, so that when the user clicks 'OK' the code will change
the connection. (You can imagine what the form would look like.)
I'm happy with the connection changing code - I've got a routine that does
it if you can pass it the server and database. What I need is a pointer
towards how to retrieve a list of servers, then a list of database on each
server, from whatever is available on the network at the time.
A trusted connection is fine for this app.
TIA
Andrew
--
I don't check mail sent to this address.
If you really want to contact me direct
then write to :
andrew at webster dot org
I'm looking for a tutorial in using SQL-DMO, or some sample code that will
allow me to let my users switch the SQL Server database that the front end
app is linking to as a back end.
I know that this is quite simple if the front end is an adp/ade, but for now
it's an mde, and will have to be for a while yet (it's too complex to upsize
overnight).
So I need to be able to write something that will list the available Servers
in a combo box or list box, then list the available databases in another
combo or list box, so that when the user clicks 'OK' the code will change
the connection. (You can imagine what the form would look like.)
I'm happy with the connection changing code - I've got a routine that does
it if you can pass it the server and database. What I need is a pointer
towards how to retrieve a list of servers, then a list of database on each
server, from whatever is available on the network at the time.
A trusted connection is fine for this app.
TIA
Andrew
--
I don't check mail sent to this address.
If you really want to contact me direct
then write to :
andrew at webster dot org
Comment