master..xp_cmdshell 'md d:\sqlBak1'
go
master..xp_cmdshell 'net share sqlBak=d:\sqlBak1'
go
backup database hjx to disk='\\192.168.100.18\SqlBak\hjx20090119.bak'
backup database hjx to disk='\\192.168.100.18\SqlBak\hjx20090119.bak' WITH DIFFERENTIAL
backup log hjx to disk='d:\sqlBak1\log.bak'
go
--master..xp_cmdshell 'net share SqlBak /del /y'
--restore database hjx from disk='\\192.168.100.18\SqlBak\hjx20090119.bak'
--restore database hjx from disk='\\192.168.100.18\SqlBak\hjx20090119.bak' WITH NORECOVERY
restore log hjx from disk='\\192.168.100.18\sqlBak\log.bak'