–创建一个名为salEnterpriseInfo的数据库
create database salEnterpriseInfo
on
(name=salEnterpriseInfo_dat,filename='C:/Program Files/Microsoft SQL Server/MSSQL/Data/salEnterprise.mdf',size=1MB,maxsize=5MB,filegrowth=1MB)
log on
(name=salEnterpriseInfo_log,filename='C:/Program Files/Microsoft SQL Server/MSSQL/Data/salEnterprise.ldf',size=1MB,maxsize=5MB,filegrowth=1MB)
–创建一个用户信息名为userInfo的表
create table userInfo(
userName char(20) not null,
userPass char(20) not null,
userSid char(10) not null
)