I have one Stored Procedure which takes around 2-3 minutes to complete its execution. From ado.net i want to make that stored procedure execution happens in background.I have to return to my code as soon as i make the request to the stored procedure. Can anyone help me on this ?
I have one Stored Procedure which takes around 2-3 minutes to complete its execution.
Share
You should investigate Threading. In short you create a thread with the call to the stored procedure. When you start the thread it runs in the beackground. This thread can have a callback function that is called when the thread finishes.
BackgroundWorker is an easy way to create threads.