Windows Service or SQL Job?

前端 未结 6 2021
别那么骄傲
别那么骄傲 2021-02-08 21:52

I have an archiving process that basically deletes archived records after a set number of days. Is it better to write a scheduled SQL job or a windows service to accomplish the

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-08 22:18

    It depends on what you want to accomplish. Do you want to store the deleted archives somewhere? Log the changes? An SQL Job should perform better since it is run directly in the database, but it is easier to give a service acces to resources outside the database. So it depends on what you want to do,,,

提交回复
热议问题