MSDN DBCC SHRINK FILE 指令中 'default size' 的含义是什么?
What is the meaning of 'default size' from MSDN DBCC SHRINK FILE instruction?
来自 MSDN 的说明
https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkfile-transact-sql
You can reduce the default size of an empty file by using DBCC
SHRINKFILE target_size. For example, if you create a 5-MB file and
then shrink the file to 3 MB while the file is still empty, the
default file size is set to 3 MB. This applies only to empty files
that have never contained data.
除了模型数据库的文件大小,我从未见过名为 'Default File Size' 的术语,它们是指数据文件的初始大小,还是我不知道的其他内容?
是的,这里的默认大小是指文件创建时的大小。可以在文档中进一步查看
The default size is the size specified when the file was created.
来自 MSDN 的说明
https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkfile-transact-sql
You can reduce the default size of an empty file by using DBCC SHRINKFILE target_size. For example, if you create a 5-MB file and then shrink the file to 3 MB while the file is still empty, the default file size is set to 3 MB. This applies only to empty files that have never contained data.
除了模型数据库的文件大小,我从未见过名为 'Default File Size' 的术语,它们是指数据文件的初始大小,还是我不知道的其他内容?
是的,这里的默认大小是指文件创建时的大小。可以在文档中进一步查看
The default size is the size specified when the file was created.