Re: SQL 7 Traces

From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 10:48:38 +0200

I just like to add that there might be some errors in SQL7 BOL. I recall, when writing the Profiler chapter
for Unleashed", I was surprised by that there were still errors in BOL after release of SQL 7. Nothing major
enough that you couldn't figure out how it was supposed to work. Perhaps this has been fixes in some later
build of BOL 7, or perhaps I just might have too many drinks since that time and remember incorrectly.

Profiler 2K can generate the xp calls for a defined trace in 7 format. Might be useful.

Or perhaps just be prepared if instructions from BOL 7 doesn't seem to work, so you can do some search on
Google etc.

-- 
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Greg Linwood" <g_linwoodQhotmail.com> wrote in message news:OyGkr21JEHA.2456@TK2MSFTNGP12.phx.gbl...
> 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)