PRB: Sp_helpdevice Shows Multiple Devices with Device_number 0

Last reviewed: April 25, 1997
Article ID: Q75546

The information in this article applies to:

  - Microsoft SQL Server version 4.2 for OS/2
  - Microsoft SQL Server version 4.2

SYMPTOMS

In the section for adding database devices ( page 36 for version 4.2), the "Microsoft SQL Server System Administrator's Guide" states that "VDEVNO" must be unique among database devices and dump devices; running sp_helpdevice displays multiple devices with the "device_number" equal to 0 (zero) (which is reserved for the master device).

CAUSE

Unlike DISK INIT, which is used to create database devices, dump devices are created with the stored procedure sp_addumpdevice, which does NOT require a device number as a parameter. The stored procedure sp_helpdevice calculates the "device_number" by dividing the "low" column in sysdevices by 16777216. Because "low" (the starting virtual page number) for dump devices is always 0 (zero), this computation will yield 0 (zero).

For this reason, the master database device and all dump devices have a device_number equal to 0 (zero) when running sp_helpdevice.


Additional query words: Windows NT
Keywords : kbprg SSrvDoc_Err SSrvTran_SQL SSrvWinNT
Version : 4.2 | 4.2
Platform : OS/2 WINDOWS
Issue type : kbdocerr


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 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.