﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Jonathan Kehayias  / Tracking Database File AutoGrowth with Event Notifications / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 04:25:08 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Sorry that I'm a little late to the party but this was an excellent article to help me get this monitoring setup in our environment.  It has already helped tremendously.With that said, I was wondering if anyone has tried to capture more data than just what is in the article?  In particular, I am looking the "Filename" column that is part of the DATA FILE AUTO GROW EVENT CLASS.  According to tall of the documentation I can find, this is supposed to be the logical file name of the file being extended.  Whenever I try to retrieve it, I get nothing.Using the code similar to that in the article, I try to pull the Filename using the following:@FileName = @message_body.value('(/EVENT_INSTANCE/Filename)[1]', 'varchar(500)')This is not a problem for most databases but I came across a database today that fired this event and when I went to look at the files to make the appropriate changes, I found that it had several data files.  I have no way of knowing which file grew.Thanks!</description><pubDate>Mon, 11 Feb 2013 13:54:50 GMT</pubDate><dc:creator>hawg</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Another one for the briefcase, this knowledge makes the life of the Prod DBA a lot easier! :satisfied:Thank you.[i][b]qh[/b][/i]</description><pubDate>Sat, 29 Dec 2012 11:07:51 GMT</pubDate><dc:creator>quackhandle1975</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Nice article.</description><pubDate>Mon, 24 Dec 2012 12:23:20 GMT</pubDate><dc:creator>Neha05</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>is the duration in milliseconds?. very interesting article!! bravo!</description><pubDate>Mon, 12 Nov 2012 03:09:37 GMT</pubDate><dc:creator>sugnu iu</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>[quote][b]Jonathan Kehayias (11/6/2012)[/b][hr]Comments posted to this topic are about the item [B]&amp;lt;A HREF="/articles/autogrowth/93229/"&amp;gt;Tracking Database File AutoGrowth with Event Notifications&amp;lt;/A&amp;gt;[/B][/quote]Jonathan,Tested the routine, not that I had doubts but had to follow the protocol in the environment of course, and like it very much.Now, I have 2 methods for monitoring.awesome..</description><pubDate>Wed, 07 Nov 2012 12:39:41 GMT</pubDate><dc:creator>John Esraelo-498130</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Very informative and well written Jonathon.  Your articles are always spot on and a true value.ThanksCarl</description><pubDate>Wed, 07 Nov 2012 10:49:31 GMT</pubDate><dc:creator>CarlDemelo</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Hi Johnathan,I have been using a method that once I found on internet if now here at sqlservercentral and has helped me identifying certain elements and information on one or more DBs in my environment and notifying me via the DBMail separately .. &amp;lt;code&amp;gt;ALTER PROCEDURE [dbo].[USP_CollectDBInformation_Display]	@DBName nvarchar(32) = '_N/A'ASBEGIN	SET NOCOUNT ON;	select servername, 		   databasename,		   sum(filesizemb) as FilesizeMB, 		   [Status], 		   RecoveryMode, 		   sum(FreeSpaceMB)as FreeSpaceMB, 		   sum(freespacemb)*100/sum(filesizemb) as FreeSpacePct, 		   InputDate,		   year(InputDate) TheYear,		   month(InputDate) TheMonth,		   day(InputDate) TheDay,		   datepart(qq, InputDate) TheQuarter	from dbinformation 	where filesizemb &amp;gt; 0 and 	    databasename like 		case @DBName 			when '_N/A' then '%%'			else '%' + @DBName  + '%'		end 			group by servername,databasename, [Status], RecoveryMode, InputDateEND&amp;lt;/code&amp;gt;and then the email of course&amp;lt;code&amp;gt;Exec msdb.dbo.sp_send_dbmail	 @profile_name = 'LocalServer'	,@recipients = 'JohnE.sql@gmail.com'	,@query = '  your statement goes here '	,@Subject = 'DB Information'	,@Attach_query_result_as_file = 1;&amp;lt;/code&amp;gt;Albeit, I like your method and definitely going to examine it in my test environment and I know that I am going to like it.. well done!</description><pubDate>Tue, 06 Nov 2012 13:11:28 GMT</pubDate><dc:creator>John Esraelo-498130</dc:creator></item><item><title>RE: Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Great article, Jonathan.For alerting and recording all auto grow of your databases, that is the way to go.Just for the record, if readers are saving [b]default trace files[/b]: they also capture db growth information. Downside of using these trace files: you may miss one/some if the 20MB size is bering reached before your checking interval and they roll forward before you were able to copy them.( and of course profiler being depricated ... )</description><pubDate>Tue, 06 Nov 2012 01:27:23 GMT</pubDate><dc:creator>ALZDBA</dc:creator></item><item><title>Tracking Database File AutoGrowth with Event Notifications</title><link>http://www.sqlservercentral.com/Forums/Topic1381400-1365-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/autogrowth/93229/"&gt;Tracking Database File AutoGrowth with Event Notifications&lt;/A&gt;[/B]</description><pubDate>Tue, 06 Nov 2012 00:01:42 GMT</pubDate><dc:creator>Jonathan Kehayias</dc:creator></item></channel></rss>