Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 ClearTrace Support Forum
 The TextData column was not found in this trace fi

Author  Topic 

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-10 : 14:03:41
Bill,

I ran a two-hour trace late last week and wanted to get quick summary information, so I ran ClearTrace.

I imported my trace files (spans two files), but it can't find the TextData column even though it exists. Here is the output from the "Import Status" screen:

quote:

Files to process: 2 ( 1,221.0 MB )
Clearing Target Tables...
************************************************************
Processing: 20090805080000_dse_profiler.trc
************************************************************
The TextData column was not found in this trace file.
Trace Rows Read: 2,729,414
Saving Lookup Data...
Summary Rows Saved: 15
File Process Time (seconds): 353.6
************************************************************
Processing: 20090805080000_dse_profiler_1.trc
************************************************************
The TextData column was not found in this trace file.
Trace Rows Read: 602,336
Saving Lookup Data...
Summary Rows Saved: 13
File Process Time (seconds): 71.7
************************************************************
Saving Lookup Data...
Import Time (seconds): 425.3
KB per Second: 2,940
Done.



The "Item" column on the "Query the Imported Files" screen says:
quote:

{TextData Column Not Found In Trace File}



The trace only includes RPC:Completed events and the default columns were added. I can see the TextData column in the trace file by querying it via ::fn_trace_gettable.

I'm running your latest version, 2008.34.

Any ideas?



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2009-08-10 : 14:14:03
Hmmm. That's interesting. Did it save the stored procedure name at all? ClearTrace may be pulling the ObjectName column in place of the TextData for stored procedures.

=================================================
Creating tomorrow's legacy systems today. One crisis at a time.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-10 : 14:30:52
I don't see any stored procedure names, just that error.

I just remembered that this wasn't done via SQL Profiler and so I didn't grab the default columns. This was done via sp_trace*. I run traces so often that I forgot this was done via T-SQL.

Here's the trace definition:
exec sp_trace_setevent @TraceID, 10, 1, @on
exec sp_trace_setevent @TraceID, 10, 2, @on
exec sp_trace_setevent @TraceID, 10, 3, @on
exec sp_trace_setevent @TraceID, 10, 8, @on
exec sp_trace_setevent @TraceID, 10, 10, @on
exec sp_trace_setevent @TraceID, 10, 11, @on
exec sp_trace_setevent @TraceID, 10, 12, @on
exec sp_trace_setevent @TraceID, 10, 13, @on
exec sp_trace_setevent @TraceID, 10, 14, @on
exec sp_trace_setevent @TraceID, 10, 15, @on
exec sp_trace_setevent @TraceID, 10, 16, @on
exec sp_trace_setevent @TraceID, 10, 17, @on
exec sp_trace_setevent @TraceID, 10, 18, @on
exec sp_trace_setevent @TraceID, 10, 21, @on
exec sp_trace_setevent @TraceID, 10, 25, @on
exec sp_trace_setevent @TraceID, 10, 26, @on
exec sp_trace_setevent @TraceID, 10, 27, @on
exec sp_trace_setevent @TraceID, 10, 48, @on
exec sp_trace_setevent @TraceID, 10, 51, @on

ObjectName isn't included in this definition. Is that a problem? What's the minimum columns that are required to use ClearTrace?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2009-08-10 : 15:34:25
It needs either the ObjectName or TextData to get the stored procedure name. It also needs EventClass, CPU, Reads, Writes, Duration. It really like Endtime but doesn't need it.

It likes ApplicationName, LoginName and Host but doesn't need them.

=================================================
Creating tomorrow's legacy systems today. One crisis at a time.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-10 : 16:03:03
I'm going to run another trace tonight to see if it'll work this time. I'm going to use SQL Profiler to build the trace script file and then schedule it to run late tonight. I'll let you know tomorrow the results.

The trace script file that I used for the trace that didn't work in ClearTrace was created by Microsoft. They have a tool that generates all of the scripts that they'll need to analyze a case. They call it HTA, I believe.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2009-08-10 : 16:23:57
Try using this script: http://www.cleardata.biz/downloads/TraceScripts.zip

I built it specifically to create traces for ClearTrace. by default it will create 3 stored procedures. One of them creates a trace. should be pretty easy to modify for what you want.



=================================================
Creating tomorrow's legacy systems today. One crisis at a time.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-11 : 13:34:07
Bill,

The trace that I ran last night was able to be analyzed by ClearTrace. I compared the T-SQL code between the two trace scripts and there isn't much of a difference at all.

I did look at your 3 stored procedures and although I didn't use them for last night's trace, I was very impressed with your code. I'll definitely be using them in the future.

Let me know if you are interested in the two trace scripts, I'd be happy to email them to you if you want to figure out why ClearTrace couldn't find the TextData column using the first one even though it is included in the trace definition.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2009-08-11 : 13:43:49
Send them over. I'll take a look when I get a chance.



=================================================
Creating tomorrow's legacy systems today. One crisis at a time.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-11 : 14:59:20
There certainly is no hurry on it. If you never get a chance, that's fine with me. I'll email them to you shortly.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -