Dear all i have connection with one server...in certain condition i want t0 change server so need to change connection string by closing first one and after performing task of another server again close that one and start old one ///
Do you have any better approach to do this
Changing connection string dynamicallly
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Dec 21, 2011, 6:28 AM EST
Also, separate pools are maintained for each connection string.
Having said that, it might improve performance marginally if you create and keep open a separate connection to each server though I wouldn't do this if one of the connections will remain unused for a period of time.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 21, 2011, 8:49 AM EST