Asynch stored proc calls

J

John

Hi,

I appologize for such a simple question that I should easily be able to find
on my own. But I am having a difficult time finding it today .. just not my
day I guess.

How do you make an asynchronous stored procedure call from IDbCommand?

Here is what I tried thinking it might just run asynch by default.
---------------------
public void Run()
{
IDbCommand cmd = myConnection.CreateCommand();
cmd.CommandText = "MySlowProc";
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top