I know how to execute commands on SQL server asynchronously using Begin/EndExecuteNonQuery, but is there a Begin/EndOpen method on the SqlConnection class? I would like this to be asynchronous because sometimes it is slow and I don’t want to block a thread the whole time. Does this make sense?
I know how to execute commands on SQL server asynchronously using Begin/EndExecuteNonQuery, but is
Share
You can, but it would be unusual for it to be very helpful. The scarce resource for databases usually isn’t associated with connections, but with queries. Do you suspect that your application is blocking on opening connections?