disconnected mode & threads
disconnected mode & threads
can I use disconnected mode in other thread or not? i'm creating and using the db connection in the other thread, but i still get disconnected after each command sent...? in main thread it works fine...
Re: disconnected mode & threads
Yes, you can use disconnected mode in another thread.
DisconnectedMode is used to open a connection only when it is needed for performing a server call and it is closed after performing the operation.Ludek wrote:i'm creating and using the db connection in the other thread, but i still get disconnected after each command sent...?
You write following in the help
so something should be corrected - the help (you should mention there, it is not valid for other threads) or sdac.
this was not true in sdac 4.70.0.46 (it has been corrected in 4.70.0.47) and it is still not true in 4.70.0.47, if the connection component is created and used in non-main thread.If the connection was explicitly opened (the Connect method was called or the Connected property was explicitly set to True), it does not close until the Disonnect method is called or the Connected property is set to False explicitly.
so something should be corrected - the help (you should mention there, it is not valid for other threads) or sdac.