Scheduler which calls procedure

In Procedures, I have one procedure which sends mail.
I want to create a scheduler which calls this procedure everyday. Please help me.
Follwoing is the procedure
create or replace procedure BGV_REMINDER as
id_email number;
l_startdate date;
l_vacancy varchar2 (300);
l_declinedate date;
remindfreq number;
l_HIRE_TYPE varchar2 (32700);
l_emailsenddate date;
today_date date;
accepted_date date;
l_id NUMBER;
candstat varchar2(3);
l_subject VARCHAR2(32700);
l_candid_name varchar2(300);
l_body CLOB := '';
-- ' HTML enabled mail client.' || utl_tcp.crlf;
l_body_html CLOB;
l_mgr_emailid varchar2(32700);
l_candid_emailid varchar2(32700);
l_from_emailid varchar2(32700) :='[email protected]';
begin
for cur1 in (select ID,hiring_manager,vacancy,hire_type,hiring_manager_email,candidate_email from bgv where upper(trim(change_reason))=upper(trim('Offer Accepted by Applicant')) and to_char(ACCEPTEMAILSENT_ON,'mm/dd/yyyy')<=to_char(sysdate-3,'mm/dd/yyyy') and PROPOSED_START_DATE is null)
loop
l_subject:='Reminder: iRec - Confirmation Required on Start date'||' - '||cur1.vacancy;
l_candid_emailid :=cur1.candidate_email;
l_mgr_emailid :=cur1.hiring_manager_email;
select substr(candidate,instr(candidate,',')+2), round(sysdate-nvl(remindersent_on,'03/22/2011')) into l_candid_name,remindfreq from bgv where id=cur1.id;
l_body_html:='<html>
Dear '|| l_candid_name ||' </b>,<p/></p>
Just a Gentle reminder, Please confirm all the details</p>
Best Regards,<p/>
Vinod</p></font></td></tr>
</table>
</span>
</body>
</html>';
if(remindfreq>=3) then
l_id := APEX_MAIL.SEND (
P_TO => l_candid_emailid,
P_CC => l_mgr_emailid,
P_FROM => l_from_emailid,
P_BODY => l_body_html,
P_BODY_HTML => l_body_html,
P_SUBJ => l_subject);
update bgv set remindersent_on=to_char(sysdate,'mm/dd/yyyy');
commit;
APEX_MAIL.PUSH_QUEUE;
end if;
end loop;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
end;
Edited by: user771319 on Mar 22, 2012 4:44 AM

Hi,
You can use dbms_scheduler.create_job . The job_type would be 'plsql_block', the job_action would be the procedure name, the repeat_interval would be 'freq=daily' , and remember to set enabled=>true.
Thanks,
Ravi.

