BUG: Dump DB with INIT/UNLOAD May Fail to Execute in a Batch

Last reviewed: April 30, 1997
Article ID: Q119444

The information in this article applies to:

  - Microsoft SQL Server version 4.2
BUG# NT: 874 (4.2)

SYMPTOMS

If a dump database <database_name> to <tapedevice> is made with INIT and/or UNLOAD in a single batch that contains multiple dump commands and the command to INIT and/or UNLOAD is not a part of the last dump command, the INIT and/or UNLOAD may not be performed. The INIT and/or UNLOAD in the last DUMP DATABASE statement will control how the previous dumps will be performed.

For example:

   use master
   go
   dump database master to tapedump with init,nounload
   dump database pubs to tapedump with noinit,unload
   go

This batch script will append both master and pubs database dumps to the current tape in the device, and the tape will eject after each database dump.

The following batch script will not INIT the tape and will not unload as well:

NOTE: Both dumps will be appended to the current tape.

   use master
   go
   dump database master to tapedump with init,unload
   dump database pubs to tapedump with noinit,nounload
   go

The following script will INIT and UNLOAD after each database dump in the script:

   use master
   go
   dump database master to tapedump with noinit,nounload
   dump database pubs to tapedump with init,unload
   go

WORKAROUND

Separate each dump database to tape instruction with a delimiter. For ISQL.EXE, the appropriate delimiter is a 'go'.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: Windows NT
Keywords : kbbug4.20 kbprg SSrvWinNT
Version : 4.2
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.