Re: fn_trace_gettable threatening my sanity

From: Paul Connelly (connelly_at_darc.org)
Date: 03/14/04


Date: Sun, 14 Mar 2004 11:52:30 -0500


Just to follow up in case anyone else runs into this, the apparent
solution is so ridiculous as to be unbelievable: my stored procedure
was retrieving the trace file name from a table where it was inserted
by the procedure that created the trace. The file name stored was
something like 'D:\Trace\Trace1.TRC', with the file type added by the
procedure (since you're not supposed to include the file type when
specifying the file on the trace create). When the file type was
changed to lowercase as in 'D:\Trace\Trace1.trc', everything worked.
You could alternate the two fn_trace_gettable selects, one with
uppercase and one with lowercase to see the problem behavior and
desired behavior quite readily and repeatably.

Is there some kind of case sensitive file system thing going on in XP
2003, or is this just a bizarre SQL bug?

- thanks,
csm



Relevant Pages

  • SqlDataAdapter.Fill returns results of previous command
    ... This code executes successfully at certain points in the application, ... I don't know what the cause of this exception is yet, ... stored procedure was indeed executed on the database. ... The trace shows that the last action on the db was the stored ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Stored Procedures Data view webparts
    ... The only way I have found to get any type of trace is to use SQL Profiler. ... I've had a stored procedure created that works in the following way ... Having the following issues basically i get a generic error message ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Log everything
    ... from the trace I can see that probably an error occurs in a trigger. ... trigger does a rollback tran (and with that makes it impossible to put some ... >> I would like to log every error that occurs in every stored procedure ...
    (microsoft.public.sqlserver.server)
  • Re: Log everything
    ... from the trace I can see that probably an error occurs in a trigger. ... trigger does a rollback tran (and with that makes it impossible to put some ... >> I would like to log every error that occurs in every stored procedure ...
    (microsoft.public.sqlserver.programming)