﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>I can't be the only one who's ever tried to do this....</title><link>http://www.myitforum.com/forums/</link><description /><copyright>(c) myITforum.com Community Forum</copyright><ttl>30</ttl><item><title>Re:I can't be the only one who's ever tried to do this.... (skissinger)</title><description>  don't use MSI.&amp;nbsp; Use a script.&amp;nbsp; This script: &lt;br&gt;  on error resume next &lt;br&gt; strcomputer = "." &lt;br&gt; set objwmi = GetObject("winmgmts:\\" &amp;amp; strComputer &amp;amp; "\root\microsoft\sqlserver\computermanagement10") &lt;br&gt; set colItems = objwmi.execQuery("Select * from sqlserviceadvancedproperty") &lt;br&gt; for each item in ColItems &lt;br&gt; &amp;nbsp; if lcase(item.propertyname) = "version" then &lt;br&gt; &amp;nbsp;&amp;nbsp; strvalue1 = lcase(item.propertystrvalue) &lt;br&gt; &amp;nbsp;&amp;nbsp; if (left(strvalue1,4) = "10.5") then &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.echo "True" &lt;br&gt; &amp;nbsp;&amp;nbsp; end if &lt;br&gt; &amp;nbsp;end if &lt;br&gt; next &lt;br&gt; wscript.quit &lt;br&gt;  &amp;nbsp; &lt;br&gt;  wmi's root\microsoft\sqlserver\computermanagement10 is where sql08 lives (non R2 and R2), and 10.5&amp;lt;more numbers&amp;gt; means R2.&amp;nbsp; (10.0 is non-R2) &lt;br&gt;  &amp;nbsp; &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236190</link><pubDate>Thu, 31 May 2012 15:32:44 GMT</pubDate></item><item><title>Re:I can't be the only one who's ever tried to do this.... (ccraig260)</title><description>  Thanks for the help. It looks like the logic for the CI is working. Now I'm returning a non-compliant; not because of the value, but because of the detection method. "Assume Application is installed" returns an error, using the MSI as the detection method returns a non-compliant. the issue is that I can't seem to find the proper .msi that is the right one for the install of SQL 2008 R2.  &lt;br&gt; &amp;nbsp;  &lt;br&gt; any Ideas? I'll keep plugging away. &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236185</link><pubDate>Thu, 31 May 2012 11:39:36 GMT</pubDate></item><item><title>Re:I can't be the only one who's ever tried to do this.... (skissinger)</title><description>  that configuring it, really... not looking.&amp;nbsp; anyway, that helped with my google-fu to find the sql query that'll work in a CI. &lt;br&gt;  not tested, but this should work: &lt;br&gt;  on the CI, create Setting. &lt;br&gt;  Setting Type =&amp;nbsp; SQL Query &lt;br&gt;  Data Type = Integer (I think, if it doesn't validate right, try a different type) &lt;br&gt;  Use default instance &lt;br&gt;  database = master &lt;br&gt;  column = value &lt;br&gt;  the sql statement is this: &lt;br&gt;  SELECT value from master.sys.configurations where name = 'max server memory (MB)' &lt;br&gt;  &amp;nbsp; &lt;br&gt;  switch to Compliance Rules tab, and the new rule would be: &lt;br&gt;  either not equals 2147483647, or less than that number.&amp;nbsp; Or if that customer KNOWS that they always want &amp;lt;30gb for sql (or whatever number), you can put in whatever less than # makes sense.&amp;nbsp; You could check the box about report noncompliance if setting doesn't exist--I don't think you really need to in this case--all SQL versions have this setting.&amp;nbsp; A non-compliant for no instances of would really just be for your initial testing--just to make sure the CI is actually composed right and returns &lt;i&gt;something&lt;/i&gt;. &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236174</link><pubDate>Thu, 31 May 2012 06:49:09 GMT</pubDate></item><item><title>Re:I can't be the only one who's ever tried to do this.... (ccraig260)</title><description>  Thanks for the assist. &lt;br&gt;  2147483647 = NON-Compliant &lt;br&gt;  &amp;nbsp; &lt;br&gt;  The direct SQL I used was: &lt;br&gt;  &amp;nbsp; &lt;br&gt;  EXEC sp_configure 'show advanced options', '1' &lt;br&gt;  RECONFIGURE WITH OVERRIDE &lt;br&gt;  EXEC&amp;nbsp; sp_configure'max server memory (MB)' &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Thanks, &lt;br&gt;  Chris &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236170</link><pubDate>Wed, 30 May 2012 20:55:48 GMT</pubDate></item><item><title>Re:I can't be the only one who's ever tried to do this.... (skissinger)</title><description>  What is the query you run directly in sql? &lt;br&gt;  Then, what means "compliant" to that customer?&amp;nbsp; that it NOT be 2147483647?&amp;nbsp; or that is SHOULD be 2147483647? &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236168</link><pubDate>Wed, 30 May 2012 18:42:24 GMT</pubDate></item><item><title>I can't be the only one who's ever tried to do this.... (ccraig260)</title><description>  Greetings, &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Let me start with the fact that I am not very proficient with Powershell, WMI Querying, or advanced T-SQL. I have a customer who wants to be able to use DCM/Compliance to report on whether or not the setting for SQL max server memory is set to the default "2147483647" or not. I can run a small SQL query within SQL Management Studio to get the info, but I don't know the "IF...Then" to return Compliant/non-compliant. This will be used in a Configuration Item for Compliance. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Has anyone tried to do this and been successfull? &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Thanks, &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Chris Craig &lt;br&gt;  </description><link>http://www.myitforum.com/forums/fb.ashx?m=236167</link><pubDate>Wed, 30 May 2012 16:58:34 GMT</pubDate></item></channel></rss>