T-SQL语句之创建、修改、删除数据库

1、使用CREATE database创建数据库test
CREATE DATABASE test
 ON  PRIMARY
( NAME = 'test',
FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL\data\test.mdf',
SIZE=10240KB,
MAXSIZE = UNLIMITED,
FILEGROWTH = 10%)
 LOG ON
( NAME='test_log',
FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL\data\test_log.ldf',
SIZE=1024KB,
MAXSIZE = 5120KB,
FILEGROWTH = 1024KB )
GO

你可能感兴趣的:(sql,数据库,职场,t-sql,休闲)