siso

SQL Server数据恢复

11:47:00 insert

 

create table Student(id int ,name nvarchar(50))
insert into Student(id,Name)
select 1,\'a\'
union all
select 2,\'b\'
union all
select 3,\'c\'
union all
select 4,\'d\'

 

11:49:00 drop table

Drop table Student


use [master]
BACKUP LOG [Test] TO disk= N\'f:\Test_Log.bak\' WITH NORECOVERY

RESTORE DATABASE [Test] FROM DISK = N\'f:\Test_Full.bak\' WITH NORECOVERY, REPLACE --使用之前的完整备份

RESTORE LOG [Test] FROM DISK = N\'f:\Test_Log.bak\' WITH STOPAT = N\'2014-11-12 11:21:05\' , RECOVERY

分类:

技术点:

相关文章:

  • 2021-11-04
  • 2021-10-16
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-12-05
  • 2021-12-14
猜你喜欢
  • 2021-11-14
  • 2021-09-25
  • 2021-11-09
  • 2022-01-19
  • 2021-12-05
  • 2021-06-03
相关资源
相似解决方案