Allows you to expand a device. You can use DISK RESIZE on any database device, including the MASTER device.
DISK RESIZE
NAME = logical_device_name,
SIZE = final_size
where
The DISK RESIZE statement expands a device; it does not shrink devices or alter any databases that reside on that device. DISK RESIZE cannot be used for dump devices or the TEMPDB device when tempdb is in RAM.
DISK RESIZE permission defaults to the system administrator and is not transferable.
This example increases the size of DEVICE1 from it's initial size of 12 MB to 20 MB.
DISK RESIZE NAME = 'DEVICE1', SIZE = 10240
This example increases the MASTER device from its initial size of 25 MB to 32 MB.
DISK RESIZE NAME = 'MASTER', SIZE = 16384
ALTER DATABASE | DISK INIT |
CREATE DATABASE | sp_addumpdevice |
DBCC | sp_helpdevice |