G
Guest
I have a webpage, developed as a utility (and "Hello World"-type
ASP.NET project) to allow our developers to select a database name from
a dropdown list. Once a database has been selected, a list of all
user-defined stored procedures in the database is displayed. I've
already completed this page in Classic ASP, and now I'm trying to
develop a comparable page using ASP.NET 2.0 (& VS.NET 2005).
Once I've captured the database name, what is the best way to establish
a connection to that database? I've already added an entry in
Web.config's <connectionStrings> section, that allows me to connect to
the server's [master] database (to get a list of all databases on that
server). But that's static -- how do I dynamically connect to a
database, depending on which one the user has selected?
Any advice would be greatly appreciated. Thanks in advance!
-= Tek Boy =-
ASP.NET project) to allow our developers to select a database name from
a dropdown list. Once a database has been selected, a list of all
user-defined stored procedures in the database is displayed. I've
already completed this page in Classic ASP, and now I'm trying to
develop a comparable page using ASP.NET 2.0 (& VS.NET 2005).
Once I've captured the database name, what is the best way to establish
a connection to that database? I've already added an entry in
Web.config's <connectionStrings> section, that allows me to connect to
the server's [master] database (to get a list of all databases on that
server). But that's static -- how do I dynamically connect to a
database, depending on which one the user has selected?
Any advice would be greatly appreciated. Thanks in advance!
-= Tek Boy =-