| 订阅 | 在线投稿
分享
 
 
 

Microsoft SQL Server 2005数据库镜像语句

2008-07-18 06:17:35 编辑來源:互联网 国际版 评论
 
 
本文为【Microsoft SQL Server 2005数据库镜像语句】的汉字拼音对照版显示拼音
  Microsoft SQL Server 2005shujukujingxiangyuju:

  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)

  FOR DATABASE_MIRRORING(ROLE=PARTNER,ENCRYPTION=SUPPORTED)

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

  jianzhengfuwuqi

  CREATE ENDPOINT DbMirroring

  STATE=STARTED

  AS TCP(LISTENER_PORT=5033)

  FOR DATABASE_MIRRORING(ROLE=WITNESS,ENCRYPTION=SUPPORTED)

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

  zhixingxiamiandedaimajiukeyijiangjingxiangfuwuqisheweizhutifuwuqizhutifuwuqishezhiweijingxiangfuwuqi:

  USE MASTER

  Go

  ALTER DATABASE AdventureWorks SET PARTNER FAILOVER

  Go原文
 
 
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) FOR DATABASE_MIRRORING(ROLE=PARTNER,ENCRYPTION=SUPPORTED) ALTER DATABASE AdventureWorks SET PARTNER='TCP://192.168.5.106:5023' 见证服务器 CREATE ENDPOINT DbMirroring STATE=STARTED AS TCP(LISTENER_PORT=5033) FOR DATABASE_MIRRORING(ROLE=WITNESS,ENCRYPTION=SUPPORTED) ALTER DATABASE AdventureWorks SET PARTNER='TCP://192.168.5.106:5033' 执行下面的代码就可以将镜像服务器设为主体服务器,主体服务器设置为镜像服务器: USE MASTER Go ALTER DATABASE AdventureWorks SET PARTNER FAILOVER Go
󰈣󰈤
 
 
>>返回首页<<
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 
 热帖排行
 
 
王朝网络微信公众号
微信扫码关注本站公众号wangchaonetcn
 
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
©2005- 王朝网络 版权所有