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
 Exception in ClearTraceCmd

Author  Topic 

zzzbla
Starting Member

13 Posts

Posted - 2012-04-09 : 00:39:41
Hi,

I'm trying to execute cleartracecmd with a wildcard in the /F option - all traces are created using the same script and don't seem to be broken in any way (i.e. they open in profiler and show nicely). It seems like when Cleartrace starts analyzing the 2nd file which could be any file, it fails. It doesn't fail with the first file it touches.

Any idea?

The exception is:

Unhandled Exception: Microsoft.SqlServer.Management.Trace.SqlTraceException: Failed to find column ordinal.
at Microsoft.SqlServer.Management.Trace.TraceReader.GetOrdinal(String name)
at ClearData.ClearTrace.TraceDimension.GetIndex(IDataReader traceFile, String
connectionString)
at ClearData.ClearTrace.SqlTrace.ProcessFiles(BackgroundWorker worker, DoWorkEventArgs eventArgs)
at ClearData.ClearTrace.ConsoleApp.Program.Main(String[] args)

Regards,
Saggi
   

- Advertisement -