Similar Messages

  • Can JDBC adapter be scheduled to call stored procedures

    Can JDBC adapter be scheduled to call stored procedure in other database passing previous date as input parameter

    Hi Gurus,
    actually our scenario is jdbc->XI( <-RFC->)->File
      Here our payload is around 5000 records
    can it be advisable to use rfc synchronous communication.
    The scenario will be exected only in night times.so can we schedule the adapter as we are using sp9.
    If not what must be the good design approach.
    And also after scheduling to a perticular period ,if there is any down time of XI server,will the process start immediately after the sever up or it will again watch for that perticular time.

  • How to call procedure in which one formal parameter is associative array ty

    how to call procedure in which one formal parameter is associative array type,
    pls explain with eg.

    >
    above code work fine but when i use case then it give error like
    i identifier should be declare
    & my code is as
    CASE v_array(i)
    WHEN 'A' THEN
    insert into di_ivpn_report (ID, test_name, table_name, status, entity, proposition)
    values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
    v_status, v_ent_name, v_array(i));
    WHEN 'B' THEN
    insert into di_mpls_report (ID, test_name, table_name, status, entity, proposition)
    values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
    v_status, v_ent_name, v_array(i));
    END CASE;
    >
    Then you have to use ordinary loop
    PROCEDURE insert_update_***_array (TRANID IN VARCHAR2, ATT_NAME IN VARCHAR2, ENT_NAME VARCHAR2, v_array IN ***_array)
      IS
        v_tranid VARCHAR2(1);
        v_att_name VARCHAR2(100) := ATT_NAME;
        v_ent_name VARCHAR2(100) := ENT_NAME;
        v_att_id VARCHAR2(6);
        v_ent_id NUMBER;
        v_status VARCHAR2(20) DEFAULT 'INACTIVE';
        I        NUMBER;
       BEGIN
        i := v_array.first;
        while i is not null loop
          CASE v_array(i)
          WHEN 'A' THEN
            insert into di_ivpn_report (ID, test_name, table_name, status, entity, proposition)
            values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
            v_status, v_ent_name, v_array(i));
          WHEN 'B' THEN
            insert into di_mpls_report (ID, test_name, table_name, status, entity, proposition)
            values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
            v_status, v_ent_name, v_array(i));
          END CASE;     
          i := v_array.next(i);
        end loop; 
    end;

  • Problem with call procedure

    HI,
    i've a procedure which calls another procedure.
    This is the call:
    Export_inspection_Schema(portion);
    And the other procedure begins with
    CREATE OR REPLACE PROCEDURE Export_inspection_Schema (p_portion IN VARCHAR2)
    IS...
    But it doesn't work i always get this error messages:
    ORA-06502: PL/SQL: numeric or value error
    ORA-01722: Invalid Number
    What is wrong?
    Thanks for help.
    With best regards
    Nicole

    Somewhere you have got a string to number conversion on a variable that doesn't hold a valid number. If you're lucky it's an explicit call of TO_NUMBER() which is at least easy to search for. Otherwise you'll need to track down all the assignments where datatype conversion may occur (this includes DECODE, NVL, etc).
    If the error stack gave you a line number then that's where to start.
    Cheers, APC

  • Call procedure via dynamic sql

    Dear Oracle experts,
    I try to call several stored procedures from several packages within the function below.
    These stored procedures all own a procedure returning a version string.
    I would like to write a function which gets a schemaname (for the schema which contains the package), and a packagename which calls a procedure within that package (all packages have a procedure called sp_packageversion which returns a versionstring) and returns the received versionstring.
    But my codes doesn't work because the dynamic sql doesn't call the procedure.
    What am I doing the wrong way ?
    function func_GetPackageVersion(prm_ecs_Schemaname varchar2, prm_objectname user_procedures.object_name%type
    ) return varchar2 is
    sqlstmt varchar2(100);
    objectversion varchar2(50);
    begin
    sqlstmt := prm_ecs_Schemaname || '.' || prm_objectname || '.sp_packageversion(objectversion)';
    execute immediate sqlstmt;
    return objectversion;
    end func_GetECSPackageVersion;
    Hope someone can help.
    Best regards,
    Daniel

    test@ora>
    test@ora>
    test@ora> --
    test@ora> -- the package
    test@ora> --
    test@ora> create or replace package my_pkg
      2  as
      3    procedure sp_packageversion (objectversion out varchar2);
      4  end;
      5  /
    Package created.
    test@ora>
    test@ora> create or replace package body my_pkg
      2  as
      3    procedure sp_packageversion (objectversion out varchar2)
      4    is
      5    begin
      6      objectversion := 'VERSION IS 10.1.2.3';
      7    end;
      8  end;
      9  /
    Package body created.
    test@ora>
    test@ora> --
    test@ora> -- the function
    test@ora> --
    test@ora> create or replace function func_GetPackageVersion (
      2    prm_ecs_Schemaname varchar2,
      3    prm_objectname     user_procedures.object_name%type
      4  )
      5  return varchar2
      6  is
      7    sqlstmt varchar2(4000);
      8    objectversion varchar2(50);
      9  begin
    10    execute immediate 'BEGIN '|| prm_ecs_Schemaname ||'.' || prm_objectname || '.sp_packageversion(:x); END; ' USING OUT objectversion;
    11    return objectversion;
    12  end;
    13  /
    Function created.
    test@ora>
    test@ora> --
    test@ora> -- anonymous pl/sql block for the function
    test@ora> --
    test@ora> declare
      2    p_ecs_Schemaname  varchar2(30) := 'TEST';
      3    p_objectname      user_procedures.object_name%type := 'MY_PKG';
      4    v_return_str      varchar2(32767);
      5  begin
      6    v_return_str := func_GetPackageVersion (p_ecs_Schemaname, p_objectname);
      7    dbms_output.put_line(v_return_str);
      8  end;
      9  /
    VERSION IS 10.1.2.3
    PL/SQL procedure successfully completed.
    test@ora>
    test@ora>
    test@ora>HTH
    isotope

  • Call procedure from batch-file

    Hello,
    I want to write a batch-file which call a stored procedure and deletes a file in a directory.
    I wrote in my batch-file this. But it doesn't work.
    SQLPLUS scott/tiger@ proc
    del c:\test.txt

    You put the space on the wrong place.
    Try this:
    SQLPLUS scott/tiger @proc
    del c:\test.txt

  • Call procedure across schema

    I have oracle 8i
    i have multiple identical schema for different country.
    i write one procedure in one schema(country_1) and granted to all others for execute.
    now i am connected to country_2 which doesn't have procedure,
    and i am calling procedure of country_1(which has a procedure).
    upto this everything is fine
    but problem is i want to
    execute the procedure on the recently connected schema(country_2),it is executing on country_1(where actual procedure is )
    Thanks,
    prathesh
    ([email protected])

    You need to add AUTHID CURRENT_USER to your create procedure command.
    From the documentation
    invoker_rights_clause
    The invoker_rights_clause lets you specify whether the procedure executes with the privileges and in the schema of the user who owns it or with the privileges and in the schema of CURRENT_USER.
    This clause also determines how Oracle resolves external names in queries, DML operations, and dynamic SQL statements in the procedure.
    TTFN
    John

  • Trigger calling procedure, then commit problems

    I am new to this so please forgive my stupidity!
    I have a trigger:
    CREATE OR REPLACE TRIGGER live_account_trigger
       AFTER INSERT
       ON sforce_live_test
       FOR EACH ROW
    BEGIN
       mapsapp.live_account_upsert;
    END live_account_trigger;
    /which calls a procedure:
    CREATE OR REPLACE PROCEDURE live_account_upsert
    AS
       l_page   LONG;
       l_url    VARCHAR2 (1000) := 'http://sfdc-db-d1/~msimonds/live_upsert.php';
    BEGIN
       --COMMIT;
       l_page := UTL_HTTP.request (l_url);
    END;
    /which invokes UTL_HTTP. What this process is supposed to do is set off a trigger to run the script in the procedure which simply inserts new records which are input into the table. Now if I do the following as a test:
    insert into sforce_live_test (customer_name, schedule_id) values ('Fox and the Hound', 8020);
    to kick off the trigger, the information is placed into the table and the script runs (it emails me to tell me it has processed) but the new data is not being sent to salesforce. It seems that it does not perform a COMMIT, becuase if I run the script via my web browser, it runs just fine after I run the script
    What can I do to place a COMMIT into the procedure, because I get an error if I place it on

    Okay that is a little beyond my knowledge at current time, i guess I need to do some research.
    Maybe I need to explain what I am trying to accomplish and you could tell me if the JOB is the best solution before I continue:
    We have an internal sales system which has all our major clients on it. New accounts are created and old accounts are updated from this internal system. Currently there is a view that is updated once every 24 hours from one Oracle DB to my instance of Oracle. I have a series of PHP account scripts that are set on CRON jobs that run once a week to send the new accounts and updated accounts to our instance of Salesforce.com over their API using SOAP
    I created a staging table and the trigger which kicks off once an insert (for now, testing) into the staging table and then the UTL_HTTP to kick off a new account PHP script to send that transaction straight into salesforce. Kind of a live update instead of running the weekly CRON jobs
    So I created this trigger (changed it since then to incorporate the procedure also):
    CREATE OR REPLACE TRIGGER MAPSDATA.live_account_trigger
       AFTER INSERT
       ON sforce_live_test
       FOR EACH ROW
    DECLARE
       l_page   LONG;
       l_url    VARCHAR2 (1000) := 'http://sfdc-db-d1/~msimonds/live_upsert.php';
    BEGIN
       l_page := UTL_HTTP.request (l_url);
    END live_account_trigger;
    /But if I do a test by simply doing something like this:
    insert into sforce_live_test (customer_name, schedule_id) values ('Fred Flinstone', 9060); to kick off the trigger (Mask/Test the creation of a new account), it does not pick up Fred Flinstone when the UTL_HTTP runs, it only updates the current records which are in the table prior to the test insert above.

  • Calling procedures from table and apex

    Hi
    I have a stored procedures and I want to put my stored procedures in table and I want to call store procedure from table in apex. how can I do this?
    For example
    I have stored procedures like Students(year number,birimno number) 
    GPA(birimno number,studentno number ) Student Procedure and GPA proecdure retrieve name and lastname
    and I want to create a table
    table has
        Id            Package                 Procedurename                                   Arguments                              Header
          1                                                GPA                                 birimno, studentno                      name, lastname
          2                                                Students                          year, birimno                                name,lastnameSo how can I do like this ? I want to call storeprocedures on APEX with selectlist. Selectlist will has a storeprocedures .
    Edited by: esra aktas on 06.May.2011 01:48
    Edited by: esra aktas on 06.May.2011 01:48
    Edited by: esra aktas on 06.May.2011 04:08

    I am beginner pl/sql .
    I had searched execute immediate for helping my problem.
    My purpose is that I want to collect all of procedures in one table. And I must retrived which I select procedure on APEX Selectlist.
    So I started to create a table which name is procedures and I put my procedures names on it.
    Now how can I execute to procedures that name is in table?
    create or replace
    procedure "ISINIF_BASARI"(normalyariyil number,birimno number )
    IS
    ogrenci_no  VARCHAR2(12);
    ders_kodu  VARCHAR2(12);
    ders_adi   VARCHAR2(50);
    harf_kodu  VARCHAR2(4);
    CURSOR c_basari IS
    select  dk.ogrenci_no,da.ders_kodu,da.ders_adi,dk.harf_kodu
    into ogrenci_no,ders_kodu,ders_adi,harf_kodu
    from ders_aktif da,ders_tanim dt, ders_kayit dk
    where da.ders_kodu like  birimno ||'%'
    and (dt.normal_yariyili=normalyariyil
    OR dt.normal_yariyili=normalyariyil+1)
    and (da.acildigi_donem='1' or da.acildigi_donem='2')
    and dt.ders_kodu = da.ders_kodu
    and dk.acilan_ders_no = da.acilan_ders_no
    BEGIN
    FOR I IN c_basari LOOP
    dbms_output.put_line(' OGRENCI NO '||I.OGRENCI_NO||'  DERS KODU  '|| I.DERS_KODU||'  DERS ADI  '||I.DERS_ADI||' HARF KODU '||I.HARF_KODU);
    end loop;
    end;I have procedure like that.
    and I have a procedures table. And I put the procedure's name in table.
    procedure
    id procname
    1 ISINIF_BASARI
    Now I want to call procedure using this table .
    When I call yhe procedures from table I wrote like this. But it has faults.
    create or replace
    PROCEDURE CALLSPFROMTABLE  as
    v_sql_exp VARCHAR2(100);
    BEGIN
    v_sql_exp :='begin'||'select p.procname from procedure p where id=1'||'end;';
    end;Edited by: esra aktas on 07.May.2011 02:19

  • How to find the name of calling procedure or package?

    Hi all..
    Is it possible to find the name of the calling procedure or package?
    I mean..if proc_1 is calling proc_2 How can i find in proc_2 that proc_1 is calling?
    Proc_2 is being called from different procedures? I need to write to small code which needs to fire depends on the Proc it is calling?
    Please help me to solve this.
    Thanks

    Not sure, if this is what you're looking for
    SQL> create or replace procedure p0 as
      2  begin
      3    dbms_output.put_line(dbms_utility.format_call_stack);
      4  end;
      5  /
    Procedure created.
    SQL> create or replace procedure p1 as
      2  begin
      3    p0;
      4  end;
      5  /
    Procedure created.
    SQL> create or replace procedure p2 as
      2  begin
      3    p1;
      4  end;
      5  /
    Procedure created.
    SQL> set serveroutput on
    SQL> begin
      2    p2;
      3  end;
      4  /
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    3a7f2d618         3  procedure INV_ADM.P0
    39abfeef0         3  procedure INV_ADM.P1
    39c5ae7a0         3  procedure INV_ADM.P2
    3a0f3a538         2  anonymous block
    PL/SQL procedure successfully completed.
    SQL>

  • Scheduled Job Call Package with OUT-Parameter

    Hi,
    I'd like to create a job using the scheduler. The procedure to be called is declared in a package and needs an out-parameter.
    procedure transfer_pds2ddata(message out nocopy varchar2);Here the code I use to declare the job.
    begin
      dbms_scheduler.create_job(
              job_name            => 'AUTOIMPORT',
              job_type            => 'stored_procedure',
              job_action          => 'ACCESSWRAP.transfer_pds2ddata',
              number_of_arguments => 1,
              start_date          => to_date('26-10-2010 10:45','DD-MM-YYYY HH24:MI'),
              repeat_interval     => 'FREQ=DAILY',
              end_date            => null,
              job_class           => 'DEFAULT_JOB_CLASS',
              enabled             => false,
              auto_drop           => true,
              comments            => null
      dbms_scheduler.set_job_argument_value(
        job_name => 'AUTOIMPORT',
        argument_position => 1,
        argument_value => ''
      dbms_scheduler.enable('AUTOIMPORT');
    end;After the time specified I query user_scheduler_job_log. The Status column of the table says that the job failed. I think it has to do with the out parameter but I'm not sure.
    Can anybody help with this?

    Hi
    can anyone revert to this query pls?

  • How to get a called procedure/function name within package?

    Hi folks,
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    For example:
    CREATE OR REPLACE PACKAGE BODY "TEST_PACKAGE" IS
       PROCEDURE proc_1 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
       PROCEDURE proc_2 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          proc_1;
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
    END; I would like to replace "???????" with a function which would return a name of called procedure, so result of trace data after calling TEST_PACKAGE.proc_2 would be:
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_2*
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_2*I tried to use "dbms_utility.format_call_stack" but it did not return the name of procedure/function.
    Many thanks,
    Tomas
    PS: I don't want to use an hardcoding

    You've posted enough to know that you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    >
    I usually use this method
    1. Create a SQL type for logging information
    2. Put the package name into a constant in the package spec
    3. Add a line to each procedure/function for the name.
    Sample package spec
          * Constants and package variables
              gc_pk_name               CONSTANT VARCHAR2(30) := 'PK_TEST';Sample procedure code in package
          PROCEDURE P_TEST_INIT
          IS
            c_proc_name CONSTANT VARCHAR2(80)  := 'P_TEST_INIT';
            v_log_info  TYPE_LOG_INFO := TYPE_LOG_INFO(gc_pk_name, c_proc_name); -- create the log type instance
          BEGIN
              NULL; -- code goes here
          EXCEPTION
          WHEN ??? THEN
              v_log_info.log_code := SQLCODE;  -- add info to the log type
              v_log_info.log_message := SQLERRM;
              v_log_info.log_time    := SYSDATE;
              pk_log.p_log_error(v_log_info);
                                    raise;
          END P_PK_TEST_INIT;Sample SQL type
    DROP TYPE TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE TYPE_LOG_INFO AUTHID DEFINER AS OBJECT (
    *  NAME:      TYPE_LOG_INFO
    *  PURPOSE:   Holds info used by PK_LOG package to log errors.
    *             Using a TYPE instance keeps the procedures and functions
    *             independent of the logging mechanism.
    *             If new logging features are needed a SUB TYPE can be derived
    *             from this base type to add the new functionality without
    *             breaking any existing code.
    *  REVISIONS:
    *  Ver        Date        Author           Description
    *   1.00      mm/dd/yyyy  me               Initial Version.
        PACKAGE_NAME  VARCHAR2(80),
        PROC_NAME     VARCHAR2(80),
        STEP_NUMBER   NUMBER,
        LOG_LEVEL   VARCHAR2(10),
        LOG_CODE    NUMBER,
        LOG_MESSAGE VARCHAR2(1024),
        LOG_TIME    TIMESTAMP,
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
                    RETURN SELF AS RESULT
      ) NOT FINAL;
    DROP TYPE BODY TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE BODY TYPE_LOG_INFO IS
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
         RETURN SELF AS RESULT IS
        BEGIN
          self.package_name  := p_package_name;
          self.proc_name     := p_proc_name;
          self.step_number   := p_step_number;
          self.LOG_level   := p_LOG_level;
          self.LOG_code    := p_LOG_code;
          self.LOG_message := p_LOG_message;
          self.LOG_time    := p_LOG_time;
          RETURN;
        END;
    END;
    SHO ERREdited by: rp0428 on Jan 11, 2013 10:35 AM after 1st cup of coffee ;)

  • SQL Agent not running Script in Package which calls an Excel containing Macro

    I have a script task in SSIS package which calls Excel VBA file containing Macro, this file is on the local drive, when I run this package through SSDT the package works ok and the macro does what it needs to. However when I set up a
    sql agent job to call the package then it fails at the Script task. I have created a credentials and proxy user as my self so I should Have full rights.
    But it fails through the job and not through SSDT, can you advise ?

    Hi Asad,
    Since the error message “Script Task Run Excel: Error: Exception has been thrown by the target of an invocation” is too generic, we should find a way to return full error details from SQL Server Agent job. Firstly, configure logging for the steps you wish
    to keep log data for. Secondly, create a stored procedure to return details of the step at which a job failed based on the job name. Finally, execute the stored procedure. For more details, please refer to the following blog:
    http://www.sqlservercentral.com/articles/SQL+Server+Agent/67726/
    In addition, the following similar two threads are for your references:
    http://sornanara.blogspot.jp/2014/04/code-0x00000001-exception-has-been.html
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4a20219e-4a90-41be-acfe-b8846dc2c38a/error-while-executing-a-ssis-package-which-contains-a-script-task-through-sql-server-agent-job?forum=sqlintegrationservices
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Do you have to schedule a call to reset your security questions?

    Do you have to schedule a call to reset your security questions

    It depends. If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page should let you reset them : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then yes, you will need to contact iTunes Support / Apple to get the questions reset, which will normally be by phone as they need to confirm your id and that it's your account.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • How to prefix schema name to a called procedure?

    Hi,
    I have five different schemas and each and every schema has the same procedures and same set of tables.
    In calling procedure, there is one IN parameter which is schema name. In this procedure I am calling another procedure. In this scenario how to prefix schema name parameter to the called procedure?
    Urgent please.
    Thank you.

    Make use of Package constants:
    [list]
    [*]Create a package specification in each schema called REGION.
    [*]Create a Package specification constant CURRENT_SCHEMA string literal equal the owner of the REGION package.
    [*]This very very simple package (with no body) will be different in each of your five schemas. You must not transport this package between schemas.
    [*]For the procedures you are calling, redefine the argument of schema_name with a DEFAULT REGION.CURRENT_SCHEMA value. This should give you what you are looking to do - making all the procedure code (except for the REGION package spec) portable between the schema.
    [list]

Maybe you are looking for