Execution Times of Stored Procedures Called from Other Stored Procedures

If I execute sys.dm_exec_procedure_stats, it will produce execution times of my stored procedures executed recently.
However, stored procedures called from other stored procedures do not show up.
Is there code that can return the execution times of stored procedures even though they are called from other stored procedures.

Look at the example. It is counting nested execution.
CREATE PROC z1SP AS SELECT * FROM Production.Product;
GO
CREATE PROC z2SP AS SELECT * FROM Production.Product WHERE Color is not null; EXEC z1SP;
GO
SELECT object_name(2002822197), object_name(2034822311);
--z1SP z2SP
EXEC z1SP; EXEC z2SP;
GO 10
SELECT * from sys.dm_exec_procedure_stats
database_id object_id type type_desc cached_time last_execution_time execution_count
16 2002822197 P SQL_STORED_PROCEDURE 2014-12-16 13:02:45.170 2014-12-16 13:02:46.717 20
16 2034822311 P SQL_STORED_PROCEDURE 2014-12-16 13:02:45.460 2014-12-16 13:02:46.687 10
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Similar Messages

  • Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Try
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

  • HT6337 How can i receive calls from other devises (non iOS) on my iPad

    I wanna get messages and phone calls from other devices on my iPad
    is it possible?

    Really? I can get calls from anybody on my iPad and Mac using Continuity.
    https://www.apple.com/ios/whats-new/continuity/
    iPad and Mac, now answering the call.
    Sometimes when your iPhone rings, it’s not where you are. Maybe it’s charging in another room. Or it’s buried in your backpack. But your Mac or iPad is sitting right there. Now you can make and receive phone calls on those devices as long as your iPhone running iOS 8 is on the same Wi-Fi network. Incoming calls show the caller’s name, number, and profile picture. Just click or swipe the notification to answer, ignore, or respond with a quick message. And making a phone call from your iPad or Mac is just as easy. Simply tap or click a phone number in Contacts, Calendar, or Safari. It all works with your existing iPhone number, so there’s nothing to set up
    You do need to have an iPhone on the same Wifi network though. But any call from any phone (does not need to be an iPhone) that can come in to your iPhone, can be picked up on a supported iPad or Mac.

  • Im visiting alaska and receive calls from other carriers

    Im visiting alaska and cannot receive calls from other carriers. Other than verizon or cricket. Please help. Not even home phones im from texas visiting missing all my calls. I can text and receive text

    The messAge say when someone calls is The number or code you dialed is incorrect

  • Is there a Flag indicate if the seq is called from other one or run independ

    Is there a Flag that indicate if the seq I am running is called from other seq. or it is running independently?

    Hi FMB,
    There is not really a flag but there is a property call RunState.CallStackDepth you can check.
    If this is greater than 0 then there is a caller sequence. Therefore to find the name of the caller sequence you would use NameOf("RunState.Caller.RunState.Sequence").
    For every increment in value of the CallStackDepth you would add "RunState.Caller." to the beginning of the lookup string.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to get the execution time of a Discoverer Report from qpp_stats table

    Hello
    by reading some threads on this forum I became aware of the information stored in eul5_qpp_stats table. I would like to know if I can use this table to determine the execution time of a worksheet. In particular it looks like the field qs_act_elap_time stores the actual elapsed time of each execution of specific worksheet: am I correct? If so, how is this value computed? What's the unit of measure? I assume it's seconds, but then I've seen that sometimes I get numbers with decimals.
    For example I ran a worksheet and it took more than an hour to run, and the value I get in the qs_act_elap_time column is 2218.313.
    Assuming the unit of measure was seconds than it would mean approx 37 mins. Is that the actual execution time of the query on the database? I guess the actual execution time on my Discoverer client was longer since some calculations were performed at the client level and not on the database.
    I would really appreciate if you could shed some light on this topic.
    Thanks and regards
    Giovanni

    Thanks a lot Rod for your prompt reply.
    I agree with you about the accuracy of the data. Are you aware of any other way to track the execution times of Discoverer reports?
    Thanks
    Giovanni

  • My apple iphone4 display got off, but it is getting call from other mobiles

    My iphone 4 display got off. First i thought it is got switched off, but surprisingly from other mobiles calls are going to my mobile. kindly help regarding this.

    frank_o_s wrote:
    My kid`s been using my apple ID/account for years, but now that he`s older it`s time he got his own. Is there any way to either make a twin account so he doesn`t lose all his purchases from iTunes/AppStore or does he have to start from scratch? They payment can still be from my card/account, that`s not the problem, but facetime, imessage etc. is a available on both mine and his apple products (I know you can check what email/phone number we can be reached at, but it`s just a click and he see my messages and I his). It`s the privacy problem that is the most important.
    He needs to have his own account, the sooner the better.
    As for content, non-protected songs can simply be copied to his own new library, and he can use them.  As for protected content and apps, anything he still wants will have to be replaced.

  • Need to run VI on boot or call from other application

    I am looking for the most basic way to get Labview to run a VI upon bootup or call from another application (without having to hit the run button on the toolbar.) I would rather not have to build an application; I don't want to buy the professional version. I want my data acquisition to recover from a power outage reboot and keep going without human intervention. Is there a way to build an init that launches the VI in run mode? A colleague of mine has convinced me labview is the way to go for a new experiment, but this is one stumbling block that needs to be resolved. Thanks for any help you can give.

    i have used the startup folder to run labview vi's on several machines and it *can* work just fine.
    however, sometimes there is a timimg problem and i get the message 'vi not found,' then labview usually loads the vi and runs - but leaves the error message, which can cause problems with later operations.
    today i had this problem with a 3.4 G HP machine running Win200. Labview 7.1 & DAQmx.
    my work around solution is to use the *MarcroScheduler* program. i call a it from the startup folder. it does the following
    (a) start Labview 7.1
    (b) wait 1 minute
    (c) execute the vi.
    without the wait state, Labview 7.1 will not run the vi properly.
    good luck with your applications.
    cu,
    larryb

  • Same URL when called from other page when called directly behaves different

    Hi All,
    I am working on SRM 5.0 implementation , the open catalog interface applications are called from a link from the standard ITS  (thses catalog applications are developed in BSP) and then submited back to the ITS application using a URL :
    va r ret_URL = "<% = hook_ur l%>"   <--- this is the return URl to which catalog data is submited
    d ocument.f inal . action = ret_URL;
    d ocument .final .method = " P O S T ";
    d ocument. final. submit ( );
    This application is transfered perfectly if the catalog is called by clicking link on standard ITS application(EBP application) but if i enter the catalog URL(BSP Application URL) directly in the browser and hardcode the value of HOOK_URL (ret_url) in BSP application , the catalog is submited but it shows a blank page with javascript error 'window.opener.isLeanWP' is null or not an object .
    hook_url = http://sapupd.mycompanyname.com:8002/sap/bc/gui/sap/its/bbpsc02/?~OkCode=ADDI&~Target=_top&~Caller=CTLG&~client=200&sap-client=200&~language=EN&~HTTP_CONTENT_CHARSET=utf-8
    Kindly suggest the solution. We need to call the OCI application directly and submit it to ITS application using this hook_url.
    Regards,
    Anubhav

    Please post this question to the Portal Applications forum.
    Thanks,
    Jerry

  • Problem with BAPI BAPI_MATERIAL_SAVEDATA when calling from other system

    Hi All,
    I able create new material using the BAPI BAPI_MATERIAL_SAVEDATA in development system.
    but when i am calling this BAPI from other systems by passing the same values that i used in the development system . system is giving me an error ( in the return statement) saying that material number doesn't exists .
    Can any one have some pointers towards this ?
    Thanks & Regards,
    Praveen

    Hi,
    this FM BAPI_MATERIAL_SAVEDATA
    is used to extend a material to another plant
    for that you need to read the original data via BAPI_MATERIAL_GET_DETAIL and then select additional data from MKVE and save it via BAPI_MATERIAL_SAVEDATA with table parameter SALESDATA
    also check with
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEDATA - QM - Inspection Setup
    Problem in BAPI_MATERIAL_SAVEDATA
    Thanks&Regards,
    Naresh

  • ProgressMonitor in thred, call from other class

    Hi all
    I have a problem using the ProgressMonitor... I just want to update the progress from another class.
    So what i was thinking was:
    I could implement a method that invoked the thread, and thereby updating the progress.
    The problem occurs when the calculating steps is going. The parent class calls ProgressDiff fine but it doesn't update it, it doesn't even show anything. Just when the task is finished it says, simulation done!!
    I have tried searching alot on these forums, and on google, but all methods implementing progressmonitor uses a call from within the class. <- Not what I want. :=)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.beans.*;
    public class ProgressDiff extends JFrame {
        public ProgressMonitor progressMonitor;
         public int tll;
        public ProgressDiff(int maks, String set) {
              super("Progress");
              setSize(250, 100);
            progressMonitor = new ProgressMonitor(null,
                                      "Differentiere og l�ser\n" + set,
                                      "", 0, maks);
            progressMonitor.setProgress(0);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setProgressTal(0, false);
              setLocationRelativeTo(null);
              setVisible(true);
        public void setProgressTal(int fremGang, boolean done) {
              tll = fremGang;
              SwingUtilities.invokeLater(new Update());
              if (done) {
                   Toolkit.getDefaultToolkit().beep();
                   JOptionPane.showMessageDialog(null,
                        "Simuleringen er f�rdig."
                        , "F�rdig",
                        JOptionPane.INFORMATION_MESSAGE);
         class Update implements Runnable {
            public void run() {
                   if (progressMonitor.isCanceled()) {
                   Toolkit.getDefaultToolkit().beep();
                   JOptionPane.showMessageDialog(null,
                        "Simuleringen er f�rdig."
                        , "F�rdig",
                        JOptionPane.INFORMATION_MESSAGE);
                   } else {
                        progressMonitor.setProgress(tll);
                        progressMonitor.setNote(String.format("Completed %d%%.\n", tll));
    }Any help would be apreciable!!
    Thx.

    Thx for the reply, I now have a working Progressmonitor which i easily can control
    import java.awt.Toolkit;
    import javax.swing.ProgressMonitor;
    *  Use of a ProgressMonitor. This class implements an easy to use progressmonitor for use in other classes.
    * @author     Nick Andersen
    * @created    4. marts 2008
    * @version    1.00
    public class ProgressMonitorSetup {
         private ProgressMonitor progressMonitor;
         private String title;
         private int min;
         private int progress;
         private int max;
         private String note;
         private String complete;
         private String cancel;
         private String completeTotal;
          * Constructor af ProgressMonitorSetup
         public ProgressMonitorSetup() {
              title = "K�rsel af langt job";
              min = 0;
              max = 100;
              complete = "Fremgang: ";
              cancel = "Job afbrudt.";
              completeTotal = "Job f�rdigt.";
              note = "";
          * Constructor af ProgressMonitorSetup
          * @param  title          The title in Progressmonitor
          * @param  min            The minimum value in the progressmonitor
          * @param  max            The maximum value in the progressmonitor
          * @param  complete       Beskrivelse af Parameteren
          * @param  completeTotal  Beskrivelse af Parameteren
          * @param  cancel         Beskrivelse af Parameteren
         public ProgressMonitorSetup(String title, int min, int max, String complete, String completeTotal, String cancel) {
              this.title = title;
              this.min = min;
              this.progress = min;
              this.max = max;
              this.complete = complete;
              this.completeTotal = completeTotal;
              this.cancel = cancel;
              note = "";
          *  S�tter title attributten af ProgressMonitorSetup object
          * @param  title  Den nye title v�rdi
         public void setTitle(String title) {
              this.title = title;
          *  S�tter minimum attributten af ProgressMonitorSetup object
          * @param  min  Den nye minimum v�rdi
         public void setMinimum(int min) {
              this.min = min;
          *  S�tter maximum attributten af ProgressMonitorSetup object
          * @param  max  Den nye maximum v�rdi
         public void setMaximum(int max) {
              this.max = max;
          *  S�tter runningComplete attributten af ProgressMonitorSetup object
          * @param  complete  Den nye runningComplete v�rdi
         public void setRunningComplete(String complete) {
              this.complete = complete;
          *  S�tter complete attributten af ProgressMonitorSetup object
          * @param  completeTotal  Den nye complete v�rdi
         public void setComplete(String completeTotal) {
              this.completeTotal = completeTotal;
          *  S�tter cancel attributten af ProgressMonitorSetup object
          * @param  cancel  Den nye cancel v�rdi
         public void setCancel(String cancel) {
              this.cancel = cancel;
          *  Returnere cancel attributten af ProgressMonitorSetup object
          * @return    cancel v�rdi
         public String getCancel() {
              return cancel;
          *  Returnere done attributten af ProgressMonitorSetup object
          * @return    done v�rdi
         public boolean isDone() {
              if (progress >= max) {
                   progressMonitor.close();
                   return true;
              } else {
                   return false;
          *  METODEN
         public void close() {
              progressMonitor.close();
          *  METODEN
         public void initProgressMonitor() {
              progressMonitor = new ProgressMonitor(null,
                   title, note,
                   min, max);
              progressMonitor.setMillisToDecideToPopup(100);
              progressMonitor.setMillisToPopup(100);
              progressMonitor.setProgress(min);
          *  S�tter progress attributten af ProgressMonitorSetup object
          * @param  i  Den nye progress v�rdi
          * @return    Beskrivelse af den Returnerede V�rdi
         public String setProgressMessage(int i) {
              progress = i;
              progressMonitor.setProgress(progress);
              note = complete + progress + " af " + max;
              progressMonitor.setNote(note);
              if (progressMonitor.isCanceled() || isDone()) {
                   Toolkit.getDefaultToolkit().beep();
                   if (progressMonitor.isCanceled()) {
                        progress = max++;
                        return cancel;
                   } else {
                        return completeTotal;
              return note;
          *  S�tter progress attributten af ProgressMonitorSetup object
          * @param  i  Den nye progress v�rdi
         public void setProgress(int i) {
              progress = i;
              progressMonitor.setProgress(progress);
              note = complete + progress + " af " + max;
              progressMonitor.setNote(note);
              if (progressMonitor.isCanceled() || isDone() ) {
                   Toolkit.getDefaultToolkit().beep();
                   if (progressMonitor.isCanceled()) {
                        progress = max++;
                   } else {
    }Sry about the comment, and the danish... But this works really nice, if you place the swingworker around the method needing progressmonitor.

  • Iphone 5 won't send/receive texts/calls from other iphone users

    So I recently upgraded my android phone to an iphone 5 on saturday and when I got it, I was able to make calls and receive texts from other iphone users. And now my texts aren't sending to other iphone users/calls and I won't receive them. My friends with iphones called my phone and my phone didn't receive their call. Also when i send texts it says "not delivered". I know it's just iphone users since my family members have androids.
    I've tried resetting my phone and taking out the sim.

    Try totally shutting all of your apps, double click the home button then hold your finger on an app until you see the red minus sign then tap that on all your app, then restart your iPhone, then give it a try.  If you are still having problems you will need to check with your service provider to make sure your account is provisioned correctly. 

  • Wi-Fi Calling / iPhone Cellular Calls from other devices

    I have two new iPhones 6 models.  Both are on T-Mobile and running 8.0.2.  One is gray and one is white.
    When I tried to setup wifi calling on the gray phone (from the Phone settings screen), I got the following warning:
    "If you turn on Wi-Fi calling, your other devices will no longer be able to make or receive calls through your iPhone."
    This was not an implication that I expected, but I nevertheless selected "OK" and moved on.  When I tried to turn "iPhone Cellular Calls" back on (from the FaceTime settings screen), I got this warning:
    "Wi-Fi calling will be turned off to allow other devices to make and receive calls through your iPhone."
    In any event, what is strange is that the white iPhone did not give me these warnings--both wifi calling and "iPhone Cellular Calls" appear to be on/activated on the white phone.
    So, my questions:
    1)     Is wifi calling not allowed if you have iPhone Cellular Calls turned on?  If not, why not?
    2)     Why the inconsistency between the two phones?

    Okay.  And, what else do you need to do to enable the Continuity feature that allows you make/receive phone calls on your iPad via your iPhone?
    Connect your iPhone, iPad, iPod touch, and Mac using ...
    Phone calls
    With Continuity, you can make and receive cellular phone calls from your iPad, iPod touch, or Mac when your iPhone is on the same Wi-Fi network.
    To make and receive phone calls, here's what you need:
    Sign in to the same iCloud account on all your devices, including your Mac.
    Your iPhone and your iPad or iPod touch need to use iOS 8 or later. Your Mac needs to use OS X Yosemite.
    All devices must be on the same Wi-Fi network.
    All devices must be signed in to FaceTime using the same iCloud account. This means any device that shares your Apple ID will get your phone calls. Look below for instructions on how to turn off iPhone cellular calls.
    Wi-Fi Calling needs to be off. Go to Settings > Phone. If you see Wi-Fi Calling, turn it off.
    Turn off iPhone cellular calls
    To turn off iPhone cellular calls on your iPad or iPod touch, go to Settings > FaceTime and turn off iPhone Cellular Calls.
    On your Mac, open the FaceTime app and go to FaceTime > Preferences. Click Settings and deselect the iPhone Cellular Calls option.

  • Can't send or recieve calls from other iphones

    After IOS upgrade to 8.0 on Iphone 5 can not send or receive/ calls or texts from other Iphones, but no problems to andriod phones or blackberry. Tried IOS 8, 8.0.1 and 8.0.2. Due need to go back to IOS 7?

    If you previously backed up your device you may be able to restore from your computer or through iTunes.
    http://www.apple.com/support/iPhone
    Search for how to restore iPhone to previous state, etc.
    Good Luck

  • Need help to reduce execution time for a procedure

    the following procedure takes to long to execute and the server times out. each individual select works perfectly. It does not have to do with the SORT_AREA_SIZE/PGA_AGGREGATE_TARGET not being large enough. Possible rewriting it in funcions might help i don't know.
    Thanks in advance
    PROCEDURE GET_RM_WORKABILITY_BY_PLANT
                (p_in_plantcode IN VARCHAR2,
                p_in_statusnum IN NUMBER,
                p_out_cursor     IN OUT tcursor) AS
        BEGIN
          OPEN p_out_cursor FOR
              select comp.segment1,
                      comp.description,
                      comp.organization_id,
                      nvl(sum(jot.qty), 0) job_qty,
                      nvl(moq.qty, 0) onhand_qty
              from   (select jdl.bill_sequence_id bsid,
                                sum(jdl.job_qty) qty
                      from        job_detail_lines jdl
                      where   jdl.job_stat = p_in_statusnum
                        and   jdl.prod_plant_id = p_in_plantcode
                      group by jdl.bill_sequence_id) jot,
                      (select m.inventory_item_id,
                                   sum(m.transaction_quantity) qty
                        from   mtl_onhand_quantities m
                        where  exists
                                  (select 'x'
                                 from   plant_codes p1,
                                          plant_codes p
                                  where  p.plant_code = p_in_plantcode
                                    and  p1.fac_id = p.fac_id
                                    and  m.organization_id = p1.organization_id)
                        group by m.inventory_item_id) moq,
                        (select msi.segment1,
                                msi.description,
                                msi.organization_id,
                                msi.inventory_item_id,
                                bom.bill_sequence_id
                        from   bom.bom_bill_of_materials bom,
                                bom.bom_inventory_components bic,
                                mtl_system_items msi,
                                plant_codes pc
                        where  pc.plant_code = p_in_plantcode
                          and  msi.organization_id = pc.organization_id
                          and  msi.item_type||'' IN ('PSSRM', 'PSRM')
                          and  bic.component_item_id = msi.inventory_item_id
                          and  ((bic.disable_date IS NULL AND SYSDATE>= bic.effectivity_date)
                                  or (SYSDATE <= bic.disable_date AND SYSDATE >= bic.effectivity_date))
                          and  bom.bill_sequence_id = bic.bill_sequence_id
                          and  bom.organization_id = 102) comp
              where  moq.inventory_item_id(+) = comp.inventory_item_id
                and  jot.bsid(+) = comp.bill_sequence_id
              group by comp.segment1,
                           comp.description,
                         comp.organization_id,
                         moq.qty;
    END;

    Ok, so how does it perform if you use the bom info as an in-line query outer join to job detail lines?
    SELECT v.plant_code,
           v.segment1,
           v.description,
           v.organization_id,
           v.inventory_item_id,
           SUM (jdl.job_qty) job_qty
      FROM (
    SELECT pc.plant_code,
           msi.segment1,
           msi.description,
           msi.organization_id,
           msi.inventory_item_id,
           bom.bill_sequence_id
      FROM bom.bom_bill_of_materials bom,
           bom.bom_inventory_components bic,
           mtl_system_items msi,
           plant_codes pc
    WHERE pc.plant_code = p_in_plantcode
       AND msi.organization_id = pc.organization_id
       AND msi.item_type || '' IN ('PSSRM', 'PSRM')
       AND bic.component_item_id = msi.inventory_item_id
       AND bic.effectivity_date <= SYSDATE
       AND (   bic.disable_date IS NULL
            OR bic.disable_date >= SYSDATE)
       AND bom.bill_sequence_id = bic.bill_sequence_id
       AND bom.organization_id = 102
           )  v,
           job_detail_lines  jdl
    WHERE jdl.prod_plant_id(+) = v.plant_code
       AND jdl.bsid(+) = v.bill_sequence_id
       AND jdl.job_stat(+) = p_in_statusnum
    GROUP BY
           v.plant_code,
           v.segment1,
           v.description,
           v.organization_id,
           v.inventory_item_id;

Maybe you are looking for

  • How to implement F4IF_INT_TABLE_VALUE_REQUEST in search help User Exit?

    Hi, I need to enhanse search help and add F4 functionality to display list of company codes when cursor is in PBUKR field. I put F4IF_INT_TABLE_VALUE_REQUEST into the user exit but nothing works. I get error that PROCESS is not defined. If I remove t

  • Re: exit from a while loop in sub vi

    I think the mail didn`t get through first time. Repeat posting - Sorry if this occurs twice Shane Hallo, Can the use of occurrences solve this problem? The Main program can create an occurrence which can be passed to the sub-VIs. Upon pressing the bu

  • Syncing iPad to Outlook Contacts on my PC

    I have decided not to use the iCloud for syncing because my contacts list has too much private data. I know iCloud is supposedly a secrure site, but I don't trust that much personal info of my friends and family on the Internet. So I am using iTunes

  • Installing Acrobat on multiple computers?

    Hi, It appears the time has come in our small business to justify the need for Acrobat Standard.  My question is, if I pay for the full version, how many downloads are we allowed.  My small business uses only one computer but we have plans to update

  • UNABLE TO SAVE TO SAN

    When we open an exiting Premiere or Photoshop file from the SAN only the owner of the file can save it to the same location when asked to over-write the file. None owners have to copy the file to a new location of perform a 'save as'.