Use SQL to roll a schedule forward to a random date

Hi,
oracle 10.2.0.4  Linux
We have two largeish  tables ( 10^5 rows in each) that track our workforces scheduled hours.  The first table creates generic schedules that show working days, each schedule must have 1-n rows in it, one for each day in the cycle.  The majority of our workforce are on a rolling 8 day cycle.  In the example below I have two shifts
Sched_4d that is a four day cycle of day-on day-off pairs.
Sched_3d this is a staggered full day, half day, day-off cycle.
From the information below you can see that in 1990 the sched_4d went from an 8 hour day to a 9 hour day.  There is no guarantee that SCHED_4D will not suddenly gain 2 extra days as part of this years union talks.
The second table is a simple assigment table showing when a person goes onto a schedule.
To work out a given day's schedule, you look at the EMP_SHIFT table to work out which schedule is "current", then you look at the date that the person was assigned to the schedule and assume that is SHIFT_ID 1, the next day is SHIFT_ID 2 until you complete the cycle and start again.
CREATE TABLE SCHED_DATA
  SCHED_ID     VARCHAR2(8 CHAR)             NOT NULL,
  ASOFDATE           DATE                          NOT NULL,
  SHIFT_ID        NUMBER(3)           NOT NULL,
  SCHED_HRS       NUMBER(4,2)                   NOT NULL
