Tuesday, December 14, 2010

creating a database

create database student
on primary
(
    name='p_data',
    filename='d:\sql\p_data.mdf',
    size=10mb,
    maxsize=20mb,
    filegrowth=2mb
)

log on
(
    name='p2_log',
    filename='d:\sql\p2_log.ldf',
    size=12mb,
    maxsize=20mb,
    filegrowth=3mb
)

alter database  ss
add file
(
    name='ndf7_data',
    filename='d:\sql\s\ndf7_data.ldf',
    size=11mb,
    maxsize=21mb,
    filegrowth=3mb
),
(
    name='ndf6_data',
    filename='d:\sql\s\ndf6_data.ldf',
    size=11mb,
    maxsize=21mb,
    filegrowth=3mb
)
go

1 comment:

sql server index

sql index An index is an internal table structure that sql server uses to provide quick access to rows of a table based on the values...