Ajay 的个人资料AJ's Blog日志列表 工具 帮助
1月27日

How to switch MCMS databases programmatically

Stefan has come up with a great hack to switch MCMS Databases, this will be great when you are working with multiple test databases!
 
via Stefan:
 

Today I received the question if it is possible to script the actions of the DCA when changing the MCMS database. This can be extremly useful in developer environments where users develop against different databases.

Actually the DCA cannot be scripted but it is possible to backup and restore the configuration settings the DCA does in the registry. To ensure that no side effects show up (especially with MCMS node cache coming out of sync) it is require to restart all MCMS services while changing the database configuration settings.

The following steps will do the job:

  1. You need to manually configure the database using the DCA.
  2. Then export the following registry key into a .reg file:
    HKEY_LOCAL_MACHINE\SOFTWARE\NCompass\Resolution Content Server\Configuration\0\Local\Database
  3. You need to repeat this for every database to get a reg file for every database configuration (e.g. DB1.reg, DB2.reg, ...)

To switch to another database you now need to do the following:

  • IISRESET /STOP
  • NET STOP AESecurityService
  • REGEDIT /S DBx.reg                              <--- here you need to pass in the registry file for the desired database configuration.
  • NET START AESecurityService
  • IISRESET /START

评论 (2)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

没有名字发表:

