Article ID: 555911 - Last Review: April 5, 2007 - Revision: 1.0 How to delete orphaned server/s records from "OnePoint" Database
SUMMARYThe following knowledgebase will help you to delete orphaned server/s records from "OnePoint" Database SYMPTOMSThe MOM (Microsoft Operation Management) "OnePoint" database may contain a old records of orphaned server/s that was manage by MOM (Microsoft Operation Management) server. CAUSEUnsuccessful MOM (Microsoft Operation Management) Agent uninstall or/and manually disconnect server/s from the network can lead to orphaned server/s records. RESOLUTIONUse the following SQL statement to delete orphaned server records from "OnePoint" Database: Start Of Script -------------------------------------------------------------------------------------------------------- Use OnePoint Go Declare @computerID uniqueidentifier Set @computerID = (Select idComputer from Computer Where name = 'Put your machine name in here' AND domain = 'Workgroup') -- Perf Data -- Delete From SampledNumericData WHERE idSampledNumericDataSource IN (Select idSampledNumericDataSource From SampledNumericDataSource where idComputer = @computerID) Delete From SampledNumericDataSource WHERE idComputer = @computerID -- Events -- Delete From EventParam WHERE idEvent IN (Select idEvent FROM Event WHERE idloggedon=@ComputerID) Delete From EventConsolidated WHERE idEvent IN (Select idEvent FROM Event WHERE idLoggedOn=@ComputerID) Delete From Event WHERE idGeneratedBy = @computerID -- Alerts -- Delete From alertEventSuppression WHERE idAlert IN (Select idAlert FROM alert WHERE idComputer=@ComputerID) Delete From AlertHistory WHERE idAlert IN (Select idAlert FROM alert WHERE idComputer=@ComputerID) Delete From alert WHERE idComputer=@ComputerID -- Computer -- Delete From computerattribute WHERE idComputer=@ComputerID Delete From ComputerResponsibility WHERE idConfigManager=@ComputerID Delete From ComputerToComputerRule WHERE idCOmputer=@ComputerID Delete From Configuration WHERE idComputer=@ComputerID Delete From computer WHERE idComputer = @computerID -------------------------------------------------------------------------------------------------------- End Of Script MORE INFORMATION
COMMUNITY SOLUTIONS CONTENT DISCLAIMERMICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES. | Other Resources Other Support Sites
CommunityArticle Translations |






















Back to the top