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();
}
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();
}