1. Have the SQL task store the server name of the principle in a variable
2. Set up a OLEDB connection to the current principle database. Rename this to Principle.
3. In the properties for this connection, use an expression to set the ServerName with the variable from 1.
You can then use the "Principle" connection throughout your package, and it will change dynamically when the witness server publishes the change.
Tom
Life: it twists and turns like a twisty turny thing