question

subbarajuvv avatar image
subbarajuvv asked

Registry key in sql server2005

How to keep my application data written registry keys will be available to other nodes in a cluster when they become online in sql server2005? (I need to update registry keys to standby server when fail over occurs)

sql-server-2005administrationcluster
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image
Matt Whitfield answered

I'm not sure how writing registry keys from an application has much to do with SQL Server, seeing as you don't really provide any information. However, you should be using the cluster registry:

http://msdn.microsoft.com/en-us/library/aa369128(VS.85).aspx

However, it's pretty clear that MS don't really want you using the cluster registry, so it might be worth trying to explain more about what you want and why. It seems to me that the best place to store information would be the database.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blackhawk-17 avatar image
Blackhawk-17 answered

You could create routines that keep the database and Registry synchronized. They would be very specific to your environment and application. The basic process logic could follow along these lines:

  1. Have SQL parse the Registry for the application every 10 minutes, every hour or once a day\week\month, depending on your application's volatility, and store the information in a dB.

  2. On SQL startup have a routine that writes the info stored in the dB into the Registry.

This would have your now active node's Registry holding the last known state from the previous node.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.