I am calling a stored procedure from my application that can take 30 minutes to execute.
I don\'t want to make my user leave the application open for that entire tim
let them shut down the app and come back later
If you're going to allow them to completely close the app, you'll have to start up a seperate .exe or something in a different ThreadPool that executes your code calling the stored procedure. Otherwise your thread will die when you close the app.