<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.1.7" -->
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel rdf:about="http://www.insidesql.org/blogs/">
	<title>InsideSQL.org Weblogs</title>
	<link>http://www.insidesql.org/blogs/</link>
	<description>InsideSQL.org Blogs - Blogs &#252;ber SQL Server</description>
	<dc:language>de-DE</dc:language>
	<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.1.7"/>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
	<items>
		<rdf:Seq>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/klausobd/2013/06/19/kostenfreie-microsoft-ebooks"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/cmu/sql_server/sql-server-2012-auf-schweizer"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/cmu/sql_server/dimension-nicht-gefunden"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/uricken/2013/06/16/fillfactor-vor-und-nachteile"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/cmu/community/sqlrally-amsterdam"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/cmu/community/save-the-date-24hop"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/falkkrahl/2013/06/10/ankuendigung-sql-server-2014"/>
					<rdf:li rdf:resource="http://www.insidesql.org/blogs/andreaswolter/2013/06/09/extended-event-file-target-size"/>
				</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://www.insidesql.org/blogs/klausobd/2013/06/19/kostenfreie-microsoft-ebooks">
	<title>Kostenfreie Microsoft ebooks</title>
	<link>http://www.insidesql.org/blogs/klausobd/2013/06/19/kostenfreie-microsoft-ebooks</link>
	<dc:date>2013-06-19T11:04:00Z</dc:date>	<dc:creator>klausobd</dc:creator>
	<dc:subject>Sonstiges</dc:subject>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Eric Ligmann hat seine neuste Sammlung an kostenfreien eBooks ver&amp;#246;ffentlicht &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx&quot;&gt;http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;mfg&lt;br /&gt;
