create database Test
on primary
(
name=’Test_data
filename=’d:Test_data
)
log on
(
name=’Test_data
filename=’d:Test_data
)
create table Test
insert into Test
backup database Test to disk=’d:Test
alter database Test
add file
(
name=’file’
filename=’d:test
SIZE =
)
backup log Test to disk=’d:Test_log
restore database Test from disk=’d:Test
restore Log Test from disk=’d:Test_log
restore Log Test from disk=’d:Test_log
From:http://tw.wingwit.com/Article/program/SQLServer/201311/22310.html