Posted - 04/09/2012 : 00:39:41
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.
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
at ClearData.ClearTrace.SqlTrace.ProcessFiles(BackgroundWorker worker, DoWorkEventArgs eventArgs)
at ClearData.ClearTrace.ConsoleApp.Program.Main(String args)