Klaus Oberdalhoff&lt;/p&gt;</description>
	<content:encoded><![CDATA[<p>Hi,</p>

<p>Eric Ligmann hat seine neuste Sammlung an kostenfreien eBooks ver&#246;ffentlicht </p>

<p><a href="http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx">http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx</a></p>

<p>mfg<br />
Klaus Oberdalhoff</p>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/cmu/sql_server/sql-server-2012-auf-schweizer">
	<title>SQL Server 2012 auf Schweizer Server</title>
	<link>http://www.insidesql.org/blogs/cmu/sql_server/sql-server-2012-auf-schweizer</link>
	<dc:date>2013-06-19T07:43:00Z</dc:date>	<dc:creator>Christoph Muthmann</dc:creator>
	<dc:subject>SQL Server</dc:subject>
		<description>&lt;p&gt;&lt;p&gt;Anscheinend gibt es nach wie vor Schwierigkeiten mit Servern, die zwar ziemlich deutschsprachig daherkommen, aber eigentlich schweizerisch sprechen.&lt;/p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/cmu/sql_server/sql-server-2012-auf-schweizer#more3512&quot;&gt;Full story &amp;raquo;&lt;/a&gt;</description>
	<content:encoded><![CDATA[<a href="http://www.insidesql.org/blogs/cmu/sql_server/sql-server-2012-auf-schweizer#more3512">Full story &raquo;</a>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/cmu/sql_server/dimension-nicht-gefunden">
	<title>Dimension nicht gefunden</title>
	<link>http://www.insidesql.org/blogs/cmu/sql_server/dimension-nicht-gefunden</link>
	<dc:date>2013-06-18T13:17:00Z</dc:date>	<dc:creator>Christoph Muthmann</dc:creator>
	<dc:subject>SQL Server</dc:subject>
		<description>&lt;p&gt;&lt;p&gt;Heute mal etwas aus dem Bereich der Analysis Services. Nach der Vergabe der Berechtigungen auf eine Dimension erhielt ich einen Fehler bei der Anzeige des Cube-Inhalts, obwohl doch alles &amp;#252;ber die GUI (ohne handgestricktes MDX) definiert wurde.&lt;/p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/cmu/sql_server/dimension-nicht-gefunden#more3511&quot;&gt;Full story &amp;raquo;&lt;/a&gt;</description>
	<content:encoded><![CDATA[<a href="http://www.insidesql.org/blogs/cmu/sql_server/dimension-nicht-gefunden#more3511">Full story &raquo;</a>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/uricken/2013/06/16/fillfactor-vor-und-nachteile">
	<title>FILLFACTOR &#8211; Vor- und Nachteile</title>
	<link>http://www.insidesql.org/blogs/uricken/2013/06/16/fillfactor-vor-und-nachteile</link>
	<dc:date>2013-06-16T14:38:00Z</dc:date>	<dc:creator>Uwe Ricken</dc:creator>
	<dc:subject>Optimierung / Performance</dc:subject>
		<description>&lt;p&gt;&lt;a href=&quot;http://db-berater.blogspot.de/2013/06/fillfactor-vor-und-nachteile.html&quot;&gt;http://db-berater.blogspot.de/2013/06/fillfactor-vor-und-nachteile.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;Die Option FILLFACTOR erm&amp;#246;glicht bei der Erstellung von Indexen einen F&amp;#252;llgrad in Prozent zu bestimmen, mit dem Microsoft SQL Server die Indexseiten mit bestehenden Daten auff&amp;#252;llen soll. Bei einem Kunden wurde diese Option ebenfalls verwendet, jedoch wurden f&amp;#252;r ALLE Indexe ein serverweiter FILLFACTOR von 80% konfiguriert! Diese Strategie f&amp;#252;hrte leider in in manchen Bereichen der Anwendung eher zu Nach- als zu Vorteilen. Interessant bei diesem Sachverhalt war jedoch die Aussage des IT-Leiters, dass ihnen die Einstellung eines pauschalen Wertes empfohlen wurde, um f&amp;#252;r &lt;strong&gt;alle&lt;/strong&gt; Indexe kostspielige Page Splits zu vermeiden.&lt;/p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/uricken/2013/06/16/fillfactor-vor-und-nachteile#more3510&quot;&gt;Full story &amp;raquo;&lt;/a&gt;</description>
	<content:encoded><![CDATA[<p><a href="http://db-berater.blogspot.de/2013/06/fillfactor-vor-und-nachteile.html">http://db-berater.blogspot.de/2013/06/fillfactor-vor-und-nachteile.html</a></p><a href="http://www.insidesql.org/blogs/uricken/2013/06/16/fillfactor-vor-und-nachteile#more3510">Full story &raquo;</a>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/cmu/community/sqlrally-amsterdam">
	<title>SQLRally Amsterdam</title>
	<link>http://www.insidesql.org/blogs/cmu/community/sqlrally-amsterdam</link>
	<dc:date>2013-06-14T11:53:00Z</dc:date>	<dc:creator>Christoph Muthmann</dc:creator>
	<dc:subject>Community &#38; PASS</dc:subject>
		<description>&lt;p&gt;&lt;p&gt;The Dutch SQL Server User Group is helping to make early November the greatest week of learning and networking opportunities in Europe. &lt;/p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/cmu/community/sqlrally-amsterdam#more3509&quot;&gt;Full story &amp;raquo;&lt;/a&gt;</description>
	<content:encoded><![CDATA[<a href="http://www.insidesql.org/blogs/cmu/community/sqlrally-amsterdam#more3509">Full story &raquo;</a>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/cmu/community/save-the-date-24hop">
	<title>Save the Date! 24HoP</title>
	<link>http://www.insidesql.org/blogs/cmu/community/save-the-date-24hop</link>
	<dc:date>2013-06-13T12:57:00Z</dc:date>	<dc:creator>Christoph Muthmann</dc:creator>
	<dc:subject>Community &#38; PASS</dc:subject>
		<description>&lt;p&gt;&lt;p&gt;On July 31 get a sampling of what you can expect at PASS Summit with the 24 Hours of PASS Summit Preview event. This event features 24 one-hour webcasts delivered over the course of 24 hours starting at 12:00 GMT, July 31. &lt;/p&gt;&lt;/p&gt;&lt;a href=&quot;http://www.insidesql.org/blogs/cmu/community/save-the-date-24hop#more3508&quot;&gt;Full story &amp;raquo;&lt;/a&gt;</description>
	<content:encoded><![CDATA[<a href="http://www.insidesql.org/blogs/cmu/community/save-the-date-24hop#more3508">Full story &raquo;</a>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/falkkrahl/2013/06/10/ankuendigung-sql-server-2014">
	<title>Ank&#252;ndigung SQL-Server 2014</title>
	<link>http://www.insidesql.org/blogs/falkkrahl/2013/06/10/ankuendigung-sql-server-2014</link>
	<dc:date>2013-06-10T11:24:00Z</dc:date>	<dc:creator>Falk Krahl</dc:creator>
	<dc:subject>SQL Server 2014</dc:subject>
		<description>&lt;p&gt;Auf der TechEd North America 2013, Microsoft j&amp;#228;hrlicher Konferenz f&amp;#252;r Entwickler und IT-Professionals, die vom 03.06. bis 06.06. in New Orleans lief, wurden neben den Ank&amp;#252;ndigungen von Micosoft Windows Server 2012 R2 sowie Visual Studio 2013&lt;br /&gt;
auch die enue Version SQL Server 2014 angek&amp;#252;ndigt. W&amp;#228;hrend S Windows 2012 R2 und Visual Studio noch in diesem Jahr erscheinen sollen, ist f&amp;#252;r den SQl Server 2014 der Erscheinungstermin in den ersten Wochen im n&amp;#228;chsten Jahr geplant.&lt;br /&gt;
Eine erstes Datenblatt ist bereits erschienen und unter folgendem Link abrufbar:&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/en-us/sqlserver/sql-server-2014.aspx&quot; title=&quot;SQL2014 Datenblatt&quot; target=&#039;_blank&#039;&gt;Datenblatt&lt;/a&gt;&lt;br /&gt;
Dies deutet langsam darauf hin, das Microsoft bei allen Produkten einen j&amp;#228;hrlichen Releasezyklus einf&amp;#252;hren will und sich so dem Cloud-Bereich n&amp;#228;hern, wo es keine gr&amp;#246;&amp;#223;eren Releases mehr gibt sondern Features eingef&amp;#252;hrt werden, wenn diese marktreif sind. Der wichtigste Unterschied zum Cloud-Bereich vesteht jedoch darin das diese neuen Versionen Vollversionen sind und keine Updates. F&amp;#252;r Unternehmen ohne Software-Assurance-Vertrag bedeutet dies, ein Neukauf um an die entsprechend neuen Features zu kommen. Das gr&amp;#246;&amp;#223;te neue Feature das mit SQL Server 2014 komen soll, ist &quot;Hekaton&quot;. Dabei handelt es sich um eine In-Memory Database Engine f&amp;#252;r den relationalen Datenbankbereich. Microsoft verspricht sich dadurch ein Performanzsteigerung von bis zu einem Faktor 50. N&amp;#228;here technische Informationen und eine erste Previewversion soll auf der am 26.06.2013 in San Francisco stattfindeten Entwicklerkonferenz &quot;Build&quot; ver&amp;#246;ffentlicht werden. Durch diese neue Releasepolitik d&amp;#252;rften Software-Assurance-Vertr&amp;#228;ge in Zukunft deutlich an Attraktivit&amp;#228;t gewinnen. Jedoch m&amp;#252;ssen vermutlich auch noch die IT-Abteilungen entsprechend aufgestockt werden, denn die Zeiten in denen nach einem Update erstmal f&amp;#252;r l&amp;#228;ngere Zeit Ruhe war und man sich anderen Aufgaben widmen konnte, sind wohl vorbei. Ist eine Migration erfolgreich durchgef&amp;#252;hrt wurden, steht eine neue Version bereits wieder zu Verf&amp;#252;gung und die Test beginnen von Neuen.&lt;/p&gt;</description>
	<content:encoded><![CDATA[<p>Auf der TechEd North America 2013, Microsoft j&#228;hrlicher Konferenz f&#252;r Entwickler und IT-Professionals, die vom 03.06. bis 06.06. in New Orleans lief, wurden neben den Ank&#252;ndigungen von Micosoft Windows Server 2012 R2 sowie Visual Studio 2013<br />
auch die enue Version SQL Server 2014 angek&#252;ndigt. W&#228;hrend S Windows 2012 R2 und Visual Studio noch in diesem Jahr erscheinen sollen, ist f&#252;r den SQl Server 2014 der Erscheinungstermin in den ersten Wochen im n&#228;chsten Jahr geplant.<br />
Eine erstes Datenblatt ist bereits erschienen und unter folgendem Link abrufbar:<br />
<a href="http://www.microsoft.com/en-us/sqlserver/sql-server-2014.aspx" title="SQL2014 Datenblatt" target='_blank'>Datenblatt</a><br />
Dies deutet langsam darauf hin, das Microsoft bei allen Produkten einen j&#228;hrlichen Releasezyklus einf&#252;hren will und sich so dem Cloud-Bereich n&#228;hern, wo es keine gr&#246;&#223;eren Releases mehr gibt sondern Features eingef&#252;hrt werden, wenn diese marktreif sind. Der wichtigste Unterschied zum Cloud-Bereich vesteht jedoch darin das diese neuen Versionen Vollversionen sind und keine Updates. F&#252;r Unternehmen ohne Software-Assurance-Vertrag bedeutet dies, ein Neukauf um an die entsprechend neuen Features zu kommen. Das gr&#246;&#223;te neue Feature das mit SQL Server 2014 komen soll, ist "Hekaton". Dabei handelt es sich um eine In-Memory Database Engine f&#252;r den relationalen Datenbankbereich. Microsoft verspricht sich dadurch ein Performanzsteigerung von bis zu einem Faktor 50. N&#228;here technische Informationen und eine erste Previewversion soll auf der am 26.06.2013 in San Francisco stattfindeten Entwicklerkonferenz "Build" ver&#246;ffentlicht werden. Durch diese neue Releasepolitik d&#252;rften Software-Assurance-Vertr&#228;ge in Zukunft deutlich an Attraktivit&#228;t gewinnen. Jedoch m&#252;ssen vermutlich auch noch die IT-Abteilungen entsprechend aufgestockt werden, denn die Zeiten in denen nach einem Update erstmal f&#252;r l&#228;ngere Zeit Ruhe war und man sich anderen Aufgaben widmen konnte, sind wohl vorbei. Ist eine Migration erfolgreich durchgef&#252;hrt wurden, steht eine neue Version bereits wieder zu Verf&#252;gung und die Test beginnen von Neuen.</p>]]></content:encoded>
			</item>

<item rdf:about="http://www.insidesql.org/blogs/andreaswolter/2013/06/09/extended-event-file-target-size">
	<title>Extended Event File Target size vs SQL Server Trace trace file - a comparison</title>
	<link>http://www.insidesql.org/blogs/andreaswolter/2013/06/09/extended-event-file-target-size</link>
	<dc:date>2013-06-09T11:46:00Z</dc:date>	<dc:creator>Andreas Wolter</dc:creator>
	<dc:subject>Extended Events</dc:subject>
		<description>&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot; lang=&quot;EN-US&quot;&gt;No big science, more out of curiosity this time..&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot; lang=&quot;EN-US&quot;&gt;The Extended Events File Target for SQL Server saves data using xml, which as is well known, is a bit &amp;#8220;chatty&amp;#8221;. A student in my recent &lt;a href=&quot;http://www.sarpedonqualitylab.com/SQL_Master-Classes.htm&quot;&gt;SQL Server Master-Class&lt;/a&gt; workshop on extended events came up with the question for how much (more) space he would have to account for using Extended Events with a file target. Although this depends greatly on the specific events and possibly actions, selected, I was a bit curious myself and decided for a small test.&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot; lang=&quot;EN-US&quot;&gt;Both, the old and &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms181091.aspx&quot;&gt;deprecated &lt;/a&gt;SQL Server Trace and Extended Events can save the data in a file, so it&amp;#8217;s easy to compare what difference in size the new format will make.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;I set up a SQL Server Trace that is almost identical to an Extended Events Trace. (You will see why &amp;#8220;almost&amp;#8221;.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;I had to choose a very simple Trace, so the customizable columns of extended events would not make the comparison unequal and &lt;/span&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;ended up with a trace that captures SP:Starting/SP:Completed with the following columns:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;&lt;img src=&quot;http://www.SarpedonQualityLab.com/sql-images/sql-articles/1306_SQLTrace_Definition.png&quot; alt=&quot;&quot; width=&quot;540&quot; height=&quot;53&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;You will see why I collect Source/DatabaseID twice later on.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Of course I used a lightweight Server-Trace, although for the purpose of this comparison it would not have mattered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;The SQL Trace definition:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 3&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 5&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 12&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 13&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 22&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 28&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 34&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 48&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 43&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 62&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 3&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 5&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 12&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 22&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 28&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 34&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setevent&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 42&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 62&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;@intfilter&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;br /&gt;declare&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;@bigintfilter&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;bigint&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;#160;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;@intfilter&lt;/span&gt; &lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt; 7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_trace_setfilter&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;@TraceID&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 62&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 0&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; 0&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;@intfilter&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;br style=&quot;font-family: verdana,geneva;&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;As you might see the trace includes a filter, which is for a specific database ID&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;The Extended Event Trace session looks like that:&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;EVENT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;SESSION&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;[ModulesStartEnd_ToFile]&lt;/span&gt;&lt;br /&gt;ON&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;SERVER&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;ADD&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;EVENT&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;sqlserver&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;module_start&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;[source_database_id]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=(&lt;/span&gt;7&lt;span style=&quot;color: gray;&quot;&gt;))),&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;ADD&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;EVENT&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;sqlserver&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;module_end&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;[source_database_id]&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=(&lt;/span&gt;7&lt;span style=&quot;color: gray;&quot;&gt;)))&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;ADD&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TARGET&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;package0&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;event_file&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: gray;&quot; lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;filename&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#039;R:\Tracing\XE\ModulesStartEnd.xel&#039;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;max_file_size&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=(&lt;/span&gt;10240&lt;span style=&quot;color: gray;&quot;&gt;))&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;WITH &lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: gray;&quot; lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: teal;&quot; lang=&quot;EN-US&quot;&gt;MAX_MEMORY&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: gray;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14.0pt; font-family: &#039;Lucida Console&#039;; mso-bidi-font-family: &#039;Lucida Console&#039;; mso-ansi-language: EN-US;&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;4096 &lt;span style=&quot;color: teal;&quot;&gt;KB&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;EVENT_RETENTION_MODE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;NO_EVENT_LOSS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&amp;#160; &lt;span style=&quot;color: teal;&quot;&gt;MAX_DISPATCH_LATENCY&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;30 &lt;span style=&quot;color: teal;&quot;&gt;SECONDS&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;MAX_EVENT_SIZE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;0 &lt;span style=&quot;color: teal;&quot;&gt;KB&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;MEMORY_PARTITION_MODE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;NONE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;TRACK_CAUSALITY&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;OFF&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;STARTUP_STATE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;OFF&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;You may know, that Extended Events include certain columns by default, and for module_start/end, this includes offset and offset_end.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;&amp;#160;&lt;img src=&quot;http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_XE_EventsDefinition_Columns.png&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;255&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Those two columns are not available for SP_Staring/SP:Completed in SQL Trace. Since they are both integers, I decided to include another column, DatabaseID, into the SQLTrace. SQL Trace also includes the SPID by default, which cannot be deselected, therefore those two columns should equalize it.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Both traces were started before the workload which ran for a while. At the end, the same number of events have been logged by both technologies in parallel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;SQL Trace event count:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_SQLTrace_EventCounts.png&quot; alt=&quot;&quot; width=&quot;257&quot; height=&quot;49&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;XEvent Trace event count:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_XE_Counter_Results.png&quot; alt=&quot;&quot; width=&quot;200&quot; height=&quot;63&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;100644 + 100644 = 201288, so both captured the exact same events. :-)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;So, and now to the final question: what size are the files?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;See yourself:&lt;/span&gt;&lt;br /&gt;&lt;img src=&quot;http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_Trace_Files.png&quot; alt=&quot;&quot; width=&quot;247&quot; height=&quot;77&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Size in Megabytes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_Trace_FileSize_Comparison.png&quot; alt=&quot;&quot; width=&quot;253&quot; height=&quot;43&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;&amp;#160;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;(The numbers in MB are the real size, whereas windows explorer shows the size on disk.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;That&amp;#8217;s a difference of 5.32MB or in other words 29.13%.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;And this is what one single module_start-event for a function call in XEvents looks like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;module_start&lt;/span&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;package&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;sqlserver&lt;/span&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;timestamp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;2013-06-08T18:41:48.780Z&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;source_database_id&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;7&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;object_id&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;103671417&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;line_number&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;1&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;offset&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;0&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;offset_end&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;-1&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;object_type&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;![CDATA[&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;TF&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;object_name&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;![CDATA[&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;ufnGetContactInformation&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: red;&quot; lang=&quot;EN-US&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;;&quot; lang=&quot;EN-US&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;statement&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: #a31515;&quot; lang=&quot;EN-US&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: &#039;Lucida Console&#039;; color: blue;&quot; lang=&quot;EN-US&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;The content is self-explanatory, as xml is supposed to be, and the overhead in size is no surprise at all.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Keep in mind that this post is purely on comparing file sizes, and not performance or features. There are good reasons that SQL Trace &amp;amp; Profiler have been deprecated, and Extended Events in SQL Server 2012 overcomes SQL Trace &amp;amp; Profiler by far, in performance as well as in flexibility/usability.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;So whenever performance matters, remember to &lt;strong&gt;set session options appropriately&lt;/strong&gt; and if the amount of events is high, do not use your slowest volume for the file target - same as for all other tracing activities anyways.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;happy tracing,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family: verdana,geneva;&quot;&gt;Andreas&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description>
	<content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;" lang="EN-US">No big science, more out of curiosity this time..</span></p>
<p class="MsoNormal"><span style="font-family: verdana,geneva;" lang="EN-US">The Extended Events File Target for SQL Server saves data using xml, which as is well known, is a bit &#8220;chatty&#8221;. A student in my recent <a href="http://www.sarpedonqualitylab.com/SQL_Master-Classes.htm">SQL Server Master-Class</a> workshop on extended events came up with the question for how much (more) space he would have to account for using Extended Events with a file target. Although this depends greatly on the specific events and possibly actions, selected, I was a bit curious myself and decided for a small test.</span></p>
<p class="MsoNormal"><span style="font-family: verdana,geneva;" lang="EN-US">Both, the old and <a href="http://msdn.microsoft.com/en-us/library/ms181091.aspx">deprecated </a>SQL Server Trace and Extended Events can save the data in a file, so it&#8217;s easy to compare what difference in size the new format will make.</span></p>
<p><span style="font-family: verdana,geneva;">I set up a SQL Server Trace that is almost identical to an Extended Events Trace. (You will see why &#8220;almost&#8221;.)</span></p>
<p><span style="font-family: verdana,geneva;">I had to choose a very simple Trace, so the customizable columns of extended events would not make the comparison unequal and </span><span style="font-family: verdana,geneva;">ended up with a trace that captures SP:Starting/SP:Completed with the following columns:</span></p>
<p><span style="font-family: verdana,geneva;"><img src="http://www.SarpedonQualityLab.com/sql-images/sql-articles/1306_SQLTrace_Definition.png" alt="" width="540" height="53" /></span></p>
<p><span style="font-family: verdana,geneva;">You will see why I collect Source/DatabaseID twice later on.</span><br /><span style="font-family: verdana,geneva;">Of course I used a lightweight Server-Trace, although for the purpose of this comparison it would not have mattered.</span></p>
<p><span style="font-family: verdana,geneva;">The SQL Trace definition:</span></p>
<p><span style="font-size: small;"><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">exec</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 3<span style="color: gray;">,</span> <span style="color: teal;">@on</span><br />exec</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 5<span style="color: gray;">,</span> <span style="color: teal;">@on</span><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 12<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 13<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 22<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 28<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 34<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 48<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 43<span style="color: gray;">,</span> 62<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 3<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 5<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 12<span style="color: gray;">,</span> <span style="color: teal;">@on</span><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 22<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 28<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 34<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setevent</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 42<span style="color: gray;">,</span> 62<span style="color: gray;">,</span> <span style="color: teal;">@on</span></span><span style="font-family: 'Lucida Console';" lang="EN-US">&#160;</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: small;"><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">declare</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"> <span style="color: teal;">@intfilter</span> <span style="color: blue;">int</span><br />declare</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: teal;">@bigintfilter</span> <span style="color: blue;">bigint</span></span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: small;">&#160;<span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">set</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: teal;">@intfilter</span> <span style="color: gray;">=</span> 7</span></span></p>
<p><span style="font-size: small;"><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">exec</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: maroon;">sp_trace_setfilter</span><span style="color: teal;">@TraceID</span><span style="color: gray;">,</span> 62<span style="color: gray;">,</span> 0<span style="color: gray;">,</span> 0<span style="color: gray;">,</span> <span style="color: teal;">@intfilter</span></span> </span><br style="font-family: verdana,geneva;" /><br /><span style="font-family: verdana,geneva;">As you might see the trace includes a filter, which is for a specific database ID</span>.</p>
<p><span style="font-family: verdana,geneva;">The Extended Event Trace session looks like that:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: small;"><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">CREATE</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"> <span style="color: blue;">EVENT</span> <span style="color: blue;">SESSION</span> <span style="color: teal;">[ModulesStartEnd_ToFile]</span><br />ON</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: blue;">SERVER</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />ADD</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: blue;">EVENT</span> <span style="color: teal;">sqlserver</span><span style="color: gray;">.</span><span style="color: teal;">module_start</span><span style="color: gray;">(</span><br />&#160;&#160;&#160; <span style="color: blue;">WHERE </span><span style="color: gray;">(</span><span style="color: teal;">[source_database_id]</span><span style="color: gray;">=(</span>7<span style="color: gray;">))),</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />ADD</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: blue;">EVENT</span> <span style="color: teal;">sqlserver</span><span style="color: gray;">.</span><span style="color: teal;">module_end</span><span style="color: gray;">(</span><br />&#160;&#160;&#160; <span style="color: blue;">WHERE </span><span style="color: gray;">(</span><span style="color: teal;">[source_database_id]</span><span style="color: gray;">=(</span>7<span style="color: gray;">)))</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />ADD</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: blue;">TARGET</span> <span style="color: teal;">package0</span><span style="color: gray;">.</span><span style="color: teal;">event_file</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&#160;&#160;&#160; </span><span style="font-family: 'Lucida Console'; color: gray;" lang="EN-US">(</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">SET</span><span style="font-family: 'Lucida Console';" lang="EN-US"> <span style="color: blue;">filename</span><span style="color: gray;">=</span><span style="color: red;">N'R:\Tracing\XE\ModulesStartEnd.xel'</span><span style="color: gray;">,</span> <span style="color: teal;">max_file_size</span><span style="color: gray;">=(</span>10240<span style="color: gray;">))</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />WITH </span><span style="font-family: 'Lucida Console'; color: gray;" lang="EN-US">(</span><span style="font-family: 'Lucida Console'; color: teal;" lang="EN-US">MAX_MEMORY</span><span style="font-family: 'Lucida Console'; color: gray;" lang="EN-US">=</span></span><span style="font-size: 14.0pt; font-family: 'Lucida Console'; mso-bidi-font-family: 'Lucida Console'; mso-ansi-language: EN-US;" lang="EN-US"><span style="font-size: small;">4096 <span style="color: teal;">KB</span><span style="color: gray;">, </span><span style="color: teal;">EVENT_RETENTION_MODE</span><span style="color: gray;">=</span><span style="color: teal;">NO_EVENT_LOSS</span><span style="color: gray;">,</span>&#160; <span style="color: teal;">MAX_DISPATCH_LATENCY</span><span style="color: gray;">=</span>30 <span style="color: teal;">SECONDS</span><span style="color: gray;">,</span><span style="color: teal;">MAX_EVENT_SIZE</span><span style="color: gray;">=</span>0 <span style="color: teal;">KB</span><span style="color: gray;">,</span> <span style="color: teal;">MEMORY_PARTITION_MODE</span><span style="color: gray;">=</span><span style="color: blue;">NONE</span><span style="color: gray;">,</span> <span style="color: teal;">TRACK_CAUSALITY</span><span style="color: gray;">=</span><span style="color: blue;">OFF</span><span style="color: gray;">,</span> <span style="color: teal;">STARTUP_STATE</span><span style="color: gray;">=</span><span style="color: blue;">OFF</span></span><span style="color: gray;"><span style="font-size: small;">)</span><br /><br /></span></span></p>
<p><span style="font-family: verdana,geneva;">You may know, that Extended Events include certain columns by default, and for module_start/end, this includes offset and offset_end.</span><br /><span style="font-family: verdana,geneva;">&#160;<img src="http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_XE_EventsDefinition_Columns.png" alt="" width="400" height="255" /></span></p>
<p><span style="font-family: verdana,geneva;">Those two columns are not available for SP_Staring/SP:Completed in SQL Trace. Since they are both integers, I decided to include another column, DatabaseID, into the SQLTrace. SQL Trace also includes the SPID by default, which cannot be deselected, therefore those two columns should equalize it.</span><br /><span style="font-family: verdana,geneva;">Both traces were started before the workload which ran for a while. At the end, the same number of events have been logged by both technologies in parallel.</span></p>
<p><span style="font-family: verdana,geneva;">SQL Trace event count:</span></p>
<p><img src="http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_SQLTrace_EventCounts.png" alt="" width="257" height="49" /></p>
<p><span style="font-family: verdana,geneva;">XEvent Trace event count:</span></p>
<p><img src="http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_XE_Counter_Results.png" alt="" width="200" height="63" /><br /><br /><span style="font-family: verdana,geneva;">100644 + 100644 = 201288, so both captured the exact same events. :-)</span></p>
<p><span style="font-family: verdana,geneva;">So, and now to the final question: what size are the files?</span></p>
<p><span style="font-family: verdana,geneva;">See yourself:</span><br /><img src="http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_Trace_Files.png" alt="" width="247" height="77" /></p>
<p><span style="font-family: verdana,geneva;">Size in Megabytes:</span></p>
<p><img src="http://www.sarpedonqualitylab.com/sql-images/sql-articles/1306_Trace_FileSize_Comparison.png" alt="" width="253" height="43" /><br /><span style="font-family: verdana,geneva;">&#160;</span><br /><span style="font-family: verdana,geneva;">(The numbers in MB are the real size, whereas windows explorer shows the size on disk.)</span><br /><span style="font-family: verdana,geneva;">That&#8217;s a difference of 5.32MB or in other words 29.13%.</span></p>
<p><span style="font-family: verdana,geneva;">And this is what one single module_start-event for a function call in XEvents looks like:</span></p>
<p><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">event</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">"<span style="color: blue;">module_start</span>"<span style="color: red;">package</span><span style="color: blue;">=</span>"<span style="color: blue;">sqlserver</span>"<span style="color: red;">timestamp</span><span style="color: blue;">=</span>"<span style="color: blue;">2013-06-08T18:41:48.780Z</span>"<span style="color: blue;">&gt;</span><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">"<span style="color: blue;">source_database_id</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;</span>7<span style="color: blue;">&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">object_id</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;</span>103671417<span style="color: blue;">&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">line_number</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;</span>1<span style="color: blue;">&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">offset</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;</span>0<span style="color: blue;">&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">offset_end</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;</span>-1<span style="color: blue;">&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">object_type</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;![CDATA[</span><span style="color: gray;">TF</span><span style="color: blue;">]]&gt;&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">object_name</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;![CDATA[</span><span style="color: gray;">ufnGetContactInformation</span><span style="color: blue;">]]&gt;&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;<br /></span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">&lt;</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">data</span><span style="font-family: 'Lucida Console'; color: red;" lang="EN-US">name</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">=</span><span style="font-family: 'Lucida Console';" lang="EN-US">"<span style="color: blue;">statement</span>"<span style="color: blue;">&gt;&lt;</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">value</span><span style="color: blue;">&gt;&lt;/</span><span style="color: #a31515;">data</span><span style="color: blue;">&gt;</span></span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US"><br />&lt;/</span><span style="font-family: 'Lucida Console'; color: #a31515;" lang="EN-US">event</span><span style="font-family: 'Lucida Console'; color: blue;" lang="EN-US">&gt;</span></p>
<p><span style="font-family: verdana,geneva;">The content is self-explanatory, as xml is supposed to be, and the overhead in size is no surprise at all.</span></p>
<p><span style="font-family: verdana,geneva;">Keep in mind that this post is purely on comparing file sizes, and not performance or features. There are good reasons that SQL Trace &amp; Profiler have been deprecated, and Extended Events in SQL Server 2012 overcomes SQL Trace &amp; Profiler by far, in performance as well as in flexibility/usability.</span></p>
<p><span style="font-family: verdana,geneva;">So whenever performance matters, remember to <strong>set session options appropriately</strong> and if the amount of events is high, do not use your slowest volume for the file target - same as for all other tracing activities anyways.</span></p>
<p><span style="font-family: verdana,geneva;">happy tracing,</span></p>
<p><span style="font-family: verdana,geneva;">Andreas<br /></span></p>]]></content:encoded>
			</item>
</rdf:RDF>
