Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Backup tools with progress status

Author  Topic 

hsi
Starting Member

1 Post

Posted - 2005-06-16 : 06:08:06
Dear All,

Would you kindly tell me how to use VB6 to make a tools for backup/restore up SQL data. Backup progress (e.g. 10%, 20%...) is needed. Password is also needed.


Thanks a lot.

Best regards

HSI

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-06-16 : 07:35:46
I think You cannot precalculate the time required for backup/restore and accordingly show the status bar values

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-06-16 : 07:53:11
The BACKUP and RESTORE commands have a WITH STATS option that can display progress during the operation, however I don't know if the messages are accessible via an ADO connection.

The SQL-DMO COM library would be the only other option I can think of, but a quick glance does not show any Backup or Restore methods.
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-06-16 : 11:41:53
You could run DBCC OUTPUTBUFFER on the backup/restore SPID and parse it. (YUCK!!!)

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -