<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx</link><description>Last updated 11-9-09 &amp;#160; &amp;#160; Large Table query . &amp;#160; (I am putting this at the top, because I use it so much – to find out what is taking up so much space in the OpsDB or DW) SELECT so.name, 8 * Sum(CASE WHEN si.indid IN (0, 1) THEN si.reserved</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Joe Sack&amp;#8217;s SQL Blog - Useful SQL queries for Operations Manager 2007</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#2199948</link><pubDate>Thu, 18 Oct 2007 22:27:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2199948</guid><dc:creator>Joe Sack’s SQL Blog - Useful SQL queries for Operations Manager 2007</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://joesack.com/WordPress/?p=87"&gt;http://joesack.com/WordPress/?p=87&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Grooming process in the Operations Database</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#2881424</link><pubDate>Wed, 13 Feb 2008 05:51:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2881424</guid><dc:creator>Kevin Holman's OpsMgr Blog</dc:creator><description>&lt;p&gt;This is a continuation of my other post, on general alert grooming: How grooming and auto-resolution&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3014713</link><pubDate>Wed, 19 Mar 2008 05:25:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3014713</guid><dc:creator>colinhodges</dc:creator><description>&lt;p&gt;How 'bout a query that show space used by type, being alert, event, perf, state for the dw?&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3014718</link><pubDate>Wed, 19 Mar 2008 05:28:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3014718</guid><dc:creator>kevinhol</dc:creator><description>&lt;p&gt;You can get space used by type by using the large table query.... &amp;nbsp;which is why I include and use that one all the time. &amp;nbsp;It could be made prettier... but it works. &amp;nbsp;There is also a report in SQL 2005 SP2 for reporting on table by size.... &amp;nbsp;which will show you this. &amp;nbsp;The tables are named to be fairly self explanatory.&lt;/p&gt;
</description></item><item><title>OpsMgr 2007: Troubleshooting Console Performance in large environments</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3090145</link><pubDate>Thu, 17 Jul 2008 15:50:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3090145</guid><dc:creator>SMS&amp;MOM</dc:creator><description>&lt;p&gt;I've been getting a few questions lately about slow performance with the console so I thought a post&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3156614</link><pubDate>Thu, 20 Nov 2008 02:11:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3156614</guid><dc:creator>sna</dc:creator><description>&lt;p&gt;Hi - This is a great post.&lt;/p&gt;
&lt;p&gt;I was wondering if you could help me with a question.&lt;/p&gt;
&lt;p&gt;In the view “PerformanceDataAllView” in the “OperationsManager” database, what do the columns “TimeSampled” and “TimeAdded” mean?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sna&lt;/p&gt;
</description></item><item><title>Availability Query</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3170972</link><pubDate>Thu, 18 Dec 2008 23:29:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3170972</guid><dc:creator>Availability Query</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you post a query one would run to get availability of a server for a certain time period? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;MB&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3176551</link><pubDate>Mon, 05 Jan 2009 17:18:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3176551</guid><dc:creator>paul keely</dc:creator><description>&lt;p&gt;what another fantastic resourse!!&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3203848</link><pubDate>Wed, 18 Feb 2009 08:10:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3203848</guid><dc:creator>npagonor</dc:creator><description>&lt;p&gt;Could you help with a query to retrieve Dell hardware with critical alert state = New.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3222171</link><pubDate>Fri, 03 Apr 2009 23:56:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3222171</guid><dc:creator>Orhan</dc:creator><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am trying to create report something like this,&lt;/p&gt;
&lt;p&gt;User Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Number of Closed Alerts &lt;/p&gt;
&lt;p&gt;operatorname1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 245&lt;/p&gt;
&lt;p&gt;Operatorname2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 165&lt;/p&gt;
&lt;p&gt;I am querying the OperationManager Database my query is, &lt;/p&gt;
&lt;p&gt;SELECT &amp;nbsp; &amp;nbsp; LastModifiedBy AS 'User Name', COUNT(*) AS 'Number of Closed Alerts'&lt;/p&gt;
&lt;p&gt;FROM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AlertView&lt;/p&gt;
&lt;p&gt;WHERE &amp;nbsp; &amp;nbsp; (ResolutionState = '255')&lt;/p&gt;
&lt;p&gt;GROUP BY LastModifiedBy&lt;/p&gt;
&lt;p&gt;ORDER BY 'Number of Closed Alerts'&lt;/p&gt;
&lt;p&gt; I am confused little in the alert view table which filed should I use for the date and time parameters.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;if I just want to get the closed alert count by specific user and by specific time is that field going to be &amp;quot;TimeResolved&amp;quot; or which one?&lt;/p&gt;
&lt;p&gt;Thank you. &lt;/p&gt;
</description></item><item><title>re: Closed Alert report</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3222199</link><pubDate>Sat, 04 Apr 2009 01:58:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3222199</guid><dc:creator>kevinhol</dc:creator><description>&lt;p&gt;I already blogged on a closed alert report:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/kevinholman/archive/2008/07/21/auditing-on-alerts-from-the-data-warehouse.aspx"&gt;http://blogs.technet.com/kevinholman/archive/2008/07/21/auditing-on-alerts-from-the-data-warehouse.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Does that not work?&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3223469</link><pubDate>Tue, 07 Apr 2009 16:37:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3223469</guid><dc:creator>Orhan</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Your report works fine, but I needed to get last 7 days data which not included in your report because you are getting data from Datawarehouse by default we know Opsmgr keeps 7 days alert data in the OperationManager DB so I figured out from your query and modify it against OperationManager DB. &lt;/p&gt;
&lt;p&gt;My issue was I could not figured out which field should I for data and time parameter. I think I found out,&lt;/p&gt;
&lt;p&gt;Here is the final query I believe this is correct &amp;nbsp;&lt;/p&gt;
&lt;p&gt;SELECT &amp;nbsp; &amp;nbsp; LastModifiedBy AS 'User Name', COUNT(*) AS 'Number of Closed Alerts'&lt;/p&gt;
&lt;p&gt;FROM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AlertView&lt;/p&gt;
&lt;p&gt;WHERE &amp;nbsp; &amp;nbsp; (ResolutionState = '255') &lt;/p&gt;
&lt;p&gt;and TimeResolved between @startdate and @enddate &lt;/p&gt;
&lt;p&gt;GROUP BY LastModifiedBy&lt;/p&gt;
&lt;p&gt;ORDER BY 'Number of Closed Alerts'&lt;/p&gt;
&lt;p&gt;Now I have another issue, SQL server TimeZone&lt;/p&gt;
&lt;p&gt;SQL server time &amp;nbsp;4 hours ahead than system time when I pull data from Report manager I am not getting accurate data from database. &amp;nbsp;Do you know how can we fix this issue? &lt;/p&gt;
&lt;p&gt;Thank you. &lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3227519</link><pubDate>Fri, 17 Apr 2009 09:36:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3227519</guid><dc:creator>Pradeesh</dc:creator><description>&lt;p&gt;This a great topic&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Pradeesh&lt;/p&gt;
</description></item><item><title>Operations Manager 2007 SQL Queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3230438</link><pubDate>Sat, 25 Apr 2009 12:05:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230438</guid><dc:creator>Jonathan Almquist on Operations Manager</dc:creator><description>&lt;p&gt;I’m starting a new post here, similar to my Command Shell reference .&amp;amp;#160; This will include some useful&lt;/p&gt;
</description></item><item><title>My Operations Manager 2007 SQL Queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3230485</link><pubDate>Sat, 25 Apr 2009 18:18:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230485</guid><dc:creator>Stefan Stranger's Weblog - Manage your IT Infrastructure</dc:creator><description>&lt;p&gt;Jonathan Almquist started a blog post about Operations Manager 2007 SQL Queries . “I’m starting a new&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3253988</link><pubDate>Fri, 12 Jun 2009 15:27:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253988</guid><dc:creator>Olie</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Thanks for the post, will prove very useful.&lt;/p&gt;
&lt;p&gt;Got an issue when I run a few of the queries though. I reveive an error stating that PerformanceDataAllView is an invalid object name.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Olie&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3253989</link><pubDate>Fri, 12 Jun 2009 15:31:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253989</guid><dc:creator>Olie</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Please ignore my last post regarding PerfromanceDataAllView as I have managed to resolve the issue.&lt;/p&gt;
&lt;p&gt;Thanks again for the scripts... very handy!&lt;/p&gt;
&lt;p&gt;Olie&lt;/p&gt;
</description></item><item><title>Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3257750</link><pubDate>Tue, 23 Jun 2009 12:31:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3257750</guid><dc:creator>Srikanth</dc:creator><description>&lt;p&gt;How to get InternetInformationServices information from operations manager databse&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3270861</link><pubDate>Wed, 05 Aug 2009 17:17:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3270861</guid><dc:creator>Nayden</dc:creator><description>&lt;p&gt;Here is one I found useful (I am sure it can be modified and improved, but this one works for me). It returns the Name, Action Account Identity, Install Date, Version, Health State, Availability (the greyed out icon state when the agent is not reporting back to the MS), and the MS it reports to. Some stuff is commented out, you can include it if you want...&lt;/p&gt;
&lt;p&gt;SELECT &lt;/p&gt;
&lt;p&gt;--[MT_C].[BaseManagedEntityId] AS [Id], &lt;/p&gt;
&lt;p&gt;[MT_C].[PrincipalName] AS [Name], &lt;/p&gt;
&lt;p&gt;--[MT_C].[NetbiosDomainName], &lt;/p&gt;
&lt;p&gt;--[MT_C].[NetbiosComputerName], &lt;/p&gt;
&lt;p&gt;--[MT_C].[NetworkName], &lt;/p&gt;
&lt;p&gt;[MT_H].[ActionAccountIdentity], &lt;/p&gt;
&lt;p&gt;--[MT_H].[InstalledBy], &lt;/p&gt;
&lt;p&gt;[MT_H].[InstallTime], &lt;/p&gt;
&lt;p&gt;--[MT_H].[ProxyingEnabled], &lt;/p&gt;
&lt;p&gt;--[MT_H].[IsManuallyInstalled], &lt;/p&gt;
&lt;p&gt;--[MT_H].[ActiveDirectoryManaged], &lt;/p&gt;
&lt;p&gt;[MT_H].[Version], &lt;/p&gt;
&lt;p&gt;[S].[HealthState], &lt;/p&gt;
&lt;p&gt;CASE &lt;/p&gt;
&lt;p&gt;WHEN MAX(CAST(A.[IsAvailable] AS int)) IS NULL &lt;/p&gt;
&lt;p&gt;THEN CAST(0 AS BIT) &lt;/p&gt;
&lt;p&gt;ELSE CAST(MAX(CAST(A.[IsAvailable] AS int)) AS BIT) &lt;/p&gt;
&lt;p&gt;END &lt;/p&gt;
&lt;p&gt;AS IsAvailable, &lt;/p&gt;
&lt;p&gt;--[BME].[BaseManagedEntityId] AS [HealthServiceId], &lt;/p&gt;
&lt;p&gt;--[TME].[ManagedTypeId] AS [HealthServiceTypeId], &lt;/p&gt;
&lt;p&gt;[BME2].[DisplayName] AS [ReportingTo]&lt;/p&gt;
&lt;p&gt;--[BME2].[TopLevelHostEntityId] AS [TargetHostId], &lt;/p&gt;
&lt;p&gt;--[HSC].[RelationshipTypeId] AS [CommunicationTypeId], &lt;/p&gt;
&lt;p&gt;--[BME].[LastModified] &lt;/p&gt;
&lt;p&gt;FROM dbo.BaseManagedEntity (nolock)&lt;/p&gt;
&lt;p&gt;AS BME &amp;nbsp;&lt;/p&gt;
&lt;p&gt;INNER JOIN dbo.TypedManagedEntity AS TME &amp;nbsp; &amp;nbsp; &amp;nbsp; ON BME.[BaseManagedEntityId] = TME.[BaseManagedEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;INNER JOIN dbo.Relationship AS HSC &amp;nbsp; &amp;nbsp; &amp;nbsp; ON HSC.[SourceEntityId] = BME.[BaseManagedEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;INNER JOIN dbo.BaseManagedEntity AS BME2 &amp;nbsp; &amp;nbsp; &amp;nbsp; ON BME2.[BaseManagedEntityId] = HSC.[TargetEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;INNER JOIN dbo.MT_Computer AS MT_C &amp;nbsp; &amp;nbsp; &amp;nbsp; ON MT_C.[BaseManagedEntityId] = BME.[TopLevelHostEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;INNER JOIN dbo.MT_HealthService AS MT_H &amp;nbsp; &amp;nbsp; &amp;nbsp; ON MT_H.[BaseManagedEntityId] = BME.[BaseManagedEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;LEFT OUTER JOIN dbo.State AS S ON BME.[BaseManagedEntityId] = S.[BaseManagedEntityId]&lt;/p&gt;
&lt;p&gt;AND S.[MonitorId] = dbo.fn_ManagedTypeId_SystemHealthEntityState()&lt;/p&gt;
&lt;p&gt;LEFT OUTER JOIN dbo.Relationship AS R ON BME.[TopLevelHostEntityId] = R.[TargetEntityId] &lt;/p&gt;
&lt;p&gt;AND R.[RelationshipTypeId] = dbo.fn_ManagedTypeId_MicrosoftSystemCenterHealthServiceManagesEntity()&lt;/p&gt;
&lt;p&gt;AND R.[IsDeleted] = 0 &lt;/p&gt;
&lt;p&gt;LEFT OUTER JOIN dbo.Availability AS A ON A.[BaseManagedEntityId] = R.[SourceEntityId] &amp;nbsp;&lt;/p&gt;
&lt;p&gt;WHERE (( BME.[LastModified] &amp;gt; &amp;nbsp;'Jul 1 1999 1:24:55:063PM' ) ) &lt;/p&gt;
&lt;p&gt;AND (((TME.ManagedTypeId = '118C0F18-7A70-5F57-3A9B-EEAF1705B3FC') &lt;/p&gt;
&lt;p&gt;AND (HSC.[RelationshipTypeId] = '37848E16-37A2-B81B-DAAF-60A5A626BE93') &lt;/p&gt;
&lt;p&gt;AND (BME.[IsDeleted] = 0&lt;/p&gt;
&lt;p&gt;AND TME.[IsDeleted] = 0&lt;/p&gt;
&lt;p&gt;AND HSC.[IsDeleted] = 0)))&lt;/p&gt;
&lt;p&gt;GROUP BY BME.[BaseManagedEntityId], MT_C.[BaseManagedEntityId], MT_C.[PrincipalName], &lt;/p&gt;
&lt;p&gt;MT_C.[NetbiosDomainName], &lt;/p&gt;
&lt;p&gt;MT_C.[NetbiosComputerName], &lt;/p&gt;
&lt;p&gt;MT_C.[NetworkName], &lt;/p&gt;
&lt;p&gt;MT_H.[ActionAccountIdentity], &lt;/p&gt;
&lt;p&gt;MT_H.[InstalledBy], &lt;/p&gt;
&lt;p&gt;MT_H.[InstallTime], &lt;/p&gt;
&lt;p&gt;MT_H.[ProxyingEnabled], &lt;/p&gt;
&lt;p&gt;MT_H.[IsManuallyInstalled], &lt;/p&gt;
&lt;p&gt;MT_H.[ActiveDirectoryManaged], &lt;/p&gt;
&lt;p&gt;MT_H.[Version], &lt;/p&gt;
&lt;p&gt;S.[HealthState], &lt;/p&gt;
&lt;p&gt;TME.[ManagedTypeId], &lt;/p&gt;
&lt;p&gt;BME2.[DisplayName], &lt;/p&gt;
&lt;p&gt;BME2.[TopLevelHostEntityId], &lt;/p&gt;
&lt;p&gt;HSC.[RelationshipTypeId], &lt;/p&gt;
&lt;p&gt;BME.[LastModified]&lt;/p&gt;
&lt;p&gt;order by Name asc&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3270972</link><pubDate>Thu, 06 Aug 2009 00:32:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3270972</guid><dc:creator>mvista</dc:creator><description>&lt;p&gt;Hi Nayden, &lt;/p&gt;
&lt;p&gt;more than a great script; thank you. Any chance to add information about the fallback MS in this query? &lt;/p&gt;
&lt;p&gt;Thank your very much for such a support. &lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3273268</link><pubDate>Thu, 13 Aug 2009 23:59:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3273268</guid><dc:creator>Nayden</dc:creator><description>&lt;p&gt;Well, I am not sure whether it is possible or not - I myself am not a SQL expert... Since I could not find this info anywhere (documentation or via PowerShell) my last resort was to run a trace on the DB and reverse-engineer the query out of the thousands of lines of output. Sorry I couldn't be of more help.&lt;/p&gt;
</description></item><item><title>re: trace queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3273296</link><pubDate>Fri, 14 Aug 2009 01:24:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3273296</guid><dc:creator>kevinhol</dc:creator><description>&lt;p&gt;Dontchya hate that? &amp;nbsp;:-)&lt;/p&gt;
&lt;p&gt;I'd much rather write a new query than re-engineer someone elses and trust it.&lt;/p&gt;
&lt;p&gt;But I myself am no Tsql expert. &amp;nbsp;Most of these above that I have written are pretty basic joins from simple trables/views. &amp;nbsp;The complex ones are always something I got from someone else and just published it. &amp;nbsp;I think the most complex one I ever wrote was the Outage and Maintenance report, and I had to get some help on that one. &amp;nbsp;Dont feel bad.&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3283705</link><pubDate>Tue, 29 Sep 2009 11:26:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3283705</guid><dc:creator>kldsts</dc:creator><description>&lt;p&gt;How can i get the total no of alerts raised for a specifically OS related &amp;nbsp;for a month. ?&lt;/p&gt;
&lt;p&gt;How can i get the total no of notification send from my scom server to the notified groups ?&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3287902</link><pubDate>Tue, 20 Oct 2009 14:29:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3287902</guid><dc:creator>James</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is it possible to have a query that shows the number of alerts per day by a group of servers?&lt;/p&gt;
&lt;p&gt;I have a number of groups, ie DomainA, DomainB, DomainC etc so would like to report the number of alerts generated by group with also the number of days to be a variable&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3288364</link><pubDate>Thu, 22 Oct 2009 07:42:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3288364</guid><dc:creator>Jasmine</dc:creator><description>&lt;p&gt;I am trying to write a query to display alert history which users might have update on certain alerts under alert properties / History. I have no idea which table I should call as I could not find a table which stores this data. Any advise?&lt;/p&gt;
</description></item><item><title>re: Useful Operations Manager 2007 SQL queries</title><link>http://blogs.technet.com/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx#3291501</link><pubDate>Wed, 04 Nov 2009 19:14:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291501</guid><dc:creator>Steve Tolbert</dc:creator><description>&lt;p&gt;Is there a query to retrieve all rules and monitors running on a given host including overrides?&lt;/p&gt;
&lt;p&gt;I am trying to do something similar to the effective configuration viewer but I would prefer to do it in sql.&lt;/p&gt;
</description></item></channel></rss>