Execute a stored procedure from a windows form asynchronously and then disconnect?

前端 未结 8 1315
青春惊慌失措
青春惊慌失措 2020-12-08 10:48

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

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 11:31

    Another method that you could do would be to allow your application to run in the background (possibly in the notification area) and then exit or notify when the job completes. You could use this by using the BeginExecuteNonQuery and EndExecuteNonQuery methods to allow it to run in a separate thread.

提交回复
热议问题