Home  >  Article  >  Database  >  SQLServer2005日志传送常见的几个问题

SQLServer2005日志传送常见的几个问题

WBOY
WBOYOriginal
2016-06-07 15:18:451278browse

1、STANDBY 只读方式还原数据库:[备份数据库服务器]将完全备份文件复制到备份数据库服务器上,并以STANDBY的方式进行恢复。 SQL语句: RESTORE DATABASE [CNBlogsJob] FROM DISK = N'F:\FullBackup\CNBlogsJob.bak' WITH FILE = 1, MOVE N'CNBlogsJob' TO N

1、STANDBY 只读方式还原数据库:[备份数据库服务器]将完全备份文件复制到备份数据库服务器上,并以STANDBY的方式进行恢复 。

SQL语句:

RESTORE DATABASE [CNBlogsJob] 
FROM  DISK = N'F:\FullBackup\CNBlogsJob.bak' WITH FILE = 1,  
MOVE N'CNBlogsJob' TO N'D:\Data\CNBlogsJob.mdf',  
MOVE N'CNBlogsJob_log' TO N'E:\Logs\CNBlogsJob.LDF',  
STANDBY = N'F:\Standby\ROLLBACK_UNDO_CNBlogsJob.BAK', NOUNLOAD, STATS = 10
GO

Microsoft SQL Server Management Studio:

SQLServer2005日志传送常见的几个问题

SQLServer2005日志传送常见的几个问题

SQLServer2005日志传送常见的几个问题

SQLServer2005日志传送常见的几个问题

 

2、设置代理权限:[备份数据库服务器]创建一个普通的Windows用户帐户(比如logshipper),将该用户加入到以SQLServerSQLAgentUser开头的组(未验证是否可以不加),并将该用户设置为SQL Server Agent的运行帐户。

SQLServer2005日志传送常见的几个问题

 

SQLServer2005日志传送常见的几个问题

 

SQLServer2005日志传送常见的几个问题

 

  

 

 

 

 

 

SQL_Server_2005高可用性之日志传送.zip

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Oracle – Oracle用户管理Next article:oracle11g