﻿<?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  / How to script profiler trace to save results 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 21:20:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to script profiler trace to save results to a table ?</title><link>http://www.sqlservercentral.com/Forums/Topic1422186-391-1.aspx</link><description>Thanks for advise, I did not know about this function.So it sound like I have to create a job which on periodical basis will call this function and load trace file contents into a table, with specifying the last trace  RowNumber from the table in order not to get duplicates. Not a perfect solution, but so far I could not find better one.Thanks again.</description><pubDate>Thu, 21 Feb 2013 10:13:24 GMT</pubDate><dc:creator>SQL Guy  1</dc:creator></item><item><title>RE: How to script profiler trace to save results to a table ?</title><link>http://www.sqlservercentral.com/Forums/Topic1422186-391-1.aspx</link><description>I don't think you *can* do it directly to a table, no--you have to use the fn_trace_gettable function to copy the trace file into a table.</description><pubDate>Thu, 21 Feb 2013 09:44:08 GMT</pubDate><dc:creator>paul.knibbs</dc:creator></item><item><title>How to script profiler trace to save results to a table ?</title><link>http://www.sqlservercentral.com/Forums/Topic1422186-391-1.aspx</link><description>Hi all,I created a trace in Profiler GUI. I set it to save results to a table and it is working good. But if I script trace definition, it does not provide anything to save it to table. System procedure sp_trace_create has only option to save to a file.Is it possible to save it to table at all with script or I am missing something? My version is 2008 R2.Thanks</description><pubDate>Wed, 20 Feb 2013 10:16:16 GMT</pubDate><dc:creator>SQL Guy  1</dc:creator></item></channel></rss>