<?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>Stuff n Things : FCS Database</title><link>http://blogs.technet.com/kfalde/archive/tags/FCS+Database/default.aspx</link><description>Tags: FCS Database</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Some Interesting FCS SQL Queries</title><link>http://blogs.technet.com/kfalde/archive/2009/05/08/some-interesting-fcs-sql-queries.aspx</link><pubDate>Sat, 09 May 2009 00:39:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3237900</guid><dc:creator>kfalde</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/kfalde/comments/3237900.aspx</comments><wfw:commentRss>http://blogs.technet.com/kfalde/commentrss.aspx?PostID=3237900</wfw:commentRss><description>&lt;p&gt;With a recent case I have an issue where the client count of managed computers in MOM admin console was quite different then that in the FCS console so I was trying to find out exactly which computers were not in FCS so I could troubleshoot some of those more effectively.&amp;#160; The first thing I checked was looking at Agent-Managed Systems in MOM admin just to make sure these were not computers that had not been checking in for a while (they weren’t all had heartbeats within last day or two) as I know we drop off computers from our total count in the FCS console that have not checked in in 30 days.&amp;#160; Since this was not the case I was pointed out that it may be an issue with clients having the MOM agent but not actually having SSA or AM installed on them or corrupted in some way.&amp;#160; Unfortunately I didn’t know a good way to check on this in MOM so I had to do some digging around to create some queries to make this happen,&amp;#160; below are the results I have:&lt;/p&gt;  &lt;p&gt;This one is the easiest but just dumps a list of all computers in MOM, make sure you select to use the OnePoint db when you start a New Query in SQL Server Management Studio&lt;/p&gt;  &lt;p&gt;&lt;font color="#80ff00"&gt;Select Name from Computer&lt;/font&gt;&lt;/p&gt; &lt;style type="text/css"&gt;



.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }&lt;/style&gt;  &lt;p&gt;This next one selects all the computers that have FCS installed on them&lt;/p&gt;  &lt;p&gt;&lt;font color="#80ff00"&gt;select Computer as FCSCLIENTS from computertocomputerruleview where [Rule] like '%Microsoft Forefront Client Security Agents%' order by FCSCLIENTS&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;This one does a subquery of total computers against computers that have FCS on them to give us a list of computers that for some reason do not have FCS on them.&lt;/p&gt;  &lt;p&gt;&lt;font color="#80ff00"&gt;select distinct Name as MISSINGFCS from Computer where Name not in (Select Computer from computertocomputerruleview where [Rule] like '%Microsoft Forefront Client Security Agents%')&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Hopefully this helps someone else as well.. I’ll hopefully add to this over time if I find anything more that’s useful.&lt;/p&gt;  &lt;p&gt;Update 7/10/09 Adding some more based on a request from a blog reader.&amp;#160; Customer looking for a way to list all detection events. You could actually play around with this some&amp;#160; as this &lt;a href="http://en.wikipedia.org/wiki/View_(database)"&gt;View&lt;/a&gt; does have events from other sources as well as FCSAM.&lt;/p&gt;  &lt;p&gt;&lt;font color="#80ff00"&gt;SELECT [LoggedOn]      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,[LoggedOnDomain]       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,[Source]       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,[Evtime]       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,[Eventno]       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ,[Evttext]       &lt;br /&gt;&amp;#160; FROM [OnePoint].[dbo].[EventView] where source like '%FCSAM%'       &lt;br /&gt;and ([Eventno]='1006' or [Eventno]='1007' or [Eventno]='3004' or [Eventno]='3005') order by [Evtime]&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;You could also do some filtering by date by adding an extra “and ([Evtime]&amp;gt;='2009-06-10' and [Evtime]&amp;lt;='2009-06-13')” statement to this before the order by statement.&amp;#160; &lt;/p&gt;  &lt;p&gt;Just as an FYI tables/views/db schema of FCS/MOM are not documented/supported in any way so if any of these break with some update :) :) that’s life.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3237900" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kfalde/archive/tags/FCS+Database/default.aspx">FCS Database</category><category domain="http://blogs.technet.com/kfalde/archive/tags/FCS/default.aspx">FCS</category></item><item><title>FCS Database Sizing</title><link>http://blogs.technet.com/kfalde/archive/2008/08/25/fcs-database-sizing.aspx</link><pubDate>Mon, 25 Aug 2008 21:09:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3111639</guid><dc:creator>kfalde</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/kfalde/comments/3111639.aspx</comments><wfw:commentRss>http://blogs.technet.com/kfalde/commentrss.aspx?PostID=3111639</wfw:commentRss><description>&lt;P&gt;One common issue we seem to be seeing in FCS support is that the DTS job that transfers data from the Onepoint database to the SystemCenterReporting database begins failing.&amp;nbsp; While there could be many reasons for this job failing including permissions of the user for the job etc the most common reason revolves around the SystemCenterReporting database not having enough space allocated to the database.&amp;nbsp; Unfortunately many people like to breeze through installers with next,next,next and this typically works.&amp;nbsp; However&amp;nbsp;with FCS it will cause errors in a very short while if you do not adjust your database sizes after the initial install.&amp;nbsp; For reference purposes the default sizes for the FCS databases can be found at the following link &lt;A href="http://technet.microsoft.com/en-us/library/bb418778.aspx"&gt;http://technet.microsoft.com/en-us/library/bb418778.aspx&lt;/A&gt;.&amp;nbsp; The key item to notice here is that the reporting db by default is 1GB.&amp;nbsp; Next I would like to reference the following link &lt;A href="http://technet.microsoft.com/en-us/library/bb418772.aspx"&gt;http://technet.microsoft.com/en-us/library/bb418772.aspx&lt;/A&gt;&amp;nbsp;which points out how much space various items use in the database as well as a sizing template that generalizes approximately how large your databases should be based on your client count.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG style="WIDTH: 525px; HEIGHT: 221px" title="FCS DB Sizing" alt="FCS DB Sizing" src="http://i.technet.microsoft.com/Bb418772.70058c2d-05b5-4a3a-a71f-ffd17c133fd3(en-us,TechNet.10).gif" width=525 height=221 mce_src="http://i.technet.microsoft.com/Bb418772.70058c2d-05b5-4a3a-a71f-ffd17c133fd3(en-us,TechNet.10).gif"&gt;&lt;/P&gt;
&lt;P&gt;As we can see from the chart even the smallest environment with SQL Enterprise will require 6GB for 6 months of data.&amp;nbsp; If we extrapolate this out we will run over our default 1GB size by the end of our first month which means we will hit SQL errors with DB sizing and the DTS job that transfers data will begin failing.&amp;nbsp; There are also other side effects like the 14 day history will no populate correctly/at all and you may also hit other issues with new clients not being auto approved.&amp;nbsp; So please check your DB sizes for FCS and make sure you have the reporting database sized appropriately. &lt;/P&gt;
&lt;SCRIPT type=text/javascript&gt;
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/SCRIPT&gt;

&lt;SCRIPT type=text/javascript&gt;
var pageTracker = _gat._getTracker("UA-6340849-1");
pageTracker._trackPageview();
&lt;/SCRIPT&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3111639" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kfalde/archive/tags/FCS+Database/default.aspx">FCS Database</category></item></channel></rss>