ps (12/14/2008)
...My questions are:-
1. how to control the number of backup sets that can be written in a file using the device i created above( in above example 2 backups are there and i can add more).
2. Since there are multiple backups in that file, how can i restore the 2nd backup using t-sql
I was able to read the backup details by restoring the header of the backup file.
Restore headeronly from DailyActivity_Full_Backup
The column Position has value 1 and 2. Can it be used during restoration?
1) you cannot restrict the number of backups written to a backup file.
(you can only "clear" the file using WITH INIT)
2) Check out RESTORE in BOL.
restore database yourdb
from yourdevice
with file=2
...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me