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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
right click the db, go to properties, then options...
you're welcome.
you're welcome.
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)
ASKER
Excellent...thanks again for your help and patience.
ASKER
Thank you for all of your help.
ASKER
I will also try your query. Thank you.