all groups > sql server programming > october 2006 >
You're in the

sql server programming

group:

backup of mssql server databases using snapshot technique



backup of mssql server databases using snapshot technique tsgd84 NO[at]SPAM gmail.com
10/2/2006 9:53:22 PM
sql server programming: hi everybody,

I was writing an app to get snapshot backup of mssql server databases
using VDI interface,
VDC_Snapshot command was successfully issued by the interface(database
was in frozen state),
then I was trying to read the .mdf and .ldf files in the data folder of
the mssql server installation location, but I could not get the handles
to read .mdf and .ldf files. They were returned with negative value if
i try to open an handle for reading the database and log files.
(OR)
After VDC_Snapshot was issued how should i copy the mdf and ldf files
or how to take the snapshot backup.

Any suggestions on this will be highly appreciated,

Thanks and regards
deena
Re: backup of mssql server databases using snapshot technique Uri Dimant
10/3/2006 12:00:00 AM
Hi
You cannot BACKUP snapshot database. BOL has pretty good explanation about
shpashots and its purpose




[quoted text, click to view]

Re: backup of mssql server databases using snapshot technique tsgd84 NO[at]SPAM gmail.com
10/3/2006 2:02:05 AM
hi..,

Thanks for ur reply,
But what i am trying to do is to backup an ordinary database of mssql
server using snapshot
command appended with backup database query.
For example, Backup Database 'pubs' to
Virtual_device='0830-e397-3987-u3k8' with snapshot.

Thanx in advance
regards
deena


[quoted text, click to view]
Re: backup of mssql server databases using snapshot technique Roger Wolter[MSFT]
10/3/2006 10:33:36 AM
I think what's confusing us is that there isn't a snapshot option in the
backup command. Perhaps if you told us what you're trying to do it would
help us understand what you need.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

[quoted text, click to view]

Re: backup of mssql server databases using snapshot technique tsgd84 NO[at]SPAM gmail.com
10/3/2006 10:28:53 PM
hi.,

It seems that my previous questions are lot more confusing, ok fine, I
will try to explain my requirement below,

I was trying an application which implements Virtual Device
Interface(VDI) media to take backup of mssql server databases(whose
examples are provided with mssql server installation available in
DevTools). For backups without snapshot VDC_Write command will be
issued with stream of backup data by VDI API. But for backups with
snapshot option in the backup command, VDC_Snapshot is issued (Now the
application should copy the data of the particular database) by VDI
API. My requirement is to know how to get (or copy) data of the
particualr database whehter i should copy the .mdf and .ldf files or
what else.

Hope the above is understandable

Thanx for the previous replies and time
regards
deena




[quoted text, click to view]
AddThis Social Bookmark Button