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.
| Author |
Topic |
|
sql_newblie
Starting Member
2 Posts |
Posted - 2006-01-31 : 16:19:56
|
| Hello,can someone tell me where I can look to find a sql command thatis being executed by an application against my database?In Oracle, I look in the v$sql_text view - is there something similar in SQL Server 2000 ?Many thanks in advance |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-01-31 : 16:22:57
|
| SQL Profiler is the tool to see what queries are being executed. If you know the spid number though via sp_who or sp_who2, you can run DBCC INPUTBUFFER(spidNo) to see the query.Tara Kizeraka tduggan |
 |
|
|
sql_newblie
Starting Member
2 Posts |
Posted - 2006-01-31 : 16:32:21
|
| Thanks a million ! much appreciated |
 |
|
|
|
|
|