Link to home
Start Free TrialLog in
Avatar of DBconv
DBconv

asked on

sql database back up using a .bat file

I am trying to create a script that will delete an existing back up at a specific location (a)
and Create a back up of the database to the same location (a)

Also trying to achieve the same with restoring the database
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
incidentally, you can use the SQL extended sp xp_delete_file to delete backup files directly from within SQL.
You can do easily using SSIS packages.
There are some task to maintain SQL Server objects and else more.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.