Automate restore
Andrew Hodge
Posts: 132
Is there anyway to automate a virtual restore ie perform the virtual restore via a SQL script.
Had a quick look through the help and this forum and cant see anything obvious....
Had a quick look through the help and this forum and cant see anything obvious....
Comments
(How to create a sql server agent job)
http://msdn.microsoft.com/en-us/library/ms190268.aspx
http://www.red-gate.com/supportcenter/C ... 132667.htm
So if you have a backup name that changes due to including the date and time then it becomes difficult to script for.
Can I have a feature request of allowing the virtual restore to allow wildcard filenames
This request is also covered in this thread http://www.red-gate.com/MessageBoard/viewtopic.php?p=49845
The short version is that SQL Virtual Restore uses native T-SQL syntax, and as such the approach proposed by epetro in the other thread (dynamic T-SQL) is the way to do this. That said, we're working on making scheduling easier to do, but I can't provide details on this yet.
I would really like to automate my daily restores with Virtual restore - as I am using date time filenames it's difficult to get them inside a tsql script to run thought a job.
If someone has an working solutions I would greatly appreciate it.
Regards,
R
Best regards,
Colin.
http://www.sqlphilosopher.com/wp/2013/0 ... db-script/
I apologize that it took me so long to get it pulled together.
the unindexed table is not worth querying
http://www.sqlphilosopher.com