Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sybase, How to check statement which currently executed by spid

Posted on 2009-07-11
7
Medium Priority
?
4,455 Views
Last Modified: 2013-02-27
Hi,
In sql server dbcc inputbuffer / sql profiler will tell me what currently specific spid does, I will able to know in details what is current statement being executed.
How about in Sybase ?? sp_who is not enough information
0
Comment
Question by:motioneye
7 Comments
 
LVL 14

Expert Comment

by:shru_0409
ID: 24830407
http://www.sybase.com/detail?id=20450
this link may be useful for u
0
 
LVL 6

Accepted Solution

by:
IncisiveOne earned 2000 total points
ID: 24831514
(Sybase ASE is a much bigger, more feature-rich beast that runs on a variety of plaforms ... quite different to MS SQL.)

It depends on the version, and what options you have installed in the server.

Try, this works on all versions:
> dbcc sqltext (spid)

I trust you know to first exec:
> dbcc traceon (3604)

The SQL buffer size that will be displayed is subject to config parms

Cheers
0
 

Author Comment

by:motioneye
ID: 24834188
dbcc sqltext new to me :), okay let me try to find out, hmm I'm running on 15.0.2
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
LVL 6

Assisted Solution

by:IncisiveOne
IncisiveOne earned 2000 total points
ID: 24836497
In that case, you can also use:

> sp_showplan <spid>, null, null, null

Cheers

0
 

Author Closing Comment

by:motioneye
ID: 31602700
Thanks IncisiveOne, I know sometimes my questions are too  simple for you guys, but this the matter of me to get quick answer as the company direction go with sybase...u will hear more soon.. anyway I have downloadedmost pdf doc from syabse for day learning... thank again for support me
0
 
LVL 6

Expert Comment

by:IncisiveOne
ID: 24837829
My pleasure
0
 

Expert Comment

by:aimsupport
ID: 38933380
nice.

that is working gud for sybase.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
The decision to migrate to the cloud is not a simple one—many factors, such a cost, ease of use, and ongoing maintenance come into play. The goal is always for cloud platforms to make storage and backups more seamless and effective. Here’s a look at…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question