Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello experts !

I want to automate the process of taking incremetal backup from server 1 in the directory of server 2 and restore every lastest differential backup in the directory to server 2 existing db having same names in both servers...

Iam using sqlserver2008 r2.

Your help really ease my life.


Thank you
farh
Posted

Sir,

I find the link to restore differntial backup but having error.My level is very low the above link very informative bu iam unable to implement?



http://www.mssqltips.com/sqlservertip/1584/auto-generate-sql-server-restore-script-from-backup-files-in-a-directory/[^]

I commented all the all other full backup and transaction logs leaved differential but having error back

<db2Msg 16916, Level 16, State 1, Line 42
A cursor with the name 'backupFiles' does not exist.
Msg 16916, Level 16, State 1, Line 61
A cursor with the name 'backupFiles' does not exist.
Msg 16916, Level 16, State 1, Line 71
A cursor with the name 'backupFiles' does not exist.
Msg 16916, Level 16, State 1, Line 72
A cursor with the name 'backupFiles' does not exist.
RESTORE DATABASE db2 WITH RECOVERY>


help me out ...
thanks
 
Share this answer
 
v2
Comments
Nelek 17-Dec-12 18:35pm    
Please don't post solutions to add information, to ask something or to comment another user.
- To add information to your message, you can use the widget "Improve question" / "Improve solution" at the bottom of your text.
- To ask/answer a user, you can use the widget "Have a question or comment?" (as I am doing right now with you) or the widget "reply" in another comment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900