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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How can trace SQL server

Author  Topic 

SCHEMA
Posting Yak Master

192 Posts

Posted - 2008-06-09 : 17:37:12
How can trace SQL server without SQL profiler?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-09 : 17:42:53
Check out the sp_trace* stored procedures in SQL Server Books Online.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

SCHEMA
Posting Yak Master

192 Posts

Posted - 2008-06-09 : 17:46:19
How can I use it and set as a job? Anybody has script.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-09 : 17:48:49
I've got it setup in multiple jobs, but it took about 100 hours to write it. It is not easy to setup and takes quite a bit of testing.

Check SQL Server Books Online for details.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

SCHEMA
Posting Yak Master

192 Posts

Posted - 2008-06-09 : 17:55:35
Goddess, Can you share it? we ran profiler on our busy server in Minnesota,Our server was slow.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-09 : 18:07:25
It is too complicated to share. Eventually I'll generalize it and write a blog about it, but I just don't have the time to explain it.

You can script out your SQL Profiler traces though, so that might help you get started.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -