Replicate only changed and new data

Dear,
Is there a possibility to SQL Server 2012, to all the changes that happen in the DB x record in DB y?
DB x would have all the data, and DB y would contain only the data from the time of recording.
If the DB x insert data, the DB y are only visible data by the insert.
If the DB x update data, the DB y are only visible data by the update, which can be seen that the data update.
If the DB x delete data, the DB y are visible data are deleted.
DB y be recorded only certain information, for example a specific table and certain procedures.
Monitoring changes must be in real time.
The structure must remain the same.
Something like this would be like:
Thank you

You should do a no-sync subscription and then ensure that the data and schema necessary are on the subscription and use the continue on data consistency error profile.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Similar Messages

  • SSIS DataFlow - copy only changed and new records

    I am copying a few tables each night from one SQL server to another. At the moment I delete every record from the destination table, and then copy all records from the source table with a SSIS Data Flow Task. 
    That works fine so far, but I would like to copy only changed or new rows. What would be the best way with SSIS to achieve this? I am quite new to SSIS, I have no idea if my goal is possible and how...

    I am copying a few tables each night from one SQL server to another. At the moment I delete every record from the destination table, and then copy all records from the source table with a SSIS Data Flow Task. 
    That works fine so far, but I would like to copy only changed or new rows. What would be the best way with SSIS to achieve this? I am quite new to SSIS, I have no idea if my goal is possible and how...
    Many ways:
    1st way
    1.use Merge function from source to destination table where you can have this conditions like load when not matched and don't load when matched.
    2. follow this ssis steps:
    execute sql task where you can write merge function from source to destination 
    http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/
    2nd way:
    oledb source 2.lookup outputlookup 3. oledb destination table 
    and you can mention in lookup as no match output.
    3rd way:
    you can use scd transformation task in ssis...
    4th way:
    you can use if exists update  if not exists insert.. see below
     http://blogs.msdn.com/b/miah/archive/2008/02/17/sql-if-exists-update-else-insert.aspx
    http://sequelserver.blogspot.com/2011/02/alternate-to-if-exists-update-else.html
    - please mark correct answers

  • Difference between using new Date() and new Date(System.currentTimeMillis()

    Hi All,
    I have seen many open source api's where they are updating dates with the following code
    new Date(System.currentTimeMillis())
    when i print the new Date() it prints the same
    what is the difference between using new Date() and new Date(System.currentTimeMillis()) ??
    Thanks,
    J.Kathir

    when i print the new Date() it prints the same
    It does because of backward compatability. This constructor exists in version 1.3.1 but not in newer versions.Really ? Please point me to where you read that.
    API doc 1.5 : new Date() (still there, not even deprecated)
    A quick look at the code for this constructor:    /**
         * Allocates a <code>Date</code> object and initializes it so that
         * it represents the time at which it was allocated, measured to the
         * nearest millisecond.
         * @see     java.lang.System#currentTimeMillis()
        public Date() {
            this(System.currentTimeMillis());
        }

  • Processed cube sees no changes, but new data have been inserted..

    Simple AdwWorks cube has time dimension with years range from 2000-th to 2007-th. Fact data exists for 2001-2006. 2000-th and 2007-th are empty.  Ok. 
    I'm insert new data to source fact table for 2001-th  and process the cube. All changes immediately reflect in measure value (it grows). But new data for 2000-th don't reflect in measure value growing .  Nevertheless, during cube processing
    SSAS sees new rows for both cases (the value grows), and sql profiler catches equal batches of commands for  2001-th and 2000-th. But measure value grows only for 2001-th.
    I've clear mdx-script - it contains now only calculate command. Now there is:
    a) select sum(measure value) on fact tables in source database reflect new rows  for both cases
    b) cube processing sees changes for both cases
    c) mdx-script is clear (there are no scopes, witch can set measure value to null )
    d) select [sales amount] for cube reflect this changes only for 2001-th, not for 2000-th
    Any suggestions?
    ===========
    One day later.. :)
    The problem seems as resolved, but... I don't know: is it tech and/or logic feature or bug..
    So, what is happened.. Simple mdx query:
    select [sales amount] on 0,
    [some date from 2000] on 1
    from [cube]
    gives null value for [sales amount], but for [some date from 2001] value is not empty. In database fact table both values (results of sum(salesamount) for both dates) are not empty. After research i found that there was one measure ([Temp]) in the [sales amount]
    measure group for which MeasureExpression was set to [sales amount]*[average rate] ([average rate] - measure from [Fact Currency Rate] measure group). Fact table for [Fact Currency Rate] measure group didn't contain data for 2000-th. I've insert it and - vualya
    - all work and for 2000-th now. Main question is: why ssas calculate MeasureExpression formulas for measures, which I'm not request in a query, and why ssas set requested by me value to null, if it does not depend from formula of MeasureExpression property
    of unrequested measure? Is it bug or "defense from fool"?. There is another sample of such strange ssas behaviour. I mean usage of UnaryOperatorColumn property. If it is set for any attribute of any dimension, then it influences on every query, even
    if this attribute not is a part of this query. For example
    select [sales amount] on 0
    from [cube]
    returns different results, which depends by setting of UnaryOperatorColumn for some dimension attribute.. What all it mean?

    Hi Tkolomiewts,
    I have the following questions, which will help me in better understanding of your issue :
    1) Is [sales amount], a base measure or calculated measure?
    2) Are you using the default Adventure works database? 
    Regarding
    your other question about unaryoperatorcolumn for some dimension attribute affecting the results, lets use the following query that you mentioned:
    select
    [sales amount] on 0
    from [cube]
    This
    query doesnt pick only the measure value, but also fetches the "All" attribute for the all the dimension attributes. Hence, if the UnaryOperatorColumn influences the All attribute's value, then it will affect the results of the query above.
    Regards,
    Muthukumaran

  • V.15 and New Data Selection

    Hi,
    in V.15 transaction the "New data selection" is greyed out. How can i allow the user to check/uncheck this box?
    The problem is when the "New data selection" is checked and when i execute the transaction, the "Name of sold-to party" is empty but when it's unchecked it's filled ... strange. What is the "New data selection" means?
    Thank you for your replies.

    if you do not select "new data selection" the program with just import previously selected data (the data from previous run which was stored - it's done by selecting "save dataset").
    "New data selection"  means the data is selected from database tables again instead of importing previously selected dataset from storage.
    I believe if you at least once SAVE dataset - the option "new data selection" will be editable, SAP just saves datasets per user, so if user have not saved any dataset - the only option is to run with "new data selection" = 'ON' .

  • What are the differences between the old and new data flow technology?

    I have seen many places mentioned the new data flow tech ( In BI7) are much different from the old one,, can anyone list a few differences?
    Thanks

    Hi Dylan,
        An infosource can be used in the 7 flow model, but its purpose is completely different from the 3.x model.
    In the 3.x model, the infosource consisted of 2 structures  transfer and communication.
    The transfer structure was where you specified which field in the datasource corresponds to which infoobject ie the field type.
    You now do this in the datasource maintainence in 7.0 (the tabs called proposals and fields)
    The communication structure was the structure which was available for uploading.
    You can refer the link for the 3.x flow
    [http://help.sap.com/saphelp_nw70/helpdata/en/90/64553c845ba02de10000000a114084/content.htm]
    In the 7.0 flow, you generally use a  DSO when you perform sequential transformations ie you want to change the data format or do some processing twice before you actually load to the final infoprovider.
    The sequence in this case would be
    Datasource -> transformation1 -> DSO -> Transformation 2-> DSO -> Transformation 3-> Cube
    The disadvantage of doing this, is that the DSO will store data.  To avoid this, you can use an infosource instead of a DSO.
    You can refer the below link for using 7.0 infosources
    [http://help.sap.com/saphelp_nw70/helpdata/en/7e/001342743eda2ce10000000a1550b0/frameset.htm]
    Hope this helps.
    Regards.

  • I want to plot a waveform chart where I have a constant slope(defined by me) and new data is plotted over the chart with the defined slope already in the background.

    I want my chart to have a constant slope already plotted before it continues to start plotting the real time data.. so that I can compare my new data point to point with the ideal slope that i already have in the background
    Solved!
    Go to Solution.

    raza51 wrote:
    Hi,
    Thanks for help.. But this would work when i have one array and a constant "slope". What if I want to print 2 arrays of data.. means if there is an array of data instead of constant "slope"...
    Since your graph is refreshed every time you go through the loop anyway, just set up the constant/reference array before the loop and feed it into the graph. That way you'll also have a full X-axis (and a Y-axis which at least includes all the reference data) for the graph already set up.
    (That's twice in two days I've been scooped by a couple of minutes, I've got to get my typing speed up...)
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Fetching old and New Data in HRMS for 'Update' Transactions

    Hi All,
    I need to find out the old and new values for a person_id from HRMS tables (Per_all_people,Address,contacts etc) based on Person Id. Do we have any Standard Script or has someone prepared such script and can share with me. I am not expecting the Corrected records to be fetched as it overrides the same line but atleast for such records which comes under 'Update'.
    For Example, If for Perso_id 123, the Telephone# was 8888 and then it is updated to 9999. So my query Should return somethign like:
    Information From To Effective Date
    Telephone 8888 9999 28-Nov-2011
    Note: Can't use any triggers.
    Thanks

    Hi,
    You need to include a new keyfigure in the cube and map with both the new and old compcodes and the write a field routine with the logic that meets your requirement by passing the values of  PSPNR into the internal table and get the output for the keyfigure value. Also you use if else condition as per the requirement.
    Hope this helps...
    Rgs,
    Ravikanth.

  • Schedule changes and validity dates for prices in product catalog(SRM-MDM)

    Hello!
    I'm working on a project that is going to use SRM-MDM and the question is if it is possible to schedule changes(for example to add new prices that have a validity period, can you make the changes now that are going to be valid from 1st of februari?Or can I add products today that are only going to be available to buy from a particular date?).
    The other question is if it is possible to have a validity period for prices and when the date is valid,then the product is shown in the catalog.In the same way that when the date is not valid, the product is not shown in the catalog.Can this be made automactically?Can a logic be build to choose which products are going to be shown in the catalog?
    Do you have any suggestions for those issues?
    Thanks in advance!

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Data (Master Data Changes and Transaction Data) from SAP BW to SAP BPC 5.1

    Hi guys
    I have seen posts on this forum describing data transfers from SAP R/3 to SAP BPC. I assume the procedure for data transfers from SAP BW to SAP BPC 5.1 should be the same i.e. using SSIS packages.
    However I have some unique requirements -
    1. DATA AT DIFFERENT AGGREGATED LEVELS - I need data from SAP BW at different levels - Some data comes at Product level while other at Customer level and some at Project Level. The current procedure takes BW queries output in excel sheets (6 files) and then use the data manager package to load the data in SAP BPC 5.1 using appropriate transformation and conversion files. This procedure is highly manual and I am looking at using SSIS package to do this. However, because of having data at different levels, it becomes a little tricky. How can we achieve this using SSIS?
    2. UPDATING MASTER DATA - I need to update the master data (dimension members) in SAP BPC 5.1 at the start of every month. The current procedure compares (in MS ACCESS) the data from the queries mentioned in 1 to the dimension members in SAP BPC 5.1 and spits a file with the new entries which needs to be manually updated in the appropriate dimensions using Admin Console. I am looking at automating this task. I cannot just replace all the contents of a dimension with the members coming from SAP BW since the dimension members contains some dummy members which are used for planning.
    3. HIERARCHY CHANGES - What is the best way to capture the hierarchy changes in SAP BW into SAP BPC 5.1?
    Please advise.
    Thanks,
    Ameya Kulkarni

    Hi Ameya,
    how did you solve the described problems? Can you give some hints about uploading master data and updating the hierarchy?
    BR, André

  • SCD TYPE 2 in ODI 11g-error in INSERT CHANGING AND NEW DIMENSIONS

    Hi Guys,
    Im using IKM:Oracle Slowly Changing Dimension to achieve SCD TYPE 2.
    It is working fine for Overwrite on change.
    But whenever there a new insert upon change(Add Row on Change) in source, throwing below error:
    ODI-1228: Task INT_EMP_SCD_TYPE (Integration) fails on the target ORACLE connection ORA_DEV_EDW.
    Caused By: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_EDW.EMP_KEY) violated.
    I have unique key in target table column SAPID.
    How to overcome this issue.
    quick help would be highly appreciated.
    Thanks,
    Sreedhar S,
    <telephone number removed by moderator. this is a publicly viewable forum, not Oracle technical support>

    Hi Sreedhar,
    As said in the error message, you have an unique or primary key on one column and you try to insert a value already existing. This is a design issue.
    You have to ensure that you don't try to re-insert existing value for the column(s) with the key.
    Regards,
    Jerome

  • Setting/changing and using date and time for an alarm.

    While I know how to get the time I'm not sure how to somehow allow the user of the app to change it, save it and then use both the date and time to set off an alarm.
    While this can be easily done using forms my application is purely canvas based so none of that easy to use stuff, I'd have to print the time on the screen then allow the user to change that time, repaint the numbers again while also changing it in system, save the time and date to memory then use it set off an alarm.
    If anyone can link to some good, simple tutorials or explain themselves it'd be appreciated, thanks.

    This may be possible, but it may need a script to launch with firefox...so this may be a skeleton answer.
    A couple of brianstorms to achieve this
    *Cronzilla add on might be helpful [https://addons.mozilla.org/en-US/firefox/addon/cronzilla/]
    *Saved sso login might be in the about:config file page:
    [http://superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on] "securtiy ask for password"
    * you may need to add to the security exceptions the sso login page
    Two things we can do, file a bug to add this to the launch arguments, and find a meantime work around which stackoverflow.com would be a great place to ask this question.

  • Adding a new field and new data item breaks layout

    I am adding a new field to a subform and populating it form a .Dat unfortunatly adding this field is causing data outputed to the subform below it to shift down one line on the page when outputted.
    This new field is outputted at the top of the form and and the line being shifted are below this.
    Below is the field details and the field as it is in the .dat file.
    Field:F_PO_NUMBER [1]                                
    Lines: 1  Characters: 20  Angle: 0
      In Subform
    : Main_Page
      Options  
    : Global
    ^Command JFPAGE_START
    ^Undefine global:~^PAGE 1
    ^define global:SEQUENCE \pic"NUM999999",@D:NUMPAGESPRINTED../\pic"NUM99",@$PAGE../\pic"NUM99",@:JFPAGE_PAGE_OF..
    ^define global:JFPAGE \pic"NUM99",@$PAGE.. of \pic"NUM99",@:JFPAGE_PAGE_OF..
    ^GLOBAL Email COLL_TEL_NUM~12345678~^REFORMAT OFF
    ^GLOBAL F_CURRENCY_CODE
    GBP
    ^FIELD F_PO_NUMBER
    ^COMMENT R_remit_customer
    ^FIELD F_REMIT_TO_CONCATENATED
    Address
    ^COMMENT M_INVOICE_HDR_BOX1
    ^GLOBAL F_TRX_TYPE
    Invoice
    Now the weird party is if I move the new field in the .dat as below it fixes things and the everything lines up like it should do.
    ^Command JFPAGE_START
    ^Undefine global:~^PAGE 1
    ^define global:SEQUENCE \pic"NUM999999",@D:NUMPAGESPRINTED../\pic"NUM99",@$PAGE../\pic"NUM99",@:JFPAGE_PAGE_OF..
    ^define global:JFPAGE \pic"NUM99",@$PAGE.. of \pic"NUM99",@:JFPAGE_PAGE_OF..
    ^GLOBAL Email COLL_TEL_NUM~12345678~^REFORMAT OFF
    ^GLOBAL F_CURRENCY_CODE
    GBP
    ^COMMENT R_remit_customer
    ^FIELD F_REMIT_TO_CONCATENATED
    Address
    ^COMMENT M_INVOICE_HDR_BOX1
    ^FIELD F_PO_NUMBER
    ^GLOBAL F_TRX_TYPE
    Invoice
    ^FIELD F_TRX_NUMBER
    I hoping someone might have an idea of why this is the case as I'm at a loss regarding why its happening.

    I may not hit on it exactly, but this sounds like Adobe's processing order.
    It wants to process the fields in the order they are in the DAT file.
    I have a similar problem with an overflow field, that isnt last in the DAT file,
    Read this here:
    http://forums.adobe.com/message/2298283#2298283
    Now that may not be exactly your issue, but I think its the same inherent problem,
    Adobes processing order for the fields/subforms.
    I am still trying to resolve my issue, but found the ^field command in the reference manual (Print Agent),
    and am wondering if I can use it.

  • Transport ESS MSS changes and new web dynpros

    Hi ,
    How do we transport the changes that we  make to ESS/MSS web dynpro screens and how do we transport the new web dynpro applications that we develop?
    Appreciate any suggestions.
    regards
    Sam

    Hi Sejoon,
    Why do you want to copy the DC's to a custom SC. It gives you a lot of problems with references in the WebDynpro's and in the backend customizing.
    The ESS/MSS applications are in a separate business package which you don't need to upgrade whenever you apply a patch to your portal, so there is no administrative effort.
    Also, if you copy the DC's to a custom SC, and you do want to upgrade the package, then you still have to copy the DC again, and redo all your changes.
    Anyway, SAP's recommended approach is described in the NWDI cookbook; it says not to copy the DC's, but change directly in the original.
    Johan

  • Outlook error when collapsing groups on TS - specific users only - cleanviews and new profile didn't help.

    We have a Citrix environment for app publishing.
    Office 2007 is installed, and the users use the published outlook 2007.
    For some users only(not all users), when they arrange by "from" and in-groups they get an error when they try and collapse groups.
    Error is "There are no items to show in this view".
    It does not affect all users.
    Troubleshooting attempted:
    Recreated user's profile. - No change
    Made user an administrator
    -Logged in locally
    -ran outlook in safe-mode -> no change.
    -ran cleanviews -> no change
    There were no policies applied at the time, and there are no user specific configurations.
    I can't find any other articles which might be pertinent. How should I troubleshoot this?

    Hi,
    One more thing you can try is to run Office Configuration Analyzer Tool to find if there is any error of the installation.
    The tool provides a detailed report of your installed Office programs. This report includes many parameters about your Office program configuration. It also highlights known problems that are found when OffCAT scans your computer.
    Office Configuration Analyzer Tool (OffCAT) information:
    http://support.microsoft.com/kb/2812744
    To download Microsoft Office Configuration Analyzer Tool:
    http://www.microsoft.com/en-hk/download/details.aspx?id=36852
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

Maybe you are looking for