﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Server side trace to a table / 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>Tue, 21 May 2013 13:02:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Server side trace to a table</title><link>http://www.sqlservercentral.com/Forums/Topic1234070-391-1.aspx</link><description>Using fn_trace_gettable you'll need to supply the file and path and the number of files to read. As below Load 10 files [code="SQL"]select * into my_trace from fn_trace_gettable('c:\mypath\mytrace.trc', 10)[/code]Load all files[code="SQL"]select * into my_trace from fn_trace_gettable('c:\mypath\mytrace.trc', default)[/code]</description><pubDate>Wed, 11 Jan 2012 13:19:19 GMT</pubDate><dc:creator>Perry Whittle</dc:creator></item><item><title>RE: Server side trace to a table</title><link>http://www.sqlservercentral.com/Forums/Topic1234070-391-1.aspx</link><description>You can't write directly to a table with a server-side trace.  Even if you could it wouldn't be wise as it would not perform as well as writing to a file and would have a negative impact on overall server performance.You get read the trace file using fn_trace_gettable([path to file]) and use that to load the trace data into a table if you want to do that.</description><pubDate>Wed, 11 Jan 2012 09:47:26 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>Server side trace to a table</title><link>http://www.sqlservercentral.com/Forums/Topic1234070-391-1.aspx</link><description>The link below helps me to create a server side trace to a file. I'd like to send the results to a table. Could some please tell me what change I need to make in the script to send the results out to a table?http://sqlserverpedia.com/wiki/The_Server-side_Trace:_What,_Why,_and_HowAnd also, I was told that server side tracing to a table in SQL 2000/2005 is different from SQL 2008. Is it?</description><pubDate>Wed, 11 Jan 2012 08:58:54 GMT</pubDate><dc:creator>sunny.tjk</dc:creator></item></channel></rss>