You can call a system stored procedure sp_start_job and pass a name of a backup job.
Here is T-SQL statment that you can execute from Query analyzer:
exec msdb.dbo.sp_start_job @job_name = 'Your backup job name'
Create a backup job and then pass a name of a store procedure as msdb.dbo.sp_start_job, then pass a parametar @job_name with name of backup job and execute scalar. You can do the same with bcp command but I think previous is better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.