By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Runtime

P: n/a
Hi,
Is it possible to have the connection string change during runtime? How?
Thanks,
Kenny
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
CT
Sure, although if you change it when the connection is open, you need to
close and reopen the connection. A simple assignment might be what you're
after (ConnectionString = "..."). Perhaps you want to be able to do it from
outside of your cide, in whiuch case you should look into dynamic properties
or simply loading the connectionstring from you .config file.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Kenny" <ke***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
Is it possible to have the connection string change during runtime? How?
Thanks,
Kenny

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.