How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every 4 hours.

How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

Hello,
If you had configure server2 as
linked server on the server1, you can run the following statement inside stored proceduce to copy table data. And then create a job to the run stored proceduce every 4 hours.
Insert Into Server2.Database2.dbo.Table2
(Cols)
Select Cols From Server1.Database1.dbo.Table1
Or you can use the SQL Server Import and Export Wizard to export the data from server1 to server2, save the SSIS package created by the wizard on the SQL Server, create a job to run the SSIS package. 
Reference:http://technet.microsoft.com/en-us/library/ms141209.aspx
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support

Similar Messages

  • How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

    How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so
    many hours.

    How big is the table on server B? Is that possible to bring the all data into a server A and merge the data locally?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to schedule a Stored procedure to run every hour in SQL server express

    Hi,
    I am using SQL server express and I want to schedule a Stored procedure to run every hour.
    The Stored Procedure name is UpdateData.
    Can someone please give an example of how i can schedule this to run every hour, given that I do not have SQL Server agent on my express edition.

    Hello,
    You will find more options on the following thread.
    http://stackoverflow.com/questions/1675206/how-to-run-a-stored-procedure-every-day-in-sql-server-express-edition
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How can I merge data from a spreadsheet to a document that I can email on an iPad?

    I Am switching from a old pc to my new iPad Air 2 and need to run my eBay business from it. The last issue I am having is I need to pull data from the sales spreadsheet I download from eBay and put the data in a document that includes name, address, quantity, part number, sku etc. so I can email the order off. I used to use Mail merge in Microsoft word for this but t it doesn't look like the iPad version of Microsoft office does this. Any help is great thanks,

    newfie_74 wrote:
    No, she didn't disable it on her iPad.  I don't think she should have to (she doesn't want to, anyways).
    I said iphone not ipad.
    Have you called apple support?

  • How can I restore data from my iCloud account on a new iPhone 5c with a previous SW version that my old (stolen) iPhone 5?

    Hello everybody,
    I need help to restore data from my iCloud account on an unused iPhone 5c because my iPhone 5 with a newer iOS update was stolen. When I try I get a message that I cannot retore my data because the iOS on my iPhone 5c is an older version than on the stolen iPhone 5.
    There must be a way to do this. I hope to hear from you
    thanks!

    Welcome to Apple Support Communities
    You cannot. However, you can solve this problem by setting the iPhone as a new device and upgrading iOS in Settings -> Software Update.
    After upgrading iOS, open Settings -> General -> Reset -> Erase All Content and Settings. Finally, Setup Assistant will let you restore the backup.

  • How to get parents data from a leaf in a recursive table

    I want to get a list of all parents data related to a leaf in a table.
    The table has 3 rows id, description, parent.
    if I have the id of one of this items I want to get all his parents, is there a way to get this with a select or with connect by prior?

    Maybe
    select substr(sys_connect_by_path(to_char(empno),','),2) parant_chain
      from emp
    where connect_by_isleaf = 1
    start with empno = 7369
    connect by empno = prior mgr
    PARANT_CHAIN
    7369,7902,7566,7839
    Regards
    Etbin

  • How to get the data from the model node like a table ?

    I want to get the data from the model node  once a record ,and the node  is bound to a internal table in the RFM which I called in the R/3 system. Who can give me some advice to achive it?Thank you!!

    Hi,
    To get the data from the node:
    wdContext.node[your node name].current[node name]_InputElement().get[specific element in the node];
    or you van use:
    wdContext.current[your node]Element().get[your element in the node];
    examples:
    wdContext.nodeZ_Mepro_Po_Detail_Stock_Distri_Input().currentZ_Mepro_Po_Detail_Stock_Distri_InputElement().getUcpd_Flag();
    wdContext.currentT_Delv_ReqsElement().getShelflife();
    regards,

  • How can i retrieve data from a macbook pro that has the flashing folder with an ? mark in it, to a brand new iMac

    I want to do a data recovery of my 15" MBP that has the flashing folder w/ ? mark in it, to an iMac 21.4"; how can i go about that?

    DJSMACC wrote:
    How do I go about removing the internal drive and mount it to an external enclosure @Linc Davis??? Sorry that I'm not too hip with all the technology lingo & etc?
    You'll have to watch the video and buy a few tools to extract the driive.
    http://eshop.macsales.com/installvideos/
    Then use something like this to connect to the other Mac or PC with MacDrive installed.
    http://eshop.macsales.com/item/Newer%20Technology/U3NVSPATA/
    You also can get the same adapter elsewhere online for as low as $12 I've seen.
    Likely it's a USB 2,1 which your Mac's can only accept USB 2,1 anyway, no need to pay more for a USB 3 unless you want too.
    No compensation for site or product mention
    You likely should be having a professional or Apple tech attempt to bypass the firmware password if you forgot it, it's the best way to go about things.
    Just because the Mac has a spinning wheel gray screen at boot doesn't mean it's ruined, you just need to bypass the firmware password and then from there fix the machine's cause for not booting, which is likely a software issue from a third party kernel extension file.
    Step by Step to fix your Mac
    You should know that opening the iMac could likely ruin it and will ruin any warranty or AppleCare, and if it's a Early 2011 model or later you can't replace the hard drive yourself as Apple has proprietary software installed on the drive that needs to "talk" to OS X to control the fans speeds.
    Good Luck.

  • How do I take data from a query sample record and query another block with it?

    I have a master/detail form (6i) that contains a master block (staff), and a detail block (phone). I would like to be able
    to query by phone number, but when I execute the query, I would like a 'search results' box to pop up that contains the
    phone number I queried for, as well as some other staff info. There might be multiple records that match my query,
    and I'd like them all to be listed (or list 10 or so, with a scrollbar). I'd like a push button next to each record that will take
    me back to the master/detail window with that record displayed. So, I created a third block that is based on a joined
    view of the staff and phone tables. It is a multi-record block, with 10 recs displayed and a scrollbar. It is in a separate
    window. I don't want the user to have to navigate to that block, however, to perform their query. I would like them to be
    able to enter the query in the phone number block, then somehow grab the phone number they've entered and use it to
    query my 'search' block. This is the part I'm having trouble with. Can someone please help? THANKS!

    Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
    fullXML[myDataGrid.selectedIndex].FIELD_NAME;
    myDataGrid would be the id from the grid I am guessing?
    and selected index would be the channel.description part?
    and FIELD_NAME; is the variable name?
    does this go into a funtion or is it placed at the top where the variables are declared?

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • How to Extract the data from R/3 Genric extractor to BW ?

    How to Extract the data from R/3 Genric extractor to BW ?

    hi,
    step by step procedure for generic extraction delta
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Refer:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Extractions in BI
    https://www.sdn.sap.com/irj/sdn/wiki
    New to Materials Management / Warehouse Management?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    Ramesh

  • How can I migrate data from SQL Server 6,5 to Oracle 8?

    We have a web site based on Microsoft SQL Server 6.5.Now we plan
    to migrate the database to Oracle 8.
    We have redesigned the tables structure and created tables under
    Oracle 8, so we only need to migrate data from SQL Server.
    We've exported data from SQL Server to text files.
    How can we import data from files and restore to Oracle tables.
    Is there a solution which let us to import data for particular
    table columns,not all columns?
    We'll be appreciated if somene can give suggestions.
    Regards
    Michael
    null

    Thank you for your reply.
    I'll try the Oracle sqlloader utility first.
    Regards
    Micahel
    Oracle Migration Workbench Team wrote:
    : Michael,
    : Oracle sqlloader is user for this sort of operation, see
    : Oracle8i Utilities
    : Release 8.1.5
    : A67792-01
    : available online through Oracle Technology Network.
    : The Oracle Migration Workbench can be used to create bcp and
    : sqlloader scripts, though since you have altered the schema
    these
    : scripts would need to be altered by hand after generation.
    : Some thought has been put into redesigning table structures in
    : the Oracle Migration Workbench, but currently it looks like
    this
    : reengineering will be left to be done by other tools, eg
    Oracle
    : Designer, once the SQLServer database has been duplicated with
    as
    : little change as possible onto Oracle.
    : Hope that helps,
    : Turloch
    : Oracle Migration Workbench Team
    : Michael (guest) wrote:
    : : We have a web site based on Microsoft SQL Server 6.5.Now we
    : plan
    : : to migrate the database to Oracle 8.
    : : We have redesigned the tables structure and created tables
    : under
    : : Oracle 8, so we only need to migrate data from SQL Server.
    : : We've exported data from SQL Server to text files.
    : : How can we import data from files and restore to Oracle
    tables.
    : : Is there a solution which let us to import data for
    particular
    : : table columns,not all columns?
    : : We'll be appreciated if somene can give suggestions.
    : : Regards
    : : Michael
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • HOW TO TRANSFER HISTORICAL DATA FROM ONE ACCOUNT TO ANOTHER

    제품 : FIN_GL
    작성날짜 : 2006-05-29
    HOW TO TRANSFER HISTORICAL DATA FROM ONE ACCOUNT TO ANOTHER
    =============================================================
    PURPOSE
    특정 기간의 Balance 를 Account 별로 Transfer 하는 방법에 대해 알아 보도록 한다.
    Explanation
    GL 의 Mass Maintenance 기능을 이용하면 한 Account 에서 다른 Account 로 혹은 Multiple Account 에서 다른 하나의 Account 로 Balance 를 이동 시킬 수 있다.
    1. GL Responsibility 에서 Other> Mass Maintenance 를 선택한다.
    2. Move/Merge 작업을 위한 Request Name 과 Description을 입력한다.
    3. Request Type 으로 Move 혹은 Merge 를 선택한다.
    4. source-to-target account 를 위해 line number 를 입력한다.
    5. LOV 에서 source Account 를 선택하여 입력한다.
    모든 Account 는 enable 상태여야 한다.
    6. target account 역시 LOV에서 선택하여 입력한다.
    7. 지정한 작업을 수행 하기 전에 먼저 확인 작업을 할 수도 있다.
    8. 작업한 내용을 저장한다.
    9. Move/Merge request 를 수행한다.
    Example
    N/A
    Reference Documents
    Note. 146050.1 - How to Transfer Historical Data from One Account to Another

    Follow the directions here:
    http://support.apple.com/kb/HT2109

  • How to delete the data from partition table

    Hi all,
    Am very new to partition concepts in oracle..
    here my question is how to delete the data from partition table.
    is the below query will work ?
    delete from table1 partition (P_2008_1212)
    we have define range partition ...
    or help me how to delete the data from partition table.
    Thanks
    Sree

    874823 wrote:
    delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
    Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
    How the table implements its structure is a physical design consideration.
    Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
    When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
    And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
    Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
    This is a crucial concept to understand and get right.

  • Select data from Table1 based on Table2

    Hi Guys,
    Can you guide me up on how to select data from Table1 based on Table2?
    I want to fetch data which is not there in table2 in my table1 select query.
    Is that I have to do it with the loops after I select data from both tables or can it be handled directly in my select query?
    Please suggest.
    Regards,
    Kumar.

    hi
    Try This
    In Where condition filedname (Not Equal) < > itab2-fieldname.
    select * from itab1
    into table lt_tab.
    seect * from itab2
    into table lt_tab
    for all entries in lt_tab
    where name < >(Not Equal to)itab2-fieldname.

Maybe you are looking for

  • What do I do after forced restart does nothing. Still can not use Ipad 2

    I have ipad 2 running the latest update on 8.  I was able to briefly turn on ipad last night, and then when I tried to use it , it would not do anything, nothing would open, therefore I forced closed. I have not been able to do a tyhing. I see apple

  • Pdf attachments cause mail to freeze

    When I receive emails with single page pdf attachments, mail freezes while trying to show preview of the pdf. I then have to force quit mail. These files aren't particularly large- the last one to freeze was 2.6 megabytes. This is a new and powerful

  • RMAN - Is it possible to run Archivelog Backup while Full backup is running

    Hi, Our full database backups runs daily in the night. It fails whenever an archivelog backup kicks off. This happens on our big databases where backups run for long hours and we have to run the archivelog backup to backup/delete the archivelogs to m

  • Queues getting piled up in Outbound que SMQ1

    Queues getting piled up in the outbound que and wait time now is 10 to 15 minutes before getting refreshed which was more then 45 minutes earlier, FYI there are 5 application instances in the prod system and this ques getting piled up after hitting a

  • I can use a windjet but Muse doesn't work as Indesign.

    I has a problem to create a block text and an image with Muse. All is modified, it is impossible to separate modifications. It is keeping link between old and new block. Resolution: I try to do it from new document. Problem doesn't appears but I cann