DISK INIT Statement

SQL Server 6.5 supports the use of raw partitions for creating devices with the DISK INIT statement. Raw partitions are disk partitions that have not been formatted with a Windows NT file system, such as FAT and NTFS. In some cases, using devices created on raw partitions can yield a slight performance gain over NTFS or FAT. However, for most installations the preferred method is to use devices on NTFS or FAT partitions.

Syntax

DISK INIT
    NAME = 'logical_name',
    PHYSNAME = 'physical_name',
    VDEVNO = virtual_device_number,
    SIZE = number_of_2K_block
    [, VSTART = virtual_address]

where

NAME
Is the logical name of the database device.
PHYSNAME
Is the drive letter, path, and filename of the database device. To create a device on a raw partition, use only the partition drive letter for the physname parameter in the DISK INIT statement.
VDEVNO
Is the virtual device number.
SIZE
Specifies the size of the database in 2K blocks.
VSTART
Is the starting virtual address.

Example

This example creates a 200 MB device named Inventory_Dev on the raw partition corresponding to the G: drive.

DISK INIT
NAME = 'Inventory_Dev',
PHYSNAME = 'G:',
VDEVNO = 16,
SIZE = 102400
  

Remarks

There are several limitations to consider when using raw partitions: