If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to get the last executed SQL command for each DB connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-06, 01:29
dnlchou1 dnlchou1 is offline
Registered User
 
Join Date: Apr 2006
Posts: 1
How to get the last executed SQL command for each DB connection

Hello,

I am using DB2 8.2. And I am wondering how to get the last executed SQL command for each DB connection. I tried to get snapshot, but it seems that no such information can be retrieved from DB2 snapshot. Please advise if any related mechanism available. Thanks a lot.
Reply With Quote
  #2 (permalink)  
Old 04-06-06, 08:26
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Look at the SNAPSHOT_STATEMENT function. You can find out about it by looking at the online documentation located at:

http://publib.boulder.ibm.com/infoce.../v8//index.jsp

Look in the Reference->SQL->Functions->Table Functions

HTH

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On