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 2000 Forums
 Transact-SQL (2000)
 Quick showplan question

Author  Topic 

cwalston
Starting Member

25 Posts

Posted - 2006-02-08 : 11:49:30
Coming from the Sybase world...is there a way in osql that you can do something like exec sp_showplan <spid> to get the showplan info for a current process?

I am trying to setup something that will be able to be automatically run to capture bad queries and then log them back to a log file.

Thanks!
Chris

romank
Starting Member

2 Posts

Posted - 2006-02-08 : 15:12:53
Hi Chris,

You can use Profiler to capture all queries..However, it could be costly on server resources...

Regards,

Roman
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-09 : 03:24:12
Also refer
http://vyaskn.tripod.com/sql_server_security_best_practices.htm
http://www.mindsdoor.net/SQLAdmin/sp_nrInfo.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -