![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How can I create a job in sql agent to create a new snapshot every hour? I have, for eg a T-SQL that does it manually. create database Snapshotter_snap_20070418_1821 on ( name = Snapshotter, filename = 'c:\temp\Snapshotter_snap_20070418_1821.ss') as snapshot of Snapshotter Now, what I do NOT want, is to only have one copy, but rather to do this every hour or two through out the day - and keep the old copies for some time. (In that case, a DROP database, and a CREATE database <generic name is easy). |
#3
| |||
| |||
|
|
Hi How can I create a job in sql agent to create a new snapshot every hour? I have, for eg a T-SQL that does it manually. create database Snapshotter_snap_20070418_1821 on ( name = Snapshotter, filename = 'c:\temp\Snapshotter_snap_20070418_1821.ss') as snapshot of Snapshotter Now, what I do NOT want, is to only have one copy, but rather to do this every hour or two through out the day - and keep the old copies for some time. (In that case, a DROP database, and a CREATE database <generic name is easy). Any help appreciated, M |
#4
| |||
| |||
|
|
I am working through my 70-431 course, and this was mentioned a number of times. However, I see no point in doing this. Consider: I take snapshots hourly, on the hour. At 1.10pm, someone admits a major blunder, and tells me they dropped a table at 11am. I can now restore the 11am snapshot to a new DB and recover the table. But, to do this, I need to delete the other snapshots. |
|
In fact, the only real use for snapshots I can see, is To make a snapshot of a mirrored / log shipped database so it can be used as a static report DB, OR To make a quick "backup" where a DBA needs to do some work quick and might risk dataloss through an error. |
#5
| |||
| |||
|
|
Yes, I think you got it right there. Snapshot is not a good solution for recovery in general. |
![]() |
| Thread Tools | |
| Display Modes | |
| |