tempdb是临时库
tempdb可以alter的。
一般要根据你使用临时表的大小而定,我们有过1G的tempdb。
tempdb的数据不会影响其他的数据库,他的作用一般用于存储过程存临时表。
修改语句:
Alter database tempdb on master=32 或
alter database tempdb on 其它设备名=32
一般32M足够了
(如果要对大量数据进行汇总运算则需要更大的)
问题描述如下:Can't allocate space for object 'temp worktable' in database 'tempdb' because 'system' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.