IF EXISTS (SELECT * FROM sysobjects WHERE type IN ('IF', 'TF') AND name = 'Microsoft_SystemCenter_VirtualMachineManager_Function_HostResourcesPerformanceData')
BEGIN
DROP FUNCTION dbo.[Microsoft_SystemCenter_VirtualMachineManager_Function_HostResourcesPerformanceData]
END
GO