Link to home
Start Free TrialLog in
Avatar of ONYX
ONYX

asked on

DBCC Inputbuffer

I'm trying to troubleshoot a SQL issue. I know it's a blocking issue in SQL 2005...so I go do the following:

1) sp_who2
2) I find the spid that is causing the block and do an DBCC Inputbuffer(spid)

The issue with this is that it only displays 256 characters. So, I'll only see part of a SQL Query and it truncates. Is there another tool or some kind of parameter I could put on this command so that the results aren't truncated?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of chapmandew
chapmandew
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ONYX
ONYX

ASKER

We do have SP2. How can I find out wha tthe db compt level is set to?

I will also try your query. Thank you.

right click the db, go to properties, then options...

you're welcome.
Avatar of ONYX

ASKER

Awesome! Thank you so much for your help. This is out of the scope of this question, but what's the difference between using JOIN and APPLY in a SQL Statement...it seems as though they accomplish similiar tasks.
No problem....the APPLY is new to 2005 and is used to pass values from a table or view as parameters into a table-valued function (which you can't do w/ a JOIN operator)
Avatar of ONYX

ASKER

Excellent...thanks again for your help and patience.
Avatar of ONYX

ASKER

Thank you for all of your help.