Created
February 5, 2015 17:20
-
-
Save dalehhirt/af66e3c381c482710724 to your computer and use it in GitHub Desktop.
Update the DataWarehouse global setting in the OperationsManager database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
mt.TypeName, | |
mtp.ManagedTypePropertyName, | |
gs.SettingValue | |
from GlobalSettings gs | |
join ManagedTypeProperty mtp | |
on gs.ManagedTypePropertyId = mtp.ManagedTypePropertyId | |
join ManagedType mt | |
on mtp.ManagedTypeId = mt.ManagedTypeId | |
where mt.TypeName = 'Microsoft.SystemCenter.DataWarehouse' | |
-- update DW DB Server location | |
update gs | |
set SettingValue = 'scomsql3' | |
from GlobalSettings gs | |
join ManagedTypeProperty mtp | |
on gs.ManagedTypePropertyId = mtp.ManagedTypePropertyId | |
join ManagedType mt | |
on mtp.ManagedTypeId = mt.ManagedTypeId | |
where | |
mt.TypeName = 'Microsoft.SystemCenter.DataWarehouse' and | |
mtp.ManagedTypePropertyName = 'MainDatabaseServerName' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment