Microsoft SQL Server 2005数据库镜像语句

发表于:2009-10-15来源:作者:点击数: 标签:数据库SQLsqlSqlSERVER
Microsoft SQL Server 2005数据库镜像语句  SQL Server 数据库

 

关键字:SQL Server 2005 镜像

 

  Microsoft SQL Server 2005数据库镜像语句:

 

  SERVER 1

 

  CREATE ENDPOINT DbMirroring

 

  STATE=STARTED

 

  AS TCP(LISTENER_PORT=5023)

 

  FOR DATABASE_MIRRORING(ROLE=PARTNER,ENCRYPTION=SUPPORTED)

 

  ALTER DATABASE AdventureWorks SET PARTNER='TCP://192.168.5.106:5022'

 

  SERVER 2

 

  CREATE ENDPOINT DbMirroring

 

  STATE=STARTED

 

  AS TCP(LISTENER_PORT=5022)

 

 

原文转自:http://www.ltesting.net