VDI error 1000: Failed to create virtual device
mago
Posts: 36
Dears:
I found if I want to backup multiple databases at the same time, it will show "VDI error 1000: Failed to create virtual device".
Here is my sql command :
master..sqlbackup ' -SQL "BACKUP DATABASE [TSR_20050719] TO DISK = ''d:\sqlbackup\Full_(local)_TSR_20050719_200508291517.sqb'' WITH NAME = ''Database (TSR_20050719), 200508291517'', ERASEFILES = 2 " -U xxx -P xxx'
master..sqlbackup ' -SQL "RESTORE DATABASE [TSR_20050719] FROM DISK = ''\\clt-dha1\sqlbackup\Full_(local)_TSR_20050719_200508291517.sqb'' WITH STANDBY = ''c:\sqlbackup\UNDO_TSR_20050719_200508291517.DAT'', MOVE ''TSR_Data'' TO ''c:\program files\Microsoft SQL Server\MSSQL\data\TSR_20050719.mdf'', MOVE ''TSR_Log'' TO ''c:\program files\Microsoft SQL Server\MSSQL\data\TSR_20050719_log.ldf'' " -U xxx -P xxx'
But if I run sql one by one in TSQL, it works fine. I guess it wouldn't permission error. Could your program support concurrent backup ?
Regards,
Mago
I found if I want to backup multiple databases at the same time, it will show "VDI error 1000: Failed to create virtual device".
Here is my sql command :
master..sqlbackup ' -SQL "BACKUP DATABASE [TSR_20050719] TO DISK = ''d:\sqlbackup\Full_(local)_TSR_20050719_200508291517.sqb'' WITH NAME = ''Database (TSR_20050719), 200508291517'', ERASEFILES = 2 " -U xxx -P xxx'
master..sqlbackup ' -SQL "RESTORE DATABASE [TSR_20050719] FROM DISK = ''\\clt-dha1\sqlbackup\Full_(local)_TSR_20050719_200508291517.sqb'' WITH STANDBY = ''c:\sqlbackup\UNDO_TSR_20050719_200508291517.DAT'', MOVE ''TSR_Data'' TO ''c:\program files\Microsoft SQL Server\MSSQL\data\TSR_20050719.mdf'', MOVE ''TSR_Log'' TO ''c:\program files\Microsoft SQL Server\MSSQL\data\TSR_20050719_log.ldf'' " -U xxx -P xxx'
But if I run sql one by one in TSQL, it works fine. I guess it wouldn't permission error. Could your program support concurrent backup ?
Regards,
Mago
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Dears:
Sorry to make you confuse.
I didn't mean to backup and to restore at the same time.
I mean if I want to backup multiple database at the same time using extended stored procedure, it shows error message. I don't know if it support concurrent backup using command line(sqlbackup.exe) at the same time. But in my test, it doesn't work using extended stored procedure.
(Please ignore restore sql, it's no matter with the problem. The other database backup sql is alike as the backup sql, but has different database name.)
Regards,
Mago
I set "Sleep" after run the script. It won't appear the error message again. So it's okay now.
Thanks a lot.
==========================================
For Each DBName In DBList.Items
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "sync.wsf " & DBName, 2, 0
WScript.Sleep 60
Next
==========================================
Regards,
Mago
So it's the limit of sql backup ?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8