Sql server 2005--ALTER DATABASE 修改studb数据库的设置
发布网友
发布时间:2022-04-13 22:59
我来回答
共2个回答
热心网友
时间:2022-04-14 00:28
USE MASTER
GO
ALTER DATABASE studb MODIFY FILE
(
NAME=STU_DT,
SIZE=5MB,
MAXSIZE=20MB,
FILEGROWTH=1MB
)
GO
ALTER DATABASE studb ADD LOG FILE
(
NAME=studb_log2,
FILENAME='C:\STUDB_LOG2.LDF',
SIZE=5MB,
MAXSIZE=10MB
)
GO
热心网友
时间:2022-04-14 01:46
ALTER DATABASE studb
MODIFY FILE (NAME=studb_data, SIZE = 5MB, MAXSIZE = 20MB, FILEGROWTH = 1MB)
ALTER DATABASE studb
ADD LOG FILE(NAME = studb_log2, FILENAME=studb_log2.ldf, SIZE = 5MB, MAXSIZE = 10MB)