J
jtbr
I have an ado.net based application (using BDP borland data provider actually). Everything is working fine. Up till now the connection string for my single connection object has been hard coded. set in designer. Now its time to implement login functionality using different user names and passwords. For a 'login' I figured, ok i'll close the connection if its open, then just change the ConnectionString. I set the exact same connection string as designer, I just set different username & password values.
The second time I run thru this cycle however I get strange exceptions when trying to close the connection. "No pool found to release connection". Then when I go to use it I get "connection already open".
The big question is, are connection objects meant to be reused in this manner, or must I new a new connection instance if I want to have a different connection string?
thanks
The second time I run thru this cycle however I get strange exceptions when trying to close the connection. "No pool found to release connection". Then when I go to use it I get "connection already open".
The big question is, are connection objects meant to be reused in this manner, or must I new a new connection instance if I want to have a different connection string?
thanks