http://www.topbattery.com.au/acer/batefl50l6c40-battery.htm Battery For Aspire 5030 5050 5500 5550 5570 5580
http://www.topbattery.com.au/acer/btp-550.htm acer btp-550p btp-550 bat30n3l batby27l
http://www.topbattery.com.au/acer/btp-agd1.htm acer btp-63d1 btp-agd1 3020 3610
http://www.topbattery.com.au/acer/lcbtp03003.htm New battery fit Acer LIP-4084QUPC SQU-401 5000
http://www.topbattery.com.au/acer/tm3200e.htm laptop battery for 3UR18650F-3-QC151 tm3200
http://www.topbattery.com.au/acer/tm4200.htm Battery ACER BATBL50L6 Travelmate 4200 4203 4230 4260 4280
http://www.topbattery.com.au/acer/um08a71.htm Black Battery for Acer Aspire One UM08A71 UM08A72 UM08A73 NEW
http://www.topbattery.com.au/acer/um08a72.htm Blue Battery for Acer Aspire One UM08B71 UM08B72 UM08B73 NEW
http://www.topbattery.com.au/acer/um08a73.htm white Battery for Acer Aspire One ZG5 NEW
http://www.topbattery.com.au/acer/um08a74.htm Black Battery for Aspire One A110 NEW
http://www.topbattery.com.au/acer/um08b72.htm Blue Battery for Acer Aspire One 150L NEW
http://www.topbattery.com.au/acer/um08b73.htm white Battery for Acer Aspire One 150X NEW
http://www.topbattery.com.au/apple/a1022.htm apple powerbook g4 a1022 a1079 m9324
http://www.topbattery.com.au/apple/a1078.htm apple a1045 a1078 e68043 m9325 m9756
http://www.topbattery.com.au/apple/a1175.htm apple A1175 Macbook Pro 15-4
http://www.topbattery.com.au/apple/a1185.htm NEW Hi-Cap 5500mAh Battery for MacBook 13 A1185 WHITE
http://www.topbattery.com.au/apple/a1185-2.htm NEW Hi-Cap 5500mAh Battery for MacBook 13 A1185 black
http://www.topbattery.com.au/asus/90-n901b1000.htm asus W1 W1000 A42-W1 W1G W1Ga
http://www.topbattery.com.au/asus/a42-w1.htm asus W1 W1000 A42-W1 W1G W1Ga
http://www.topbattery.com.au/asus/90-nca1b2000.htm asus A42-W3 W3A W3N W3V W3000 W3000A grey
http://www.topbattery.com.au/asus/a3000.htm asus a42-a3 a3000 z9100 a3l a3n
http://www.topbattery.com.au/asus/a31-s5.htm ASUS A31-S5 A32-S5 S52N S5000 S5200N S5N
http://www.topbattery.com.au/asus/a31-s5-2.htm ASUS A31-S5 A32-S5 S52N S5000 S5200N S5N
http://www.topbattery.com.au/asus/a42-a2-battery.htm A42-A2 Battery to ASUS A2C A2D A2000 A2500H A2S A2K Z80
http://www.topbattery.com.au/asus/a42-a4.htm asus a4 a4d a4g a4k a4l a4s a4000 a42-a4
http://www.topbattery.com.au/asus/a42-v6.htm New Battery fit Asus A42-V6 VX1 V6 V6V V6000 V6000V
http://www.topbattery.com.au/asus/m3000.htm Battery For ASUS M3 M3N M3NP M3000 M3000N M3000NP 4S2P black
http://www.topbattery.com.au/asus/m6n.htm asus a42-m6 m6n m67 m68n m6000
http://www.topbattery.com.au/asus/m6-2.htm asus a42-m6 m6n m67 m68n m6000
http://www.topbattery.com.au/clevo/m540.htm clevo m540 87-M54GS-4J4
http://www.topbattery.com.au/compaq/116314-001.htm Battery fits COMPAQ Presario 1200 1600 1800 116314-001
http://www.topbattery.com.au/compaq/191169-001.htm New battery fit Compaq NC6000 NW8000 V1000 NC8000 NX5000
http://www.topbattery.com.au/compaq/229783-001.htm Battery fits COMPAQ EVO N600 N600C N610C N610 N620C
http://www.topbattery.com.au/compaq/372114-001.htm Battery for HP/COMPAQ NX1050 NX9000 NX9005 NX901
http://www.topbattery.com.au/compaq/nc4200-battery.htm Battery for NC4200 NC4400 TC4200 383510-001
http://www.topbattery.com.au/dell/0u003.htm NEW Laptop Battery For Dell Latitude D400 9T119 312-009
http://www.topbattery.com.au/dell/1525.htm laptop battery for dell Dell Inspiron 1525 1526
http://www.topbattery.com.au/dell/310-5351-battery.htm New GENUINE Dell Latitude D810 M70 Y4367 Battery
http://www.topbattery.com.au/dell/312-0079.htm NEW Battery fit Dell Inspiron 5150 5160 1100 1150 5100
http://www.topbattery.com.au/dell/312-0079-2.htm NEW Battery fit Dell Inspiron 5150 5160 1100 1150 5100
http://www.topbattery.com.au/dell/312-0335.htm New GENUINE 8-Cell Dell Inspiron 1000 1200 2200 Battery
http://www.topbattery.com.au/dell/312-0451.htm New Dell Inspiron M140 640m 630m E1405
http://www.topbattery.com.au/dell/312-0567.htm New battery fit Dell XPS M1330 1330 PU556 WR050
http://www.topbattery.com.au/dell/6400.htm NEW DELL INSPIRON 6400 E1505 1501 85 WHr 9 BATTERY
http://www.topbattery.com.au/dell/e1505.htm NEW DELL INSPIRON 6400 E1505 1501 85 WHr 9 BATTERY
6 月 18 日
没有名字发表:
http://www.batteryfast.com/asus/s5000a.htm asus s5000a battery ,
http://www.batteryfast.com/asus/a32-s5-white.htm asus a32-s5 white battery ,
http://www.batteryfast.com/asus/s5000-white.htm asus s5000 white battery ,
http://www.batteryfast.com/asus/m5000-white.htm asus m5000 white battery ,
http://www.batteryfast.com/asus/a32-f3.htm asus a32-f3 battery ,
http://www.batteryfast.com/asus/a42-a2.htm asus a42-a2 battery ,
http://www.batteryfast.com/asus/a2000.htm asus a2000 battery ,
http://www.batteryfast.com/asus/a2500h.htm asus a2500h battery ,
http://www.batteryfast.com/asus/a4000.htm asus a4000 battery ,
http://www.batteryfast.com/asus/a42-a4.htm asus a42-a4 battery ,
http://www.batteryfast.com/asus/a4.htm asus a4 battery ,
http://www.batteryfast.com/asus/90-naa1b1000.htm asus 90-naa1b1000 battery ,
http://www.batteryfast.com/asus/s2691061.htm asus s2691061 battery ,
http://www.batteryfast.com/asus/a42-v6.htm asus a42-v6 battery ,
http://www.batteryfast.com/asus/m3000-silver.htm asus m3000 silver battery ,
http://www.batteryfast.com/asus/m3n-silver.htm asus m3n silver battery ,
http://www.batteryfast.com/asus/a42-m6.htm asus a42-m6 battery ,
http://www.batteryfast.com/asus/m6n.htm asus m6n battery ,
http://www.batteryfast.com/asus/m67.htm asus m67 battery ,
http://www.batteryfast.com/asus/m67n.htm asus m67n battery ,
http://www.batteryfast.com/asus/m68.htm asus m68 battery ,
http://www.batteryfast.com/asus/m68n.htm asus m68n battery ,
http://www.batteryfast.com/asus/m6000.htm asus m6000 battery ,
http://www.batteryfast.com/asus/a42-m6-silver.htm asus a42-m6 silver battery ,
http://www.batteryfast.com/asus/m6000-silver.htm asus m6000 silver battery ,
http://www.batteryfast.com/asus/m6-silver.htm asus m6 silver battery ,
http://www.batteryfast.com/clevo/m540.htm clevo m540 battery ,
http://www.batteryfast.com/clevo/mobinote-m-54g.htm clevo mobinote m 54g battery ,
http://www.batteryfast.com/clevo/mobinote-m54v.htm clevo mobinote m54v battery ,
http://www.batteryfast.com/clevo/mobinote-m-55g.htm clevo mobinote m 55g battery ,
http://www.batteryfast.com/clevo/mobinote-m55v.htm clevo mobinote m55v battery ,
http://www.batteryfast.com/clevo/mobinote-m-540g.htm clevo mobinote m 540g battery ,
http://www.batteryfast.com/clevo/mobinote-m540v.htm clevo mobinote m540v battery ,
http://www.batteryfast.com/clevo/mobinote-m-541g.htm clevo mobinote m 541g battery ,
http://www.batteryfast.com/clevo/mobinote-m541v.htm clevo mobinote m541v battery ,
http://www.batteryfast.com/clevo/mobinote-m-545g.htm clevo mobinote m 545g battery ,
http://www.batteryfast.com/clevo/mobinote-m545v.htm clevo mobinote m545v battery ,
http://www.batteryfast.com/clevo/mobinote-m-550g.htm clevo mobinote m 550g battery ,
http://www.batteryfast.com/clevo/mobinote-m550v.htm clevo mobinote m550v battery ,
http://www.batteryfast.com/clevo/mobinote-m-551g.htm clevo mobinote m 551g battery ,
http://www.batteryfast.com/clevo/mobinote-m551v.htm clevo mobinote m551v battery ,
http://www.batteryfast.com/clevo/mobinote-m-555g.htm clevo mobinote m 555g battery ,
http://www.batteryfast.com/clevo/mobinote-m555v-serie.htm clevo mobinote m555v serie battery ,
http://www.batteryfast.com/compaq/presario-1200.htm compaq presario 1200 battery ,
6 月 18 日

引用通告 (8)

此日志的引用通告 URL 是:
http://ajaymistry.spaces.live.com/blog/cns!71D39DAF1A64D1BB!480.trak
引用此项的网络日志