I use maintenance plans to backup my databases and perform a few other regular maintenance tasks. As you know, maintenance plans are nothing more than SSIS packages.
I'd like to use the same maintenance plans on many database servers (I administer about 50) without modification. One thing I've never figured out though is how to set the local connection property for a maintenance plan / ssis package at run time. Is this
possible? Id like to do something like "select @@servername" to set the local connection property for the MP. I'd also like to put the same value into the subject of the notification tasks if a task fails.
What I've done in the past when I deploy MPs on a new server is use a text editor to edit the xml files generated when I built the project in BIDS and change the server name manually, then deploy the modified packages via the deployment utility. I think there must be a better way where the local connection property gets set automatically.
Many of my servers are clustered and/or use named instances so I can't just use "(local)".
TIA
Chuck