<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>sqldmvstats Forum Rss Feed</title><link>http://www.codeplex.com/sqldmvstats/Thread/List.aspx</link><description>sqldmvstats Forum Rss Description</description><item><title>New Post: Monitoring multiple SQL servers</title><link>http://sqldmvstats.codeplex.com/discussions/32622</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Judging by the date of this posting, either you got your answer or gave up.&amp;nbsp; It appears OTB, that the DMVStats application requires a separate SSRS for each server monitored.&lt;/p&gt;
&lt;p&gt;But I thought I'd post what I did to get the DMVStats to use a single report server to monitor multiple servers in case someone like myself stumbles across this question and posting.&amp;nbsp; The following steps were performed on an non-clustered, default instance of SQL Server 2008 R2 with SSRS installed with defaults.&lt;/p&gt;
&lt;p&gt;I performed the following steps &lt;strong&gt;(NOTE: make a backup copy of all the files mentioned below prior to making any edits).&amp;nbsp; &amp;lt;dmvstats location&amp;gt; is the location of the unzipped DMVStats download.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;See Issue Tracker topic &lt;strong&gt;&lt;span id="TitleLabel" class="CodePlexPageHeader"&gt;Install error AgentJobs log &lt;/span&gt;&lt;/strong&gt;&lt;span id="TitleLabel" class="CodePlexPageHeader"&gt;to address the problem in the creation of DMVStats jobs and 'owner_sid' reported problem.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Edit&amp;nbsp;&amp;lt;dmvstats location&amp;gt;\DatabaseScripts\ConfigDMVstatsDB.sql--on SQL 2008, the "MISCELLANOUS" wait_type conflicts with the PK on the DMVConfig.wait_stats_categories table.&amp;nbsp; I believe this may be unique to SQL 2008.&amp;nbsp; Find the statement&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;insert into DMVconfig.wait_stats_categories &lt;br /&gt;(wait_type, wait_category)&lt;br /&gt;select wait_type, NULL&lt;br /&gt;from sys.dm_os_wait_stats&lt;/p&gt;
&lt;p&gt;and change to&lt;/p&gt;
&lt;p&gt;insert into DMVconfig.wait_stats_categories &lt;br /&gt;(wait_type, wait_category)&lt;br /&gt;select distinct wait_type, NULL &lt;br /&gt;from sys.dm_os_wait_stats&lt;br /&gt;where wait_type not like&amp;nbsp; 'MISCELLANEOUS'&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run &amp;lt;dmvstats location&amp;gt;\InstallDMVStatsDBProcs.cmd and manually add a record for MISCELLANEOUS to DMVconfig.wait_stats_categories (wait_type = MISCELLANEOUS, wait_category = MISC)&lt;/li&gt;
&lt;li&gt;Edit&amp;nbsp;&amp;lt;dmvstats location&amp;gt;\Reports\DeployReports.cmd--change&amp;nbsp;the variable TargetServerURL from&amp;nbsp;http://localhost/reportserver&amp;nbsp;to http://&amp;lt;your report server&amp;gt;/reportserver where &amp;lt;your report server&amp;gt; is the designated server all DMVStats reports are to be run.&lt;/li&gt;
&lt;li&gt;Edit&amp;nbsp;&amp;lt;dmvstats location&amp;gt;\Reports\DeployDMVreports.rss--Note: The following steps customize the SSRS server with a folder hierarchy of DMVStats\&amp;lt;monitored computer name&amp;gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Add a new variable to get current system nameDim strComputerName as String = My.Computer.Name.ToString&lt;/li&gt;
&lt;li&gt;Change contant Const FolderName As String =&amp;nbsp;"DMVStats"&amp;nbsp;to a variable&amp;nbsp;Dim FolderName As String =&amp;nbsp; strComputerName ' cannot contain "/"--this will create a new folder under which the DMVStats reports, data connections and other code will be placed.&amp;nbsp; Define according to your own hierarchical structure but as the instructions state, this string cannot contain a folder separator (/).&lt;/li&gt;
&lt;li&gt;Create the DMVStats "root" folder and subfolders on the SSRS server--The DMVStats report installation requires that the root folder exist on the report server.&amp;nbsp; As indicated by the text within DeployDMVReports, this structure can have multiple layers of subfolders--in my installation, I created a single root folder named "DMVStats"&lt;/li&gt;
&lt;li&gt;Change the line Const FolderPath As String = "/"&amp;nbsp;&amp;nbsp;to Const FolderPath As String = &amp;lt;your DMVStats root and subfolder path&amp;gt;-- this is the "root" folder (and subfolders) created in the previous step.&amp;nbsp; In my installation it was set to Const FolderPath As String = "/DMVStats".&lt;/li&gt;
&lt;li&gt;Change the constant Const connectionString As String = "data source=localhost;initial catalog=DMVstatsDB;Integrated Security=SSPI" to the variable Dim connectionString As String = "data source=" &amp;amp; strComputerName &amp;amp; ";initial catalog=DMVstatsDB;Integrated Security=SSPI"--this will create the DMVStatsDB data connection for the&amp;nbsp;server on which the DeployReports.cmd is executed.&amp;nbsp; The DMVstatsDB data connection can be further edited on the report server.&lt;/li&gt;
&lt;li&gt;Copy the full contents of &amp;lt;dmvstats location&amp;gt; to various servers and execute the InstallDMVStatsDBProcs.cmd and DeployReports.cmd&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>danielhowell</author><pubDate>Wed, 29 Jun 2011 22:28:43 GMT</pubDate><guid isPermaLink="false">New Post: Monitoring multiple SQL servers 20110629102843P</guid></item><item><title>New Post: SQL 2008 and DMVStats</title><link>http://sqldmvstats.codeplex.com/Thread/View.aspx?ThreadId=34884</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got it running and data matches the MDW result, I had to modify at two location&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. DMVSAMPLE.SP_SAMPLEWAITSTATS&lt;/p&gt;
&lt;p&gt;2. cONFIGdmvsTATSdb.SQL installation script to Exclude &amp;quot;Wait Type&amp;quot; Miscellaneous from the query to sys.sm_os_wait_stats&lt;/p&gt;
&lt;p&gt;It works fine for our installation now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>Vikasakshaydharia</author><pubDate>Wed, 11 Aug 2010 21:52:53 GMT</pubDate><guid isPermaLink="false">New Post: SQL 2008 and DMVStats 20100811095253P</guid></item><item><title>New Post: Error trying to run config report</title><link>http://sqldmvstats.codeplex.com/Thread/View.aspx?ThreadId=60535</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;After installing the database and publishing the reports.&amp;nbsp; The next step listed in the documentation is to configure DMVStats.&amp;nbsp; When I try and run the report (Configure DMVStats.rdl) I get an error message:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The value of command parameter @category_name specified for database UpdateJobs is not supported when rendering a report in Management Studio.&amp;nbsp; The value is =DMVStats History.&amp;nbsp; The only supported value for a command parameter is an expression that references a single report parameter.&amp;nbsp; And example is =Parameters!MyParameterName.Value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help or info on this is appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;/div&gt;</description><author>GaryMazzone</author><pubDate>Wed, 24 Jun 2009 15:10:00 GMT</pubDate><guid isPermaLink="false">New Post: Error trying to run config report 20090624031000P</guid></item><item><title>New Post: SQL 2008 and DMVStats</title><link>http://sqldmvstats.codeplex.com/Thread/View.aspx?ThreadId=34884</link><description>&lt;div style="line-height: normal;"&gt;I was able to correct the Insert-select by trimming spaces from wait_type.  However, the sampling job fails because of PK violations and out of wack transcounts.  I gave up on this for SQL2008 and will probably used MDW assuming it works on my x64 servers.  I've had all sorts of trouble with x64 behavior versus 32-bit but I don't forsee an issue here since it's using standard SQL mechanisms like data collectors, jobs, ssis, etc.&lt;br&gt;
&lt;br&gt;
Executed as user: AMI\Tphillippe. Sample DMV collection: time=Apr 29 2009  4:18:41:147PM [SQLSTATE 01000] (Message 50000)  Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0. [SQLSTATE 25000] (Error 266)  procid=1234103437 procname=sp_SampleRequests_Waiters @rows=1 @duration=3 milliseconds [SQLSTATE 01000] (Error 50000)  procid=1330103779 procname=sp_SampleBlockInfo @rows=0 @duration=6 milliseconds [SQLSTATE 01000] (Error 50000)  catch procid=1266103551, procname=(null), trancount=1 [SQLSTATE 01000] (Error 50000)  sp_InsertErrorInfo: procid=1266103551 name=sp_SampleWaitStats RetCode=0 errno=2627 errsev=14 errstate=1 errproc=sp_SampleWaitStats errline=26 errmsg=Error %d, Level %d, State %d, Procedure %s, Line %d, Message: Violation of PRIMARY KEY constraint 'PK__wait_sta__D0CDAB226B24EA82'. Cannot insert duplicate key in object 'DMVsample.wait_stats'. [SQLSTATE 01000] (Error 50000).  The step failed.
&lt;/div&gt;</description><author>whyamiadba</author><pubDate>Wed, 29 Apr 2009 21:42:20 GMT</pubDate><guid isPermaLink="false">New Post: SQL 2008 and DMVStats 20090429094220P</guid></item><item><title>New Post: SQL 2008 and DMVStats</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=34884</link><description>&lt;div style="line-height: normal;"&gt;Greetings,&lt;br&gt;
&lt;br&gt;
I tried to install DMVStats on a X64 machine w/ SQL Server 2008 on it.&lt;br&gt;
The install fails as the&amp;nbsp;&lt;span style="font-size:11pt;color:#0f243e;font-family:'Cambria','serif'"&gt;the [master].[sys].[dm_os_wait_stats] contains 2 apparently identical entries w/ the ‘wait_type’ column == ‘MISCELLANEOUS’ and this causes a primary key constraint violation for PK_CF_wait_stats_cats on the DMVConfig.wait_stats_categories.&lt;br&gt;
&lt;br&gt;
Is this a known issue? Are there any workarounds to it?&lt;br&gt;
&lt;br&gt;
Any related references/pointers are appreciated.&lt;br&gt;
&lt;br&gt;
Thank you,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Adrian C.&lt;/span&gt;
&lt;/div&gt;</description><author>adrianc</author><pubDate>Thu, 04 Sep 2008 02:18:47 GMT</pubDate><guid isPermaLink="false">New Post: SQL 2008 and DMVStats 20080904021847A</guid></item><item><title>New Post: Monitoring multiple SQL server</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=32622</link><description>&lt;div style="line-height: normal;"&gt;Does anyone know if it is possible to monitor nultiple databases on multiple servers using DMV Stats.&lt;br&gt;
I want to collectall the info in the DB in my PC .
&lt;/div&gt;</description><author>pkrapf</author><pubDate>Thu, 31 Jul 2008 09:43:15 GMT</pubDate><guid isPermaLink="false">New Post: Monitoring multiple SQL server 20080731094315A</guid></item><item><title>New Post: DMVStats report very slow</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=29802</link><description>&lt;div style="line-height: normal;"&gt;Hi! I installed DMVstats on my Dev enviornment and collected data for couple of weeks and created 2 baseline (each baseline has only 1 day worth of data). Now, when I try to query top IO query, it just takes long time (3-5 minutes) to give the result. And the result set also has thousands of duplicate records. When I ask for give me top IO query, I expect to see distinct sql statements and their average execution times and number of execution. I don't want to see 1000s lines of same sql statements even if they were actually executed that many times.&lt;br&gt;
Has anyone else run into this problem?&lt;br&gt;
&lt;br&gt;
And by the way this is a great free tool and love to put it on production, if the problem mentioned above can be fixed.&lt;br&gt;
&lt;br&gt;
thanks,&lt;br&gt;
kush
&lt;/div&gt;</description><author>kdhakal</author><pubDate>Tue, 17 Jun 2008 16:30:11 GMT</pubDate><guid isPermaLink="false">New Post: DMVStats report very slow 20080617043011P</guid></item><item><title>NEW POST: Question on DMVstats</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=28080</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br&gt;
&lt;br&gt;
I have the following questions on DMVStats:&lt;br&gt;
&lt;br&gt;
1.  If I configure DMVstats to collect data only for a specific database, will it still continue to collect data for all the databases?&lt;br&gt;
&lt;br&gt;
Reason:  When I look for the data related to different waits(Like I/O etc), it is showing the data even for the DMVStats database which is not added to the list of configured databases.&lt;br&gt;
&lt;br&gt;
2.  When I look at the resource waits graph, I see that there was lot of waiting for service broker.  There is nothing on sql server which makes use of service broker.  &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Please advice.  Your help is highly appreciated.&lt;br&gt;
&lt;br&gt;
-Shiva
&lt;/div&gt;</description><author>shivakonduru</author><pubDate>Tue, 20 May 2008 15:18:34 GMT</pubDate><guid isPermaLink="false">NEW POST: Question on DMVstats 20080520031834P</guid></item><item><title>NEW POST: are the management views actually reliable?</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=17859</link><description>&lt;div class="wikidoc"&gt;
I use the DMV sys.dm&lt;i&gt;db&lt;/i&gt;index&lt;i&gt;usage&lt;/i&gt;stats and as far as I see all used indexes are recorded. The DMV's are cleared when you restart the server. So you have to make a snanpshot of sys.dm&lt;i&gt;db&lt;/i&gt;index&lt;i&gt;usage&lt;/i&gt;stats just before you shut down the server.&lt;br /&gt; &lt;br /&gt;You also have to keep in mind that maybe not every process runs in 71 days. In this case a longer period would be needed to see all used indexes.&lt;br /&gt;
&lt;/div&gt;</description><author>ijeb</author><pubDate>Wed, 02 Jan 2008 16:54:52 GMT</pubDate><guid isPermaLink="false">NEW POST: are the management views actually reliable? 20080102045452P</guid></item><item><title>NEW POST: What SQL Server versions are supported/required?</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=18128</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;I've got this installed on an RTM (9.0.1399) standard edition server and the snapshot job keeps hanging with 100% of 1 CPU utilised. I note that the SQL Server 2005 Performance Dashboard stipulates the SP2 is required because of both new features and bug fixes. &lt;br /&gt; &lt;br /&gt;&lt;u&gt;From the PerfDash.chm:&lt;/u&gt;&lt;br /&gt;&lt;i&gt;&amp;quot;The report themselves also utilize new server side functionality added in Service Pack 2, notably sys.dm&lt;/i&gt;exec&lt;i&gt;text&lt;/i&gt;query&lt;i&gt;plan and an extension to the OBJECT_NAME() function to accept an optional dbid parameter, and also rely on several bug fixes related to the data reported in the dynamic management views (DMVs).   Consequently, the SQL Server instance being monitored via the dashboard reports must also be running Service Pack 2 or higher.&amp;quot;&lt;/i&gt;&lt;br /&gt; &lt;br /&gt;How about DMVstats?&lt;br /&gt;
&lt;/div&gt;</description><author>alasdaircs</author><pubDate>Wed, 21 Nov 2007 14:40:32 GMT</pubDate><guid isPermaLink="false">NEW POST: What SQL Server versions are supported/required? 20071121024032P</guid></item><item><title>NEW POST: are the management views actually reliable?</title><link>http://www.codeplex.com/sqldmvstats/Thread/View.aspx?ThreadId=17859</link><description>&lt;div class="wikidoc"&gt;
I have a question concerning the data held within the views - how reliable is it and what are the criteria for what is displayed - for example sys.dm&lt;i&gt;db&lt;/i&gt;index&lt;i&gt;usage&lt;/i&gt;stats - I've collected data from this view at regualr intervals - my database has around 7000 indexes on tables which have data in the table - over a 71 day period I only have data for just under 1,500 indexes from the view - what about the other  5,500 indexes ?  I'm a bit pushed to really know where to direct this type of question - dmvstats and the performance dashboard make extensive use of the dmv's - but are the dmv's actually representative of my database usuage/performance?&lt;br /&gt;
&lt;/div&gt;</description><author>grumpyolddba</author><pubDate>Thu, 15 Nov 2007 10:40:39 GMT</pubDate><guid isPermaLink="false">NEW POST: are the management views actually reliable? 20071115104039A</guid></item></channel></rss>