Solved

Sybase, How to check statement which currently executed by spid

Posted on 2009-07-11
7
3,956 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 500 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Assisted Solution

by:IncisiveOne
IncisiveOne earned 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sybase sql anywhere unload database 3 860
VB6 to VB.NET transition 1 496
sql statement error 18 88
set dsync and directio options according to device type 4 64
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Deploying our service is a grudge match between customer benefits and customer pain. In one corner, rolling out fixes (yay!) and delivering new features (double yay!). In the other corner, training on new features (boo – sounds like work), and chan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 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