Can we run 4 Stored Prcocs with same parameters in parellel

I have 4 stored procedures which have the same parameters startdate and enddate.
Each of them takes 10 sec to execute.The UI loads the page only after executing all the 4 sps that means after 40 secs(10 secs for each procedure)
Can we do it in a way in sql server where in all are executed/fired at the same time so that the page loads in 10 secs????
can we put 4 sps in a single sp with startdate and enddate  and execute all in parallel???
or can anyone suggest  any other solution for this??
Thanks,
Rahul Abhinav.

Another way to make the sp-s jobs which can be started (almost) simultaneously from a stored procedure:
Reference: How to start a SQL Server job from a stored procedure?
There is no guarantee though about finishing 4 times faster.
When a job started from a stored procedure, the logic flow will proceed to the next statement immediately, there is no wait for the job to finish.
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

  • Can I run 2 different domains with same name but on 2 different machines?

    I am trying to setup 2 domains with same name (sharedcds1) on 2 different machines (Machine1 and Machine2).
              When I start the weblogic managed server 1 (sharedcds1managedserver1) on Machine2, it throws an error saying it has some conflicts with the managed server 1 running on Machine1. How did the managed server of one machine know about the other server. Can I run 2 different domains with same name but on 2 different machines?
              Here is the error in the log -
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 4596206652609838848S:130.170.61.153:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 8842351474821025197S:130.170.61.154:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              Thanks
              Satish

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

  • I do not have Elements.  Can I run Premier alone or with Photoshop 6 or CC

    A simple question, I do not have Elements and want to learn video.  Can I run Premier alone or with Photoshop 6 or CC?
    Thank for you help.
    Roy

    roy
    I am not clear how you want to carry out your plan to learn video.
    The Elements programs are Photoshop Elements (photo editor) and Premiere Elements (video editor). They are standalone products, and each comes with an Elements Organizer. When the same version for each of these programs is on that same computer, they share a common Elements Organizer catalog.
    When you have the same version Photoshop Elements as Premiere Elements on the same computer, there are some "integration" perks that come with that type of arrangement. I do not believe that Premiere Elements and Photoshop CS6 or CC will provide for these inegration perks.
    If you plan on going with Photoshop CS6 or CC (photo editing), why not learn your video on Premiere Pro CS6 or CC. These days these Pro versions can be looked at on a monthly basis with a small subscription. You can inquire with Adobe Sales on that type of detail.
    Avoid buying until after you have looked at the free tryouts to make sure the program is compatible with your computer environment and meets your video editing needs.
    Please consider.
    ATR

  • Can not run multiple firefox windows with version 4

    After the upgrade to FF4 the problem started happening. In ver 3 I used the profile manager and was able to run 2 firefox windows at the same time with no problems in Windows 7.
    Now when I try to do this with version 4, one firefox window errors out with 'firefox stopped working'
    I thought it was due to an incompatible add on or something, so I did a complete program removal, rebooted, cleaned the registry and removed all folders that firefox put on my system. The problem continues.

    You can only run multiple version at the same time if the next version is started with the -no-remote switch added to the command line in the desktop shortcut.
    "C:\Program Files\Mozilla Firefox XX\firefox.exe" -no-remote -P
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How can I run a vi developed with 7 Express?

    How can I run a vi developed with LabView 7 Express on another machine ? Do runtime versions exist ?

    Apparently, you want to run it on a machine that does not have LabVIEW installed.
    To make a standalone executable of your LabVIEW program, you need to have the Application builder (included in LabVIEW professional and higher, avaliable as an add-on for base and full).
    To run the application, the target system need to have the LabVIEW 7.0 runtime installed (available as a free download).
    There is also the LabVIEW Player. In this case you need to digitally sign your VIs and there are a few limitations. It is meant for for sharing code ideas and is not a viable substitute for the appl
    ication builder.
    Of course you could also get a second copy of LabVIEW.
    Some other options that would work in a very narrow set of situations: Read your LabVIEW license agreement. Under certain conditions you are allowed to install a second copy of LabVIEW on your home computer. If this is for personal educational use only and you qualify, you could also buy the LabVIEW student edition.
    LabVIEW Champion . Do more with less code and in less time .

  • How can i run Lightroom 3.6 with RAW files from Canon 650D?

    How can i run Lightroom 3.6 with RAW files from Canon 650D?

    Download the newest DNG converter from Adobe, convert your RAW photos to DNG, and then Import into Lightroom.

  • Adobe Updater can be run only by users with administrator rights error on 2003 termianl server

    I just installed the latest security update of 8.1.7 on my two terminal servers. Now when each users logs in, they get the following error.
    Insufficient Rights (title)
    Adobe Updater can be run only by usrs with administrator rights.
    They simply click OK and it goes away but it is very annoying. It seems like every time their is an update to Adobe Reader, something goes wrong.
    Does anybody have any thoughts on how to stop the Adobe Updater from loading when my users login? Thanks,
    Justin

    I ended up finding the solution at this link.
    http://forums.adobe.com/message/1770665
    Erech_Belt said
    5. Aug 14, 2008 7:22 AM in response to: (LeaAnn_Coldren)
    Re: Insufficient Rights Window for non-admins after 8.1.2 successful install
    Here is the solution I found.
    "Renaming %program files%/Common Files/Adobe/updater5 to something else removed the error."
    This seems like a brute force approach, but it does work. I checked the event logs after doing this and don't see any errors in the App or System logs. This folder is the location of AdobeUpdater.exe and all of the Adobe .cer files, so it makes sense that this works, but seems like it should generate other errors...
    This is not how I wanted to solve the problem but it did solve it.
    Justin

  • Can I run Director 11.0 with MacOsX10.9 (Mavericks)?

    Can I run Director 11.0 with MacOsX10.9 (Mavericks)?
    Just installed Maverics and tried to open Director 11.0 and got the alert to deinstall and reinstall Director, if this not helps I should contact support. I did the deinstallation and the new installation but still cant run Director.
    Thank you for help.
    Wolf

    Can I run Director 11.0 with MacOsX10.9 (Mavericks)?
    Just installed Maverics and tried to open Director 11.0 and got the alert to deinstall and reinstall Director, if this not helps I should contact support. I did the deinstallation and the new installation but still cant run Director.
    Thank you for help.
    Wolf

  • Can i run two widgets at the same time on the same page?

    Can i run two widgets at the same time on the same page?
    Hi
    I have created and published 4 free ibooks and i would to run two widgets
    - a countdown clock
    - a review test
    at the same time on the page. Can i do that?
    Thanks in advance
    Haris

    thanks for your answer. Yes indeed HTML widgets run only full screen (snif snif). I consider this as a "distinguishing treatment".
    One solution  i read !!!!! was to create through keynote a countdown clock, to export to quicktime move and to imported at iBA predefined widgets. of course this is not the solution i need.
    So, in order to have at the same widget and run together a count down clock and a preview test (20 questions)  i must
    1)"hack" the preview widget and insert a countdown clock
    2) create a preview test using iAD.....
    thanks again
    haris

  • Hi, face issue that can not activate iPhone but can log in iCloud wed page with same Apple ID and Password after Iphone been update to IOS 8. Need Help. Thanks

    Hi, face issue that can not activate iPhone but can log in iCloud web page with same Apple ID and Password after iPhone been update to IOS 8.1.2
    Also in the iCloud 'Find my iPhone" , no Device been found.
    Been raise this incident, got the Case ID and call to Apple Support but it seems like out of office hour
    Need Help Thanks

    Yes, able to make a call to Apple Support but in the end still keep on going to try the Apple ID and Password.
    And it seems like the iPhone ID  in this device been locked
    May to know is that possible to ask the Apple Technician to unlocked the ID so i could activate the iPhone without log in any Apple ID?

  • K7N2G 6570: Can it run XP3000+ 400 FSB with External VGA & 400 RAM

    K7N2G 6570: Can it run XP3000+ 400 FSB with External VGA & 400 RAM
    I have a K7N2G 6570. I am running an AGP graphics card. I have 400 FSB ram. Can I run the XP 3000 + with the 400 FSB?
    I read similar posts but none really answer if this is a runnable scenario. They only reference that the official spec is 333 with the built in graphics.
    Help is appreciated!
    Thanks!

    According to this link about the K7N2G, It will suopport a 400fsb cpu by using an external video card.
    http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=398

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • Calling stored procedure with output parameters in a different schema

    I have a simple stored procedure with two parameters:
    PROCEDURE Test1(
    pOutRecords OUT tCursorRef,
    pIdNumber IN NUMBER);
    where tCursorRef is REF CURSOR.
    (This procedure is part of a package with REF CURSOR declared in there)
    And I have two database schemas: AppOwner and AppUser.
    The above stored procedure is owned by AppOwner, but I have to execute this stored procedure from AppUser schema. I have created a private synonym and granted the neccessary privileges for AppUser schema to execute the package in the AppUser schema.
    When I ran the above procedure from VB using ADO and OraOLEDB.Oracle.1 driver, I got the following error when connecting to the AppUser schema:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TEST1'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    but when I was connecting to the AppOwner schema, everything is running correctly without errors.
    Also, when I switch to the microsoft MSDAORA.1 driver, I can execute the above procedure without any problems even when connecting to the AppUser schema.
    I got this error only when I am trying to execute a stored procedure with an output parameter. All other procedures with only input parameters have no problems at all.
    Do you know the reason for that? Thanks!

    If anyone has figured this one out let me know. I'm getting the same problem. Only in my case I've tried both the "OraOLEDB.Oracle" provider and the "MSDAORA" provider and I get an error either way. Also my procedure has 2 in parameters and 1 out parameter. At least now I know I'm not the only one with this issue. :)
    '*** the Oracle procedure ***
    Create sp_getconfiguration(mygroup in varchar2, myparameter in varchar2, myvalue out varchar2)
    AS
    rec_config tblconfiguration.configvalue%type;
    cursor cur_config is select configvalue from tblconfiguration where configgroup = mygroup and configparameter = myparameter;
    begin
    open cur_config;
    fetch cur_config into rec_config;
    close cur_config;
    myvalue := rec_config;
    end;
    '** the ado code ****
    dim dbconn as new adodb.connection
    dim oCmd as new adodb.connection
    dim ors as new adodb.recordset
    dbconn.provider = "MSDAORA" 'or dbconn.provider = "OraOLEDB.Oracle"
    dbconn.open "Data Source=dahdah;User ID=didi;Password=humdy;PLSQLRSet=1;"
    set ocmd.activeconnection = dbconn
    cmd.commandtext = "{call fogle.sp_getconfiguration(?,?)}"
    'i've also tried creating a public synonym called getconfiguration and just refering to procedure by that.
    ' "{call getconfiguration(?, ?)}"
    ' "{call getconfiguration(?,?, {resultset 1, myvalue})}"
    'and numerous numerous other combinations
    set oPrm = cmd.createparameter("MYGROUP", advarchar, adparaminput, 50, strGrouptoPassIn$)
    cmd.parameters.append oPrm
    set oPrm = cmd.createParameter("MYPARAMETER", advarchar, adParamInput, 50, strParameterToPassIn$)
    cmdParameters.append oPrm
    set rs = cmd.execute

  • How to call stored procedure with multiple parameters in an HTML expression

    Hi, Guys:
    Can you show me an example to call stored procedure with multiple parameters in an HTML expression? I need to rewrite a procedure to display multiple pictures of one person stored in database by clicking button.
    The orginal HTML expression is :
    <img src="#OWNER#.dl_sor_image?p_offender_id=#OFFENDER_ID#" width="75" height="75">which calls a procedure as:
    procedure dl_sor_image (p_offender_id IN NUMBER)now I rewrite it as:
    PROCEDURE Sor_Display_Current_Image(p_n_Offender_id IN NUMBER, p_n_image_Count in number)could anyone tell me the format for the html expression to pass multiple parameters?
    Thanks a lot.
    Sam

    Hi:
    Thanks for your help! Your question is what I am trying hard now. Current procedure can only display one picture per person, however, I am supposed to write a new procedure which displays multiple pictures for one person. When user click a button on report, APEX should call this procedure and returns next picture of the same person. The table is SOR_image. However, I rewrite the HTML expression as follows to test to display the second image.
    <img src="#OWNER#.Sor_Display_Current_Image?p_n_Offender_id=#OFFENDER_ID#&p_n_image_Count=2" width="75" height="75"> The procedure code is complied OK as follows:
    create or replace
    PROCEDURE Sor_Display_Current_Image(p_n_Offender_id IN NUMBER, p_n_image_Count in number) AS
        v_mime_type VARCHAR2(48);
        v_length NUMBER;
        v_name VARCHAR2(2000);
        v_image BLOB;
        v_counter number:=0;
        cursor cur_All_Images_of_Offender is
          SELECT 'IMAGE/JPEG' mime_type, dbms_lob.getlength(image) as image_length, image
          FROM sor_image
          WHERE offender_id = p_n_Offender_id;
        rec_Image_of_Offender cur_All_Images_of_Offender%ROWTYPE;
    BEGIN
        open cur_All_Images_of_Offender;
        loop
          fetch cur_All_Images_of_Offender into rec_Image_of_Offender;
          v_counter:=v_counter+1;
          if (v_counter=p_n_image_Count) then
            owa_util.mime_header(nvl(rec_Image_of_Offender.mime_type, 'application/octet'), FALSE);
            htp.p('Content-length: '||rec_Image_of_Offender.image_length);
            owa_util.http_header_close;
            wpg_docload.download_file (rec_Image_of_Offender.image);
          end if;
          exit when ((cur_All_Images_of_Offender%NOTFOUND) or (v_counter>=p_n_image_Count));
        end loop;
        close cur_All_Images_of_Offender;
    END Sor_Display_Current_Image; The procedure just open a cursor to fetch the images belong to the same person, and use wpg_docload.download_file function to display the image specified. But it never works. It is strange because even I use exactly same code as before but change procedure name, Oracle APEX cannot display an image. Is this due to anything such as make file configuration in APEX?
    Thanks
    Sam

  • Calling a Stored Procedure with output parameters from Query Templates

    This is same problem which Shalaka Khandekar logged earlier. This new thread gives the complete description about our problem. Please go through this problem and suggest us a feasible solution.
    We encountered a problem while calling a stored procedure from MII Query Template as follows-
    1. Stored Procedure is defined in a package. Procedure takes the below inputs and outputs.
    a) Input1 - CLOB
    b) Input2 - CLOB
    c) Input3 - CLOB
    d) Output1 - CLOB
    e) Output2 - CLOB
    f) Output3 - Varchar2
    2. There are two ways to get the output back.
    a) Using a Stored Procedure by declaring necessary OUT parameters.
    b) Using a Function which returns a single value.
    3. Consider we are using method 2-a. To call a Stored Procedure with OUT parameters from the Query Template we need to declare variables of
    corresponding types and pass them to the Stored Procedure along with the necessary input parameters.
    4. This method is not a solution to get output because we cannot declare variables of some type(CLOB, Varchar2) in Query Template.
    5. Even though we are successful (step 4) in declaring the OUT variables in Query Template and passed it successfully to the procedure, but our procedure contains outputs which are of type CLOB. It means we are going to get data which is more than VARCHAR2 length which query template cannot return(Limit is 32767
    characters)
    6. So the method 2-a is ruled out.
    7. Now consider method 2-b. Function returns only one value, but we have 3 different OUT values. Assume that we have appended them using a separator. This value is going to be more than 32767 characters which is again a problem with the query template(refer to point 5). So option 2-b is also ruled out.
    Apart from above mentioned methods there is a work around. It is to create a temporary table in the database with above 3 OUT parameters along with a session specific column. We insert the output which we got from the procedure to the temporary table and use it further. As soon the usage of the data is completed we delete the current session specific data. So indirectly we call the table as a Session Table. This solution increases unnecessary load on the database.
    Thanks in Advance.
    Rajesh

    Rajesh,
    please check if this following proposal could serve you.
    Define the Query with mode FixedQueryWithOutput. In the package define a ref cursor as IN OUT parameter. To get your 3 values back, open the cursor in your procedure like "Select val1, val2, val3 from dual". Then the values should get into your query.
    Here is an example how this could be defined.
    Package:
    type return_cur IS ref CURSOR;
    Procedure:
    PROCEDURE myProc(myReturnCur IN OUT return_cur) ...
    OPEN myReturnCur FOR SELECT val1, val2, val3  FROM dual;
    Query:
    DECLARE
      MYRETURNCUR myPackage.return_cur;
    BEGIN
      myPackage.myProc(
        MYRETURNCUR => ?
    END;
    Good luck.
    Michael

Maybe you are looking for

  • Dependency is not configured in the schema resource Error (OSB)

    Hi all, I am using OSB(10gR3). I am using workshop IDE. I have copied few Xsds into a project. One schema which has an import throws an error "dependency is not configured in the schema resource Error .Possible reason one or more import/include not s

  • Windows user switching to Mac, finding everything and how to?

    Hi, I'm currently a Windows 7 user. I'm happy with windows but I could be happier! I have an iPhone 4 and an iPad 2 and I absolutly love how they work together (via iCloud etc) and also how everything looks and feels. One thing in my opinion that wip

  • Loading Attribute Dimension - Hyperion Planning

    Hello Everyone, I appreciated a lot informations that I found here. I red the http://john-goodwin.blogspot.com/2008/11/odi-series-loading-essbase-metadata.html about loading attribute dimension on Essbase, but when I try to execute the same steps usi

  • Comparison of Imperva to Oracle

    Has anyone compared Imperva SecureSphere Database Security Products with Oracle's Audit Vault Database Firewall? Looking for something that would show the pro's/con's of each product for comparison purposes?   Can you list the differences/advantages?

  • Register Tag libraries?

    I just started usign BEA Workshop, it looks great except it is not behaving well with my function tags. I have: <jsp:root version="1.2"   xmlns:funk = "http://myurl/functions" > ${funk:contentURL(entry)}This works fine when i run it, but in the envir