Вопрос

In our software because the users are using SQL Server 2008 R2 Express, I would want to create backup jobs for them programmatically using the SMO API. Is it possible? If possible point me to any articles written on this light of this topic.

Это было полезно?

Решение

Since the Express versions don't have the SQL Server Agent that executes jobs - no, I don't think this is possible.

What you could do however is create a standalone console app that uses the SMO library to perform the SQL Server backup, and then just schedule that console app on your machine using the built-in Windows scheduler, to runonce every day (or every four hours or whatever you need)

As for resources on SMO - check these out:

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top