Article ID: 187824
Article Last Modified on 11/6/2003
DISK INIT
NAME = 'TEMPDEVICE',
PHYSNAME = 'C:\MSSQL\DATA\TEMPDEV.DAT',
SIZE = 51200,
VDEVNO = 250
NOTE: This example creates a 100-MB device for tempdb. You can adjust
the SIZE option as desired.
sp_configure 'allow updates', 1
go
reconfigure with override
go
sp_configure 'tempdb in ram', 2
go
sp_diskdefault master, defaultoff
go
sp_diskdefault tempdevice, defaulton
go
reconfigure with override
go
NOTES:
sp_configure 'tempdb in ram', 0
go
reconfigure with override
go
ALTER DATABASE tempdb
ON TEMPDEVICE = 8
This statement increases the size of tempdb by 8 MB, for a total size of
10 MB. For more information on the ALTER DATABASE statement, see the
"ALTER DATABASE Statement" topic in the SQL Server Books Online.
115050
: INF: When to Use Tempdb In RAM
158586
: PRB: 'Temp_db' Device Causes Problems Starting SQL Server
141183
: PRB: Log Segment Moved to Device Incorrectly if Tempdb Expanded
110139
: INF: Causes of SQL Transaction Log Filling Up
Additional query words: dev temp db
Keywords: kbhowto kbinfo KB187824