CREATE UNIQUE INDEX SCHED_DATA on SCHED_DATA (SCHED_ID, ASOFDATE, SHIFT_ID)
CREATE TABLE EMP_SHIFT
EMPID VARCHAR2(15 CHAR) NOT NULL,
ASOFDATE DATE NOT NULL,
SCHED_ID VARCHAR2(8 CHAR) NOT NULL
CREATE UNIQUE INDEX EMP_SHIFT on EMP_SHIFT ( EMPID, ASOFDATE, SCHED_ID)
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',1,8);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',2,0);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',3,8);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',4,0);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',1,9);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',2,0);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',3,9);
INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',4,0);
INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',1,8);
INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',2,4);
INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',3,0);
INSERT INTO EMP_SHIFT VALUES ('001', '20-DEC-1989', 'SCHED_4D');
INSERT INTO EMP_SHIFT VALUES ('001', '01-JAN-1990', 'SCHED_4D');
INSERT INTO EMP_SHIFT VALUES ('001', '03-JAN-1990', 'SCHED_3D');
Given the above information, I need to write a select that receives 2 dates ( :FROM and :TO) and for all employees in EMP_SHIFT returns a row for each day and the relevant scheduled hours for that day. 
Thus the above data  with a from and to of '21-DEC-1989' : '05-JAN-1990' should return
EMPID, DATE, SCHED_HOURS
001, 21-DEC, 0
001, 22-DEC, 8
001, 23-DEC, 0
001, 24-DEC, 8
001, 25-DEC, 0
001, 26-DEC, 8
001, 27-DEC, 0
001, 28-DEC, 8
001, 29-DEC, 0
001, 30-DEC, 8
001, 31-DEC, 0
001, 01-JAN, 9
001, 02-JAN, 0
001, 03-JAN, 8
001, 04-JAN, 4
001, 05-JAN, 0
The employee started thir assignment to sched_4d on 20-DEC, so that would be SHIFT_ID 1.  Thus 21-DEC is SHIFT ID 2 which is 0 hours.  Cycle until the next event which is 01-JAN, when they are assigned to the new sched_4d which has them working 9 hours on day 1.  On 03-JAN they switch to the new cycle and go on the 8:4:0 rotation.
I can see how I could
SELECT EMPID, DAY_OF_INTEREST, SCHED_ID
FROM EMP_SHIFT A, (SELECT '01-JAN-1979' + rownum "DAY_OF_INTEREST" from dual connect by level <=10000)
WHERE A.ASOFDATE = (SELECT MAX(A1.ASOFDATE) FROM EMP_SHIFT A1 WHERE A1.EMPID = A.EMPID AND A1.ASOFDATE <= DAY_OF_INTEREST)
AND DAY_OF_INTEREST BETWEEN :FROM_DT AND :TO_DT
And I imagine I need to use some kind of MOD( (DAY_OF_INTEREST - EMP_SHIFT.ASOFDATE), (#number of days in shift) ) to work out which shift_id applies for a given Day_of_interest
But I am struggling to do this in a way that would scale to more than one employee,
Do any of the analytic functions achieve this in a neat way ?

Hi,
There are several analytic functions that might help here.  Both tables include starting dates only; we need to know ending dates for employee assignments as well as for schedules.  I used the analytic MIN and LEAD functions to get these in the query below.  Also, the query below needs to know how many days are in each schedule.  I used the analytic COUNT function for that.
WITH    params   AS
   SELECT  TO_DATE ('21-DEC-1989', 'DD_MON-YYYY')  AS start_date
   ,       TO_DATE ('05-JAN-1990', 'DD_MON-YYYY')  AS end_date
   FROM    dual
,       all_dates   AS
    SELECT  start_date + LEVEL - 1    AS a_date
    FROM    params
    CONNECT BY  LEVEL <= (end_date + 1) - start_date
,       sched_data_plus AS
    SELECT  sched_id, asofdate, shift_id, sched_hrs
    ,       NVL ( MIN (asofdate) OVER ( PARTITION BY  sched_id
                                        ORDER BY      asofdate
                                        RANGE BETWEEN 1         FOLLOWING
                                              AND     UNBOUNDED FOLLOWING
                                      ) - 1
                , TO_DATE ('31-DEC-9999', 'DD-MON-YYYY')
                )          AS uptodate
    ,       COUNT (*) OVER ( PARTITION BY  sched_id
                             ,             asofdate
                           )  AS days_in_sched
    FROM    sched_data
,       emp_shift_plus AS
    SELECT  empid, asofdate, sched_id
    ,       NVL ( LEAD (asofdate) OVER ( PARTITION BY  empid
                                         ORDER BY      asofdate
                                       ) - 1
                , TO_DATE ('31-DEC-9999', 'DD-MON-YYYY')
                )    AS uptodate
    FROM    emp_shift
SELECT    e.empid
,         d.a_date
,         s.sched_hrs
FROM      all_dates        d
JOIN      sched_data_plus  s  ON   d.a_date    BETWEEN s.asofdate
                                               AND     s.uptodate
JOIN      emp_shift_plus   e  ON   d.a_date    BETWEEN e.asofdate
                                               AND     e.uptodate
                              AND  e.sched_id  = s.sched_id
                              AND  MOD ( d.a_date - e.asofdate
                                       , s.days_in_sched
                                       ) + 1   = s.shift_id
ORDER BY  e.empid
,         d.a_date
This query starts by getting all the days of interest, that is, all the days between the given start- and end dates.  (When you said "random date", I assume you meant "given date", which may not involve any random element.)
Once we have a list of all the dates of interest, getting the results you want is just a matter of inner-joining to get which schedules were in effect on those dates, and which employees were assigned to those schedules on those dates.
If you're concerned about having more than 1 employee, maybe you should post sample data that involves more than 1 employee.
How do you handle employee terminations?  For example, what if employee 001 had quit on January 4, 1990?  I assume you'd want the output for that employee to stop on January 4, rather than continue to the end of the period of interest.
If you have termination dates in an employee table not shown here, then you can use that termination date instead of December 31, 9999 as the default end date for assignments.  If you have a special schedule for terminations (or leaves of absence, for that matter) you'll probably want to include a WHERE clause in the main query not to display dates after the employee left (or while the employee was on leave).

Similar Messages

  • Using SQL Server credentials with Secure Store Target Application for Data Connection in Dashboard Designer

    [Using SharePoint 2013 Enterprise SP1]
    I would like to use SQL Server credentials in a Secure Store Target Application, and
    this page makes it look like it's possible but when I attempt to use the new Target Application ID as authentication for a Data Connection in Dashboard Designer, I get a generic "Unable to access data source" with no error logged in SQL Server
    logs.
    I am able to use a Target Application with AD credentials to access the SQL db without a problem. Suggestions?

    Hi,
    1. Make sure that the credential is set to
    Secure Store Target Application. Navigate to the Central Administration. Click on the
    Application Management. Click on the Manage Service Applications. Click on the
    Secure Store Service Application. Select the application ID and from the ECB menu click on the
    Set Credentials. Enter the Credential Owner, Windows User Name and the
    Windows Password.
    2. Make sure that in the Dashboard Designer “Use a stored account” is selected in the “Authentication” and the proper application ID is mentioned.
    Please refer to the link below for more information:
    http://www.c-sharpcorner.com/Blogs/14527/unable-to-access-data-source-the-secure-store-target-applic.aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • SQL Apply Rolling Upgrade

    Hi,
    I would like to upgrade our Oracle database from release 9i to oracle 10g.
    Anybody have used "SQL Apply Rolling Upgrade" with a SAP application to upgrade the database ?
    Thank's in advanced
    Francesc

    Hi Cristian,
    well you can do / try that, but it is not supported in a SAP environment.
    SQL Apply means Logical Standby database and this is explicitly not supported in a SAP environment - for more details please check SAPnote #105047 (sub point 14 - Oracle Data Guard).
    However from a technical point of view it is possible as none of these restrictions usually apply a SAP environment ( Data Type and DDL Support on a Logical Standby Database ).
    Regards
    Stefan

  • Scheduling without using SQL Server Agent

    Can I have a scheduling job that run a group of packages on SSIS in a specific time? I can't use SQL Agent Job...

    Yes, you can.
    1) You have to create batch (.bat) file which will have a command that will run your ssis package by using dtexec.
    E.g.   dtexec.exe /F "C:\ImportCSV\Package.dtsx"
    2) Schedule above .bat file using Windows Task Scheduler
    http://geekepisodes.com/sqlbi/2010/schedule-ssis-package-execution-with-windows-task-scheduler/
    http://syntaxsiragugall.blogspot.in/2013/04/deploying-ssis-in-task-scheduler-with.html
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Using Sql jobs to schedule essbase cubes.

    Hi guys,
    I have a Sql Server datamart who is loaded by Sql Server Integration Services.
    After that, an essbase cube connects to the Sql Server datamart.
    Finally, the user can review the data using SmartView.
    I need to schedule these tasks.
    I have a Sql job who trigger SSIS packages (datamart load).
    Then I need load essbase cube.
    How can I schedule load essbase cube using Sql jobs?
    Excuseme for my english.
    Thank you in advance.

    Thank you guys.
    At last I could schedule a MaxL script from SqlServer agent.
    I follow these steps:
    1. Copy StartMaxL.cmd from other essbase instalation (I don't know why, but it didn´t exists).
    2. Add ARBORPATH and ESSBASEPATH environment variables.
    3. At the moment to generate the cube, select save like MaxL load script.
    4. In Sql Server Agent, add a step job type "operating system" and in command, E:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0\bin\startMaxL.cmd E:\[scrip_name.msh] [user] [pass]
    It works fine. Thank you again.

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • Create statspack report using sql*developer

    Hello,
    While connecting with PERFSTAT user I can not create statspack report using SQL*Developer:
    @?/rdbms/admin/awrrpt
    Error starting at line 1 in command:
    @?/rdbms/admin/awrrpt
    Error report:
    Unable to open file: "?/rdbms/admin/awrrpt.sql"
    Actually, my problem or question is that how can PERFSTAT user can generate statspack reports from a Client side. What is the other way a non-dba can see the snapshots histroy and generate report (by using perfstat user ) while joing tables or using views?
    Thanks a lot.
    Best Regards

    Hi,
    for awr reports @?/rdbms/admin/awrrpt (you need EE+Diagnostic Pack) there is a solution.
    Grant execute dbms_workload_repository to <user>;
    Grant select_catalog_role to <user>;
    get all SNAP_IDs
    SELECT   TO_CHAR(s.startup_time,'YYYY.MM.DD HH24:MI:SS') INSTART_FMT,
             di.instance_name INST_NAME,
             di.db_name DB_NAME,
             s.snap_id SNAP_ID,
             TO_CHAR(s.end_interval_time,'YYYY.MM.DD HH24:MI:SS') SNAPDAT,
             s.snap_level LVL
    FROM    dba_hist_snapshot s,
             dba_hist_database_instance di
    WHERE   di.dbid = s.dbid
             AND di.instance_number = s.instance_number
             AND Di.Startup_Time = S.Startup_Time
    ORDER BY snap_id desc;
    Select * From Table(Sys.Dbms_Workload_Repository.Awr_Report_Html(DBID, 1, BEGIN_SNAP_ID, END_SNAP_ID));
    For statspack i don't know a solutuion. I think the best idea is, create a job to make the statspack report on the server side and access it via external tables or mail them forward to you.
    Best regards
    Thomas

  • Using XML String in the Scheduler Adapter in the Receive port

    I have a requirement where I have to query the view in the Oracle database,and the View is like this
    EmpNumber | Name | TermDate
    E001 | ABC | (null)
    E002 | DEF | 13-DEC-14
    E003 | GHI | (null)
    E004 | JKL | 11-NOV-14
    E005 | MNO | (null)
    E005 | PQR | 10-DEC-14
    I am going to use the Scheduler adapter in the receive port.It should select the Records with the TermDate null and TermDate 7days ago from today. So here is how I want the selected records to be
    EmpNumber | Name | TermDate
    E001 | ABC | (null)
    E002 | DEF | 13-DEC-14
    E003 | GHI | (null)
    E005 | MNO | (null)
    In the other forum I found the sql command to do this is,
    select * from EMP where TERMDATE is null or TERMDATE >= trunc(sysdate) - 7;
    But I am not sure if the XML String in the Scheduler Adapter is correct
    <ns0:Select xmlns:ns0="http://Microsoft.LobServices.OracleDB/2007/03/View/EMP"><ns0:COLUMN_NAMES>*</ns0:COLUMN_NAMES><ns0:FILTER>TERMDATE IN ('null','TERMDATE >= trunc(sysdate) - 7')</ns0:FILTER></ns0:Select>
    Any help will be greatly appreciated. Thanks

    Thanks Suleiman.
    I am using the WCF-Custom Adapter to get the data from the Oracle database. And I am using the Scheduler adapter because to get data on a daily basis.In one of our other application we have used the query statement in the Scheduler adapter
    Like,
    <ns0:Select xmlns:ns0="http://Microsoft.LobServices.OracleDB/2007/03/View/VW_EMP_DEPT"><ns0:COLUMN_NAMES>*</ns0:COLUMN_NAMES><ns0:FILTER>PROCESS IN ('A','B','C')</ns0:FILTER></ns0:Select>
    and it works really fine, it just select the records with the Process A or B or C. I dont know how can I select now with respect to data that is 7 days ago from today.Help me with it.

  • Using sql with CR XI

    Is it possible to create a sql query that will join to tables(excel) in CR XI
    If yes how do I do it
    I have been using the add command but it only seems to find one table at a time

    are you trying to use a command to get around the speed issue caused by directly linking 2 excel files in the database expert?
    a) if need be you can still add multiple excel files using the Access / Excel (DAO) driver using the database expert. 
    then if you schedule the report you can negate this disadvantage.
    or
    b) if you need the on demand performance, you may wish to use an extraction tool to schedule a job to dump the excel file content into a real database.

  • Using SQL Server Reporting Services Standard edtion on the Web/App server

    I would like some clarification of when is it a supported configuration to use SQL Reporting Services Standard Edtion with BPC 7.0M.
    If you have a standard Multi-server installation with WEB/APP/RS/IS on one server and SQL/AS on the other server, is SQL Reporting service required to be Enterprise Edition? The v7.0M SP4 installation guide is a bit confusing on this because it says Reporting Services standard edition is supported, but then it says that SQL Enterprise Edition is required on the web/app server.
    The Web/app would have SQL Management tools (edition-independent), Integration Services (edition-independent) and Reporting Services (Standard is allowed?) - so that would seem to mean that you can have SQL Standard edition on the front-end Web/App server.
    Please advise as to what we need to tell customers going forward.
    thanks,
    Tony DeStefanis

    Hi Tony,
    SQL Server SE is supported for web/application server but you have limitation.
    If you need multiple application server then RS has to be installed into a web farm and in thta case SE can not be installed it is required EE.
    But if you have just one application server SQL server SE can be used without any problem.
    More than that RS can be a complete separate server it is not necessary to be in any of SAP BPC server (web/application or database server) so in that case again you can use SE without any problem.
    EE is required just when you need high availability and in that case you need to install RS into a web farm.
    I hope this clarify a little bit when you can use and when you can not use SE for RS.
    Regards
    Sorin Radulescu

  • How to call a stored procedure on time basis with out using sql job and GOTO

    Hi,
       I wanted to call a stored proc, on time basis ,
    please tel me how it can be done with out using sql job , goto .
    1) That is, is there any timer aviable in sqlserver.
    q2) And which one is better GOTO or sql job.
    yours sincerley

    Raj, Check if my explanation helps you:
    Your job runs every 10 seconds.
    Lets say first time you are scheduling and running your job at 12:00:00 PM
    Now your proc will start executing.
    Say it got finished at 12:00:07.
    Now the next schedule time is 12:00:10 PM.
    The moment this time hits, the job will get invoked and start executing the proc.
    Lets say this time it finished at 12:00:22 PM (It took 2 extra seconds)
    This time the scheduled time is already gone (12:00:20 PM), thus it'll now run at the next schedule that is 12:00:30 PM.
    Thus if anytime your job takes more than 10 seconds to run, it'll just miss those particular schedules overlapping with execution time. Otherwise you are good to go. 
    PS: A job is the best way to handle this, in your problem statement you don't need a job but that would be wrong. You have another way to do that, if you keep running your procedure all the time and the moment your timestamp hits a multiple of 10
    seconds you can run your logic and then returning to the timer. But this is extremely wrong for a system. Even if your requirement is extremely transactional and complex, I would not suggest this. If the job is taking more than 10seconds (which it might if
    your logics inside are complex), you should optimize your code and table architecture.
    Chaos isn’t a pit. Chaos is a ladder. Many who try to climb it fail and never get to try again. The fall breaks them. And some are given a chance to climb, but they refuse. They cling to the realm, or the gods, or love. Illusions. Only the ladder is real.
    The climb is all there is.

  • I have looked through the video tutorials for CS6 and cant find any help for PHP using SQL.

    Where is a good place that I can go to learn more about using dreamweaver and different languages than html.  Is there a service that adobe offers that I could buy that would take me from rookie all the way to professional with a good easy to use structure such as adobe tv but more advanced and thorough?  I am trying to build a website with a log in page and registration.  I have the HTML part down well enough but need help writing the php scripts and using SQL to store the user info

    I'm moving this to the main Dreamweaver support forum.
    In answer to your question, you need to be aware that the PHP server behaviors in Dreamweaver CS6 use the original MySQL functions that are scheduled to be removed from a future version of PHP. The server behaviors have already been removed from Dreamweaver CC. If you are planning to create a site using PHP and MySQL, do not rely on Dreamweaver's server behaviors. You must use either MySQLi (MySQL Improved) or PDO (PHP Data Objects) instead.
    If you're looking for video tutorials, you might be interested in the courses I have created for lynda.com. As a beginner, a good place to start would be PHP for Web Designers or Introducing PHP (there are several sample videos that you can watch for free on my website). Both courses were recorded on Dreamweaver (PHP for Web Designers on Dreamweaver CS6, Introducing PHP on Dreamweaver CS5.5). PHP for Web Designers shows how to connect to MySQL with MySQLi. You need a subscription to lynda.com to watch the complete courses, but you can get a seven-day free trial by following the links on my website.
    If you don't want to commit to a subscription service, I have also written a book called PHP Solutions, which covers MySQLi and PDO in depth. It also shows how to build a login system. At the moment, the second edition is available, but a revised third edition is due to go on sale in December.
    There are also a lot of free resources on the web that you can find. The important thing to beware of is that a lot of old material relies on the original MySQL functions. Whichever resource you use, make sure it shows how to use MySQLi or PDO.

  • Does SAP use SQL server's snapshot and transactional replication?

    Gurus:
    Could you help with this?
    Does SAP use SQL server's snapshot and transactional replication?
    Thanks!

    Hi Christy,
    no, SAP does not directly leverage these functions.
    But none the less, it is up to you to use these on your system. I regulary use the snapshot functionality when applying Support Packages. In case somehing goes wrong a snapshot is the easiest way to roll back the import process (not exactly the best choice when talking about production and users keep on working while importing).
    Have a look at this [document |http://download.microsoft.com/download/d/9/4/d948f981-926e-40fa-a026-5bfcf076d9b9/SAP_SQL2005_Best Practices.doc]. It deals with Best Practices and also covers snapshot, replication and mirroring.
    Sven

  • What 'item type' do I use to add action to SCHEDULER CHAIN folder?

    I am using SQL Developer version 3.1.06.82
    I would like to add a User Defined Extension to a Scheduler CHAIN. I am looking through the Namespace for Version 3.1 at: http://www.oracle.com/webfolder/technetwork/sqldeveloper/3_1/dialogs/index.html. Under the COMMON OBJECT TYPES, I do not see any of the Scheduler items. I was able to use <item type="SCHEDULER"> to add an action to the SCHEDULER folder, but what I really want to do is add an action to a CHAIN.
    Does anyone know what type name to use??
    Has the Namespace been updated and published somewhere else?
    If you have an example, it would be greatly appreciated.
    Edited by: 975201 on Feb 28, 2013 8:24 PM

    >
    I would like to add a User Defined Extension to a Scheduler CHAIN. I am looking through the Namespace for Version 3.1 at: http://www.oracle.com/webfolder/technetwork/sqldeveloper/3_1/dialogs/index.html. Under the COMMON OBJECT TYPES, I do not see any of the Scheduler items. I was able to use <item type="SCHEDULER"> to add an action to the SCHEDULER folder, but what I really want to do is add an action to a CHAIN.
    >
    Those COMMON OBJECT TYPES are database schema objects so SCHEDULER or CHAIN would not be in those lists.
    Did you try "CHAIN" or "SCHEDULER CHAIN"?
    I suggest you change your thread subject to match your question and maybe one of the developer team members will notice it.
    For example: What 'item type' do I use to add action to SCHEDULER CHAIN folder?

  • Execute the SSIS packages (2008 version) using SQL job 2008

    We need to execute the SSIS packages (2008 version) using SQL job Please help with details information how to execute it.
    1.Protection level of the SSIS packages.
    2.Configuration File (Curently using XML file)
    3.Please provide details how to create Credential (Windows User etc)  Do we need to create windows cred explicitly to run the Job etc..
    4.Please provide details for creating Proxy.
    5.How can we configure the xml file since the xml is reading from local box but when the package is moved from developement box to production box
    then the local drive might not be mapped with Production box .
    6.Roles that need to be tagged for the Proxy/Credential.
    7.Which is the best and safest way to execute ssis packages either msdb deployment or filesystem deployment and other necessary details.

    Hi,
    If you want to Execute your SSIS package using SQL job then best solution is to first deploy your Package
    either using msdb deployment or filesystem deployment.The simplest approach to deployment is probably to deploy to the file system.
    So, here is the deployment steps;
    There are four steps in the package deployment process:
        The first optional step is optional and involves creating package
    configurations that update properties of package elements at run time. The configurations are automatically included when you deploy the packages.
        The second step is to build the Integration Services project to create a package deployment utility. The deployment utility for the project contains the packages that you want to deploy
        The third step is to copy the deployment folder that was created when you built the Integration Services project to the target computer.
        The fourth step is to run, on the target computer, the Package Installation Wizard to install the packages to the file system or to an instance of SQL Server.
    you can use below link also;
    http://bharath-msbi.blogspot.in/2012/04/step-by-step-ssis-package-deployment.html
    After that you need to Schedule package using SQL Agent then  Have a look at the following link. It explains how to create an SQL job that can execute an SSIS package on a scheduled basis.
    http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
    Deployment in msdb deployment or filesystem deployment has there own merits and demerits.
    For security point of view msdb deployment is good.
     it provides Benefits from database security, roles and Agent interaction
    Protection Level;
    In SQL Server Data Tools (SSDT), open the Integration Services project that contains the package.
    Open the package in the SSIS designer.
    If the Properties window does not show the properties of the package, click the design surface.
    In the Properties window, in the Security group, select the appropriate value for the
    ProtectionLevel property.
    If you select a protection level that requires a password, enter the password as the value of the
    PackagePassword property.
    On the File menu, select Save Selected Items to save the modified package.
    SSIS Provide different Protection levels;
        DontSaveSensitive
        EncryptSensitiveWithUserKey
        EncryptSensitiveWithPassword
        EncryptAllWithPassword
        EncryptAllWithUserKey
        ServerStorage
    For better undertsnading you can use below link;
    http://www.mssqltips.com/sqlservertip/2091/securing-your-ssis-packages-using-package-protection-level/
    Thanks

Maybe you are looking for

  • Please help me move pictures freely, and get a logical navigation menu

    I am a serious newbie to iWeb. As best I can tell, I'm in iWeb 1.1.1 (so what's that? '08, '09?) I'm in OS 10.5.7 if that helps. No recent iLife. Since attempting iWeb, I have been reading and trying my best to follow the tutorial but I'm impatient b

  • GRC 10.0 Role workflow (with detour)

    Hi gurus could you help me, please? My client want to create a role workflow with detour based in risk violation, can some one help me creating the rule for that (if its posible) Thank you

  • No sound from rented movies....WHY???

    Purchased Apple Tv and set up just fine. Watched stuff from You tube no problem, watched movie previews no problem, watched trailers no problem, listened to music no problem, rented two movies for movie night with family and guess what...a problem. S

  • E90: Syncing bookmarks and bookmark Management

    I have my Nokia PC Suite syncronise my E90 Web bookmarks to Firefox (2.0.0.14). Basically, I shuffled all the Nokia default bookmarks (download themes, download sounds, etc) into a folder called Nokia, using Firefox bookmark management. Syncronisatio

  • I want to open othere pass cod for my phone please?

    I need help to open my iphone phone because i for gotten my screen pass ward