• reynolddejesus100 (5/28/2015)


    sir i want to automatic restore the backup files using sql agent, how can i solve this using sql agent automation

    SQL Agent can call to T-SQL. You can use the T-SQL command for RESTORE database. You'll have to use WITH REPLACE and MOVE to ensure that you rearrange the files on the new server (or copy them to a new on an existing server). The link I provided is to the command.

    Jeff's comments are valid though.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning