Re: SQL 7 Traces

From: Greg Linwood (g_linwoodQhotmail.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 15:01:22 +1000

Hi Greg.

With SQL 7, you can simply use the SQL Profiler to trace the server. SQL
Profiler is a GUI tool that hooks into server events inside SQL Server.
There are server side services that can run without the GUI which are more
efficient and particularly convenient for admin purposes (can be scheduled
etc).

To see what traces are running:
use master
exec xp_trace_enumqueuehandles gives you all current trace queues (whether
Profiler is attached to them or not)

To stop server side traces you'd use a combination of the
xp_trace_enumqueuehandles and xp_trace_destroyqueue system extended stored
procedures. These are written up in SQL 7.0 Books Online so I suggest you
read up on them there..

HTH

Regards,
Greg Linwood
SQL Server MVP

"Greg" <anonymous@discussions.microsoft.com> wrote in message
news:AAB5C58A-BBB1-42D7-8DD5-A4B76E820131@microsoft.com...
> Can someone tell me how to do a server side trace in SQL 7?
> How to see what traces are running?
> How to stop them?
> Etc.....



Relevant Pages

  • Re: Running profiler on busy 8-cpu Sql Server
    ... I always start with a light trace and add more detail as I go along to ... SQL Server MVP ... > I think it's also worth saying that you should introduce Profiler ... > SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: URGENT deadlock question
    ... > Profiler to view a trace, SQL Server dumps rowsets across the network to ... > SQL Server doesn't feel like it can keep up with all the activity. ... > server-side trace to a trace file guarantees you'll see everything. ...
    (microsoft.public.sqlserver.server)
  • Re: User and Login auditing
    ... I agree 100% with Sue on not touching the system tables. ... > and hope that your employer doesn't mind you putting the SQL ... > Server box in this position. ... You could put triggers on your trace table. ...
    (microsoft.public.sqlserver.security)
  • Re: schedueling proflier
    ... An understanding of the SQL Profiler architecture will help you understand ... SQL Profiler uses a client / server architecture. ... that attaches to a server component called SQL Trace to perform it's work. ...
    (microsoft.public.sqlserver.server)
  • Re: URGENT deadlock question
    ... >> network to the Profiler client, but there is no guarantee you'll see ... >> everything if SQL Server doesn't feel like it can keep up with all ... Just make sure the trace file is created on a local ...
    (microsoft.public.sqlserver.server)