I wanto use Msdb data base in ssis package , its possible????

hi all,
i have to access msdb database in ssis package. purpose of get job history table data ..
am unable to get,,plz help me any one..
thanks 
pandiyan
pandiyan

Create a proxy account and give it access
http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    When formatting your column to date/time, pick Date & time, and then pick the letter i in the circle to the right. Then scroll down and pick "No time"
    Jason

  • Using Change Data Capture in SSIS - how to handle schema changes

    I was asked to consider change data capture for a database recently.  I can see that from the database perspective, its quite nice.  When I considered how I'd do this in SSIS, it seemed pretty obvious that I might have a problem, but I wanted to
    confirm here.
    The database in question changes the schema about once per month in production.  We have a lot of controls in our environment, so everytime a tables schema is changed, I'd have to do a formal change request to deal with a change to my code
    base, in this case my SSIS package; it can be a lot of work.   If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package
    with every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?
    Thanks,
    Keith

    Hi Keith,
    What is your exact requirement?
    If you want to capture the object_created, object_deleted or object_altered informations, you can try using
    Extended events .
    As mentioned in your OP:
    "If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package with
    every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?"
    If you want the databases in two different environments to be in sync, then take periodic
    backup and apply(restore) on the another destination DB.
    (or)
    you can also try with
    SQL Server replication if it is really needed.
    As I understand from your description, if you want the table data & schema to be in sync in two different database:
    then create job [script that will drop the destination DB table & create the copy of source DB table ] as per your requirement:
    --CREATE DATABASE db1
    --CREATE DATABASE db2
    USE db1
    GO
    CREATE TABLE tbl(Id INT)
    USE db2
    GO
    IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE name = 'tb1' and TYPE = 'u')
    DROP TABLE dbo.tb1
    SELECT * INTO db2.dbo.tb1 FROM db1.dbo.tbl
    SELECT * FROM dbo.tb1
    --DROP DATABASE db1,db2
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Using Oracle Data Source in SSIS using Attunity

    Hi,
    I am using the oracle data source in SSIS.
    * Created the expression that will have query to select source column.
    * I need to extract only rows having specific date. This date is a dynamic one i.e Created a variable1 which will be update by function call(return type is datetime) for time being i have assigned the
    value(datetime type).  
    * I have created one more variable2(string type) which will extract only date(dd-mon-yyyy). Below is the query i used.
    {"select cast(DATEPART(dd, @[User::Cob_Dt] )as char(2))+'-'+cast(DateName(mm,DATEPART(mm, @[User::Cob_Dt] )) as varchar(3))+'-'+cast(DATEPART( yyyy, @[User::Cob_Dt]
    ) as varchar(4)) "}
    * In source query expression i have used the variable but it showing "as missing expression". Though i tried a lot i cant get. some one please help. Below is thquery
    {select * from table_name where ud.system_date =@[User::Date]
    and... }
    I have tried different formats like enclosing that between quotes(shows same error), then used to_Date() in oracle again shows same error.
    If i hard code the value instead of @[User::Date] means its working well. 
    SomeOne please help me why that error is showing. I cant able to figure out. trying for whole day. PLEASE.
    Thanks,
    Mahalakshmi
    mahalakshmi

    Directly in the source component, or in the expressions property of the data flow?
    If the latter, what happens when you preview your expression?
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • How data flow when SSIS packages are run on a different server than the DB server

    The scenario is that i have a dedicated SQL SErver 2014 SSIS machine that executes the packages.
    The database server is a separate machine with SQL Server 2008R2.
    1) Running SSIS packages that transfer data within SQL Server 2008R2 (same machine)
    2) Running SSIS packages that transfer data between 2 separate SQL Server servers.
    How the data flow in these two cases and what resource is being used where? (cpu,disk,ram,network)
    Elias

    When you have a dedicated SSIS server, all data read flows to that server, is processed using the resources of that ETL server and then sent back over the network to the destination server.
    It doesn't matter if source and destination are the same server. If you use a data flow, all data flows over the network twice.
    The only exception is when you don't use a data flow, but only SQL statements. In that case, data flows only between source and destination.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • Data base was broken now its fixed

    When I installed 2.0 I upgraded my broken data Base because I never thought I would find the broken part anyway. Well "knock on wood" after playing with it for a little while I restarted aperture to rebuild the data base expecting to find errors all over the place. None!
    I know Apple worked on the data base but I didnt expect this. I have run Cocktail in between the rebuilds but I'm pretty sure that would not of done it. Apple did it right ... at least by me.
    Hope others work out too
    David

    If you restore to an older backup, you will get the content that is in the backup. Everything on the iPhone will be erased and you will be brought back to the time that backup was made. See this document prepared by another user about syncing to a new computer https://discussions.apple.com/docs/DOC-3141

  • Report using logical data base

    Hello friends,
    please give me a sample report program using logical database with explanation where logical databse used and how it works?

    See the program given below, it uses logical database PNP.
    DESCRIPTION : TO GENERATE SIMPLE REPORT USING HR ABAP
                   LOGICAl DATABASE- PNP .
    REPORT Zdemop_HR_prog_1
    LINE-SIZE 200 .
    *Database Table
    TABLES: PERNR,           " Pernr structure for Logical database
           PA0001,           " Actions
           PA0002.           " Personnel Info
    *Infotypes
    INFOTYPES: 0001,         " Actions
               0002.         " personnel info
    *Variable Declaration
    DATA: FORM_NAM LIKE P0001-ENAME,
          V_AGE(5) TYPE C,       "variable for calculating age in days
          V_CTR1 TYPE I VALUE 0, "counter
          V_CTR2 TYPE I VALUE 0, "counter
          VAR(5) TYPE C ,        " variable to store btrtl
          VAR1(5) TYPE C  .      " variable to store werks
    *Internal Table Decalartion
    DATA: BEGIN OF I_TAB1 OCCURS 0,
           WERKS LIKE PA0001-WERKS,  "personnel area
           BTRTL LIKE PA0001-BTRTL,  "personnel sub area
           PERNR LIKE PA0001-PERNR,  "employee number
           ENAME LIKE PA0001-ENAME,  "employee name
           BEGDA LIKE PA0002-BEGDA,  "employee join date
           PERSG LIKE PA0001-PERSG,  "employee group
           PERSK LIKE PA0001-PERSK,  "employee sub-group
           PLANS LIKE PA0001-PLANS,  "position
           GBDAT LIKE P0002-GBDAT,   "date of birth
         END OF I_TAB1.
    *START-OF-SELECTION
    START-OF-SELECTION .
    GET PERNR .                    
      RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA .   " Macro for IFT-0001
      RP-PROVIDE-FROM-LAST P0002 SPACE PN-BEGDA PN-ENDDA .   " Macro for IFT-0002
    **--> Populate internal table
      MOVE P0001-WERKS TO I_TAB1-WERKS .
      MOVE P0001-BTRTL TO I_TAB1-BTRTL .
      MOVE P0001-PERNR TO I_TAB1-PERNR .
      MOVE P0001-ENAME TO I_TAB1-ENAME .
      MOVE P0002-BEGDA TO I_TAB1-BEGDA .
      MOVE P0001-PERSG TO I_TAB1-PERSG .
      MOVE P0001-PERSK TO I_TAB1-PERSK .
      MOVE P0001-PLANS TO I_TAB1-PLANS .
      MOVE P0002-GBDAT TO I_TAB1-GBDAT .
    **--> Append data to internal table
      APPEND I_TAB1 .
      CLEAR I_TAB1 .                                       " Clear header I_TAB1
    *END-OF-SELECTION
    END-OF-SELECTION.
    *****sorting the internal table on Personnel Area & Personnel Sub-Area
      SORT I_TAB1 BY WERKS BTRTL.
    *TOP_OF_PAGE
      PERFORM TOP_OF_PAGE.
    *Output Display
      LOOP AT I_TAB1.
    *for calculating the age in days
        V_AGE = SY-DATUM - I_TAB1-GBDAT.
    *control break on Personal Sub Area
        AT NEW BTRTL .
          IF SY-TABIX NE 1.
            FORMAT COLOR COL_NORMAL ON.
            WRITE:/5 'Total Number of Employees for personnel Sub-Area:',
            VAR  , 'is ',
            V_CTR1.
            CLEAR V_CTR1.
            FORMAT COLOR OFF.
          ENDIF.
        ENDAT .
    **Control Break on personnel Area
        AT NEW WERKS.
          IF SY-TABIX NE 1.
            FORMAT COLOR COL_TOTAL ON.
            WRITE:/5 'Total Number of Employees for Personal Area: ',
             VAR1 ,'is    ', V_CTR2. "color col_total.
            CLEAR V_CTR2.
            SKIP 1.
            FORMAT COLOR OFF.
          ENDIF.
        ENDAT .
        WRITE:/5 I_TAB1-PERNR,   "personnel number
              16 I_TAB1-ENAME,   "emp name
              47 I_TAB1-BEGDA,   "join date
              60  V_AGE,         "age in days
              74  I_TAB1-WERKS,  "P area
              84  I_TAB1-BTRTL,  "P sub Area
              94  I_TAB1-PERSG,  "emp group
              104  I_TAB1-PERSK, "emp sub group
              114  I_TAB1-PLANS. "position
        V_CTR1 = V_CTR1 + 1.
        V_CTR2 = V_CTR2 + 1.
        VAR = I_TAB1-BTRTL .
        VAR1 = I_TAB1-WERKS .
      ENDLOOP.
    *&      Form  top_of_page
          Header Output
    FORM TOP_OF_PAGE.
      FORMAT COLOR COL_HEADING ON.
      WRITE:/5 'Employee',
            16 'Employee',
            47 'Join Date',
            62 'Age',
            74 'Personal',
            84 'Personal',
            94 'Employee',
            104 'Employee',
            114 'Position ',
          /5 'Number',
          16 'Name',
          60 '(In Days)',
          74 'Area',
          84 'Sub-Area',
          94 'Group',
          104 'Sub-Group'.
      FORMAT COLOR OFF.
      SKIP 1.
    ENDFORM.                    " top_of_page
    Regards,
    Joy.

  • ALV Refresh when using Logical Data Base

    My program will display the report in a ALV grid format (not in OO, no method or class used here, only FM are used), user can select rows and update the dates in the PM orders.  The REFRESH button comes with the GUI Status "STANDARD1" does not do anything, so I create a custom button "REF".  Normally I will read the updated records into the internal table and use FM "REUSE_ALV_GRID_DISPLAY" to refresh the screen; but this time I need to use a logical database to collect the data, "GET <DIAUFK>" is only allowed to use once in the program, so how can I retrieve my data again after the refresh?
    Does anybody know where the Basic Start and Finsh dates of the PM order are stored? They are the screen fields CAUFVD-GSTRP and CAVFVD-GLTRP on IW32 Header tab.

    Hi,
    You can get it from table AFKO.
    REWARD IF USEFUL

  • Is there a way to use a date field and conditionally change its LABEL?

    Hi I have 2 date select lists and desire to change the label text at runtime.
    If I use it for one query it would be Order Date, another it would be Start Date.
    ?? BillC

    Vikas,
    ...a page template is a special case since everything is finally rendered on a page.Don't know what you mean.
    references in page templates probably get evaluated first...References in page templates get replaced with their session state values when the portion of the page template containing the references is rendered, e.g., before the box, inside the box, after the box, in the footer..., and within each section each item reference is replaced "when it is encountered" with the current value of the item from session state.
    There is a Before Footer computation that sets that item to the current timestamp.I see an "After Regions" computation. On your page, the form item is rendered using the current (from the previous page request) value of the item in session state. Then your compuation sets a new value. Then the remaining sections of the page template (after the regions) are rendered and you see the newly computed value in the footer section of the template.
    Is there a way to pass in the current form item name to the shortcut so that I can have a generic shortcut that returns a different value for the label depending on which item it is being invoked from?Starting in XE and now in 2.2, you can use the strings #CURRENT_FORM_ELEMENT#, #CURRENT_ITEM_ID#, and #CURRENT_ITEM_NAME# in shortcuts. This makes PL/SQL Function shortcuts such as the following possible:  if '#CURRENT_ITEM_NAME#' = 'P2_ENAME' then
        return ('employee name');
      elsif '#CURRENT_ITEM_NAME#' = 'P2_JOB' then
        return ('job');
      else
        return ('foo');
      end if; Scott

  • Issue in using SQL Authentication in child SSIS packages from Parent SSIS package.

    I am trying to provide SQL Authentication mode and credentials at parent package and I am using some child pachnages been called from this package.
    How can I resolve this to use SQL authentication.
    I am using 2008 Version
    Thanks
    Sreenath
    Sreenath G V

    Hi Sreenath,
    What issue did you encounter when run the parent package? It should work properly if the SQL Server Authentication is already enabled on the target SQL Server instance and the SQL account credentials are input correctly in the child package.
    You may encounter issue if you have enabled Package Configurations for the child pages that use SQL Server authentication and selected to expose the UserName and Password for the SQL Server connection. In this situation, the password won’t be exposed to
    the package configurations explicitly, hence, the Dtexec utility cannot fetch the password for the connection and fails the package execution. If it is the issue, you have to specify the password for the SQL Server account in the package configurations file.
    Regards,
    Mike Yin
    TechNet Community Support

  • I want to run SSIS package every time based on last time job processed data time.........

    Hi all,
    i have SSIS package ..its needs run every day .for that we were schedule a job for ssis..
    but we need when package going to run that time we have to take data, besed on last time processed date..for that am using msdb data base to get process date ..but am not yet schedule a job am going to do 1st time..
    insde the package am using this query using execte sql task 
    SELECT     CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30 ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) END   AS Dates
    FROM            dbo.sysjobhistory AS H INNER JOIN
                             dbo.sysjobs AS J ON H.job_id = J.job_id
    WHERE        (H.run_status = 1) ..
    if job already ran means its was working fine.if job not yet scheduled means its giving error...
    pandiyan

    Try this one on:
    SELECT COALESCE(dates,fallBack) AS dates, name
    FROM (
    SELECT 30 AS fallBack
    ) b
    LEFT OUTER JOIN (
    SELECT CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30
    ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate())
    END AS Dates,
    j.name
    FROM dbo.sysjobhistory AS H
    INNER JOIN dbo.sysjobs AS J
    ON H.job_id = J.job_id
    WHERE H.run_status = 1
    GROUP by j.name
    ) a
    ON b.fallBack = b.fallBack
    You might want to consider filtering on j.name or j.job_id to get the info for the specific job.

  • Getting XML data of SSIS Package (which is located in File System) from a query

    Hi,
    We have around 200 SSIS packages deployed to File System. These pacakges are being scheduled using SQL Agent job.
    So, currently I have a list of all the packages and their respective File Path.
    Note : **They are NOT deployed to Server**.
    Now, my task is to search all the packages which has a specific connection in it.
    From the below blog, I got to know we can achieve this by querying the XML data of the SSIS Package.
    https://www.simple-talk.com/sql/ssis/-exploring-ssis-architecture-and-execution-history-through-scripting/.
    But in the above article they are getting the XML definition of the Package from msdb(as it was deployed to server).
    In my requirement, SSIS Packages are in File System. Is there any way to to get the XML definition of these packages using a query.
    Please let me know if the above requirement is not clear or if any further information is required.
    Thanks
    Raksha

    Hi Visakh & Praveen,
    Thanks for the response. 
    @Visakh: The query provided by you gives the information about all the connection strings in the package.
    @Praveen: The query in the link provided by you lists the values of all the properties of the package like MaxerrorCount, CreatorName, CreatorDate and other properties.
    I think, we may have to slightly modify this query to get the connection string values
    Praveen, nice to hear from you after a long time and that too in this forum !! :) Hope you are doing good.
    Thanks
    Raksha

  • Netweaver Data base instances for Java and ABAP

    Hello Experts,
    Please help me to understand how the two technology stacks of SAP WAS (Java and ABAP) are configured to use underline data base in Netweaver.
    Is it manadatory to have two separate data base schemas, one for ABAP applications and other for Java applications in the Netweaver?
    If yes..the any idea about what are those schema differences??
    - Rajan

    Hello Krishna,
    Thanks for the reply.
    Is there any way I can access these shemas? Are they the same by structure or there are major differences?
    My requirement is to build a common schema out of these two and have the data from these two schemas to be consolidated in the new schema.
    Any help will be greatly appreciated.
    - Rajan

  • Use library in an SSIS package

    hi all,
    i need to use a library in an SSIS package and I need to know if I  can do it without Visual Studio? i have SQl Server data tools installed on the server but i don't have the full visual studio. is it possible to use the library on the server without
    visual studio?
    thanks in advance...

    Its possible
    Add required DLL as a reference inside the script task and you can use the functionality inside script.
    see
    http://microsoft-ssis.blogspot.in/2011/05/referencing-custom-assembly-inside.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Logical Data Base - ADA

    Hi, people,
    I`m using Logical Data Base ADA in my program to generate some files, but when the program is executed in DEV System the files are generated normaly, but in the PRD system don´t work.
    Someone knows if exist same parameter or why  this problem occurs ?
    Tks for all.
    Flavio

    As ADA is a standard logical database, if you don't change this object, there should be no difference, except Authorizations that may differ between development and production systems , check via [SU53|http://www.sdn.sap.com/irj/scn/advancedsearch?query=su53+#sdn_content_category_value_wiki].
    (In AM "Asset Accounting" class, check authorization objects : A_A_VIEW, A_S_ANLKL, A_S_GSBER, A_S_WERK.)
    Regards,
    Raymond

Maybe you are looking for

  • Firefox 3.6.18 keeps updating to 4.0.1 even with updates turned off

    I have two people who are trying to use Firefox 3.6.18 to access webpages that aren't compatible with Firefox 4 or 5. This is from Mac OS 10.6. We've turned off all the update features, but they still get updated to 4.0.1 (it's unclear when this seem

  • Why does the Motorola Droid RAZR M wi-fi no longer work even when it says it is connected after the kitkat update?

    Ever since the kitkat update to Android the wi-fi no longer autoconnects to the home network and when it is manually forced to it says it is connected but the internet does not work.  Tried soft-boots and deleting and reinstalling wi-fi connects and

  • Dreamweaver cc and phonegap build

    I'm going crazy trying to sort this out - I have built a mobile app. and am trying to use the phonegap build service in dreamweaver. I have logged in and and created a new project and there it seems to hang asking me to insert Passwords for Android a

  • Mac OS 10.8 Online Backup Issue

    I recently upgraded to Mac OS 10.8.  Now my online backup software doesn't seem to work.  The information says it is compatible with up to 10.7.  So is this another example of Verizon not updating their software to work with the latest OS?  I can't c

  • Sync entire library to iphone

    When I plug my new Iphone 4s into Itunes, it only transfers my most recent 250 purchases. I would like my entire library to sync. any suggestions?