T-Sql Script for SQL Server Backup Maintenance Plan? -


What is a T-SQL script for a backup maintenance plan? I want to manage it with the app.

In fact, I want to configure Auto Backup with Task Scheduler with T-SQL script from the app.

Thank you.

OK

You should use a SQL agent

In Object Explorer, connect to SQL Server, expand 'SQL Server Agent' node, expand Jobs; right click ;

Create a backup job

Click on 'New' to create a new job. Step

Type a name for the job step and type the T-SQL statement in the backup database

and in the last step, you can click ok to save or generate the script You can click on "script" to do this in your program.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -