时间:2021-07-01 10:21:17 帮助过:6人阅读
create database testdb1 on( name=testdb1, filename=‘d:\testdb1.mdf‘, size=10, maxsize=50, filegrowth=1 ) log on( name=testdb1_log, filename=‘d:\testdb1_log.ldf‘, size=1, maxsize=unlimited, filegrowth=10% ), ( name=testdb2_log, filename=‘d:\testdb2_log.ldf‘, size=1, maxsize=unlimited, filegrowth=10% ) goView Code
查看数据库信息
execute sp_helpdb testdb1
或 sp_helpdb
sp_helpdb testdb1 alter database testdb1 add file( name=testdb1ndf1, filename=‘d:\testdb1ndf1.ndf‘, size=5mb, maxsize=10mb, filegrowth=6mb ) to filegroup mygroup alter database testdb1 add log file( name=testdb3_log, filename=‘d:\testdb3.ldf‘, size=5mb, maxsize=10mb, filegrowth=10% ) alter database testdb1 modify file(name=testdb1,size=21mb) go alter database testdb1 modify file (name=testdb_log,size=21mb) alter database testdb1 add filegroup mygroup go sp_helpfilegroup go sp_helpdb testdb1 alter database testdb1 remove file testdb3_logView Code
filegroup用法 http://blog.csdn.net/kevinsqlserver/article/details/8573312
设置数据库只可以读
属性→选项→状态→数据库只读 true
创建数据库
标签:分享 size limited class lte sdn remove tail isp