Best way to move the distribution and subscriber to another server

What is the best way to move the distribution and subscriber role to a different server for transactional replication?
Stop activity on the publisher then script out the drop and create and point to the new ones?
The publisher will remain the same server.
Thank you!
Paula

Hi Paula,
According to your description, you want to move distribution database and subscription database to a different server.
Firstly, to move distribution database without dropping and recreating the replication topology, you could follow the steps in the
article . However, the best way I recommend is to remove the replication, create the distribution on the new server, and recreate publication and subscription.
To make this process simple, you could use SQL Server Management Studio (SSMS) to generate scripts and run the scripts to recreate publications and subscriptions or drop publications and subscriptions as the screenshot below. Checking ‘To create or enable
the components’ generates the script for creating the publications and subscriptions, and Checking ‘To drop or disable the components’ generates the script for dropping the publications and subscriptions.
Firstly, please use SSMS to generate the script which is used to create publications and subscriptions.
1.Connect to Publisher, or Subscriber in SSMS, and then expand the server node.
2.Right-click the Replication folder, and then click Generate Scripts.
3.In the Generate SQL Script dialog box, check ‘To create or enable the components’.
4.Click Script to File.
5.Enter a file name in the Script File Location dialog box, and then click Save. A status message is displayed.
6.Click OK, and then click Close. For more information about the process, please refer to the article:
http://msdn.microsoft.com/en-us/library/ms152483.aspx.
Secondly, follow the steps above, check ‘To drop or disable the components’ to generate the script used to drop publications and subscriptions. Then run the script to drop publications and subscriptions.
Thirdly, please disable distribution using Transact-SQL or SSMS following the steps in the article:
http://technet.microsoft.com/en-us/library/ms152757(v=sql.105).aspx.
Fourthly, please create the distribution at the new server using Transact-SQL or SSMS following the steps in the article:
http://msdn.microsoft.com/en-us/library/ms151192.aspx#TsqlProcedure.
Last, please run the script generated in the first step to recreate publications and subscriptions.
Regards,
Michelle Li
If you have any feedback on our support, please click
here.

Similar Messages

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • Best way to move Mail, Contacts, and Calendars

    I'm adding an additional server to my network to distribute some of my services and I would like to move the mail, contacts, and calendar services to this new server. It will be a ML machine running 10.8.5 with Server 2.2.1. I have these services already running on another server also running ML 10.8.5 and server 2.2.1.
    What's the best way to move the data between these two machines? Any suggestion are greatly appreciated!

    Mail: mailboxes from /Library/Server/Mail/Data/mail can be moved using command line
    - Note the correspondence between mailbox folder name(hexadecimal) and user name, can be extracted using Directory tool)
    - Also if u want to have the same username - hexa key maybe you should export the OD. Personally I would just rename old folder to new hexa key)
    - Do not forget to also check(mimic) the folder group/owner rights
    Calendar&Contacts: Use Export and Import.
    I honestly think this are the best ways (fast&clean).
    Also I think they are safe, mail 100% is transferred and for Calendar&Contacts I am not aware of any data that can be lost during export-import.
    (of course you can also replicate your server using DiskUtility create new image, and then deactivate unwanted services)

  • What is the best way to move data from one array to another

    I'm going to be moving data from one array to a larger array on the same RAID but different controller. (I have some extra extra drives I'm also going to be installing Retrospect so I can't just restore from a backup.)
    The RAID has 450GB of production files, fonts etc.
    What is the best way to move the data over?
    I saw that someone had suggested using ditto. Would that be better than MacMV?
    I also own Bru LE so I could use that.
    Any advice would be appreciated.
    Thanks,
    Paul

    Ditto is a great option -- probably the best.
    ditto -rsrc src_folder /Volumes/targetvolume/targetfolder

  • How can I move the distribution database to a new server?

    I need to migrate an old distribution database to a new VM. My understanding is that you can detach/attach the distribution DB to make this easier. What are the 'gotchas' in this process? Do I need the detach/attach the system databases as well? The distributor
    is facilitating data from Oracle to SQL Server.
    Another question.. what are some good benchmarks for figuring out how much horsepower I should have set up in my VM that running distribution?
    Thanks,
    phil

    Hi philliptackett77,
    As your description, you want to migrate the distribution database to a new server. Based on my research, you need to remove the replication,  create the distribution on the new server, and recreate publication and subscription according to Satish's post.
    So you don’t need to detach or attach the distribution database or system databases.
    To make this process simple, you could use SQL Server Management Studio (SSMS) to generate scripts and run the scripts to recreate publications and subscriptions or drop publications and subscriptions as the screenshot below. Checking ‘To create or enable the
    components’ generates the script for creating the publications and subscriptions, and Checking ‘To drop or disable the components’ generates the script for dropping the publications and subscriptions.
    Firstly, please use SSMS to generate the script which is used to create publications and subscriptions.
    1.Connect to Publisher, or Subscriber in SSMS, and then expand the server node.
    2.Right-click the Replication folder, and then click Generate Scripts.
    3.In the Generate SQL Script dialog box, check ‘To create or enable the components’.
    4.Click Script to File.
    5.Enter a file name in the Script File Location dialog box, and then click Save. A status message is displayed.
    6.Click OK, and then click Close. For more information about the process, please refer to the article:
    http://msdn.microsoft.com/en-us/library/ms152483.aspx
    Secondly, follow the steps above, check ‘To drop or disable the components’ to generate the script used to drop publications and subscriptions. Then run the sript to drop publications and subscriptions.
    Thirdly, please disable distribution using Transact-SQL or SSMS following the steps in the article:
    http://technet.microsoft.com/en-us/library/ms152757(v=sql.105).aspx.
    Fourthly, please create the distribution at the new server using Transact-SQL or SSMS following the steps in the article:
    http://msdn.microsoft.com/en-us/library/ms151192.aspx#TsqlProcedure.
    Last, please run the script generated in the first step to recreate publications and subscriptions.
    Regards,
    Michelle Li

  • What is the best way to mimic the data from production to other server?

    Hi,
    here we user streams and advanced replication to send the data for 90% of tables from production to another production database server. if one goes down can use another one. is there any other best option rather using the streams and replication? we are having lot of problems with streams these days they keep break and get calls.
    I heard about data guard but dont know what is use of it? please advice the best way to replicate the data.
    Thanks a lot.....

    RAC, Data Guard. The first one is active-active, that is, you have two or more nodes accessing the same database on shared storage and you get both HA and load balancing. The second is active-passive (unless you're on 11.2 with Active Standby or Snapshot Standby), that is one database is primary and the other is standby, which you normally cannot query or modify, but to which you can quickly switch in case primary fails. There's also Logical Standby - it's based on Streams and generally looks like what you seem to be using now (sort of.) But it definitely has issues. You can also take a look at GoldenGate or SharePlex.

  • What is the best way to move all data and apps from an old ipad to a newq ipad air?

    What is the best way to convert (update) from an original ipad to a new ipad air?

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Moving Content to a New iPad
    http://tinyurl.com/qzk2a26
    Transferring your prepaid cellular data account depends on your carrier. AT&T lets you move it yourself when you go to Cellular Data in Settings and log into your account with your previous AT&T user name and password. For iPads with Sprint service, you can set up an account on the new iPad and contact Sprint Customer Care (888-211-4727 and go through the menus) to deactivate the old plan and get credit for unused service. For Verizon, call the company’s customer service number for mobile broadband support (800-786-8419) and ask to have your account transferred.
     Cheers, Tom

  • Best way to move Ap library and masters to a new HD

    Hello,
    I currently have my library on a 500GB HD on my mac pro. Since free space is running out I purchased a 1TB internal drive. Now I want to move everything to this new drive (library and masters).
    By copying all the masters and the library to the new location and pointing to it in the general preference of aperture would work but copying just will take too long.
    Is there a better way to do that?

    If you are moving masters, that sounds like you have referenced master files.
    1) Backup your Aperture Library if you can; don’t delete it and your original referenced masters until the last step, if ever!
    2) Use Aperture -> File -> Relocate Masters so Aperture makes all the connections to the new location itself:
    To move masters for referenced images to a new location
    In the Browser, select the referenced images whose masters you want to move.
    Choose File > Relocate Masters.
    Choose a folder location in the dialog that appears.
    Choose None from the Subfolders pop-up menu to specify that the files be stored as separate, individual files in the selected folder. You can also specify that Aperture create a hierarchy of subfolders with specific folder names to store your files. For more information about creating folders to hold your imported image files, see Importing Masters for Referenced Images into Folders.
    Choose a naming convention from the Name Format pop-up menu to specify how you want the masters named.
    For example, choose Master Filename from the Version Name pop-up menu to have your files stored using the current master filenames from your camera or card. Choose a name format from the Version Name pop-up menu to have your masters stored using a specified name. If you choose a custom name format, enter the name you want in the Name Text field. For more information about naming files, see Automatically Naming Your Imported Images.
    Click Relocate Masters.
    3) As for the Aperture Library now updated with the new locations for the referenced masters, you can certainly simply copy your Aperture Library to the internal drive.
    4) Then drag that internal drive library icon over your Aperture program icon in the dock, and you’ll launch the program with everything taken care of on the new location and the new library.
    5) Once confident everything worked properly (maybe in a few months unless you need the disk space sooner), delete or archive your original referenced masters and original Aperture Library.

  • What is the best way to move the Installer folder to another drive?

    The Installer folder on an SSD with limited space has grown to 30GB.  I am willing to take the risk to move this folder to another HD.  I have read about moving the folder using junction on other versions of Windows.  Is that still the best
    approach?
    Hong

    even though junction will also work for "C:\Windows\Installer" as stated at this document below
    http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
    http://bitsum.com/junctionmaster.php
    https://social.technet.microsoft.com/Forums/windows/en-US/83f91066-7918-4449-9b45-d2bea3e1a46d/can-you-move-the-windows-installer-folder-using-junctions?forum=w7itprogeneral
    I suggest do back up and create system restore before doing this, because this solution comes from 3rd party and I haven't tried this

  • The best way to remove the USB and the head set( U...

    i have nokia n73 and i want to know if there are some instruction on how to connect the USB and the head set to the phone and how to disconnect them , because sometimes i face some difficulty in con/disconnect them and i am afraid of dameging them , if there is a link to a video it would be better..

    And this thread was titled URGENT right?
    shocking.
    I just pull it out.
    I've never had a problem with these things.
    Obviously if you ram it back in again you can cause problems so be careful there.
    My posts are my opinion and in no way the direct views of Nokia.
    If my posts are helpful, please give me some KUDOS using the green star on the left.

  • Best way to move the aperture library to a new machine?

    Hi Folks,
    This must be an FAQ I just can't find it.
    I've just got a new machine and want to move Aperture to it. I have backed up the vault to an external drive. I 'think' you would restore the library from that. Any advice from those who've done this already, would be much appreciated.
    Mac Pro   Mac OS X (10.4.9)   Quad-Core Intel Xeon 4GB memory

    What it won't do is copy across your preferences, presets and keyword lists...
    Preferences - copy 'your home folder'/Library/Preferences/com.apple.Aperture.plist to the same place on the new computer.
    Presets and keywords lists etc. - copy the entire 'your home folder'/Library/Application Support/Aperture folder across.
    If you used Migration Assistant these have probably been copied across already.
    Ian

  • I have ordered the rMBP and will giving my old MBP (2010) to my girlfriend what is the best way to remove the programs and files that she wont use and make it her computer rather than my old one?

    I have no real need to upgrade but as a student the price it would be silly not to.
    I will be giving my MBP to my girlfriend but she wont use a lot of the software on there such as the final cut and CS5 and would rather use the space for her own iTunes library. Some will be kept on though like the old office suite as i have bought the 2011 one as well
    Can I also remove myself as a user on the macbook so the only login is hers? I would rather it was her computer rather than my old one!
    Cheers in advance!
    Kobi

    Hey, man, I'd be excited, too!
    She'll have whichever operating system that came with your computer. Your updates are tied to your Apple ID so if you've purchased updated OS X versions, she'll want to reinstall them using her own Apple ID (yes, it will cost her something but not much).
    Kappy's a know-it-all (and I mean that in the politest of terms) who's a frequent poster here. He has a 'canned' script about how to get your computer ready for resale. I guess he just doesn't have enough points yet to make it an User Tip, but it's a great little rundown of what to do.
    BEFORE you erase everything, I would purchase (if you don't already have one) an external USB hard drive and use Time Machine to backup everything. When you startup your new computer (or afterwards if you just can't wait to see the clean, crisp text in TextEdit) you can use Time Machine to properly migrate all your files, apps and all, onto your new MBPR. If you're not familiar with Time Machine, see  http://pondini.org/TM/FAQ.html. Oh, yeah, since you have Office 2011, you'll need your activation code handy as, for some reason, the activation code does not carry over when you use the Time Machine restore. All Adobe, etc., apps are fine. It's just that damned MS Office that gets you.
    Hopefully Kappy will jump in here. If not just post a message "Kappy: Preparing MBP for resell?" or something to that effect and I'm sure that he'll see it.
    Good luck,
    Clinton

  • Best Way to Move PowerMac G5 across town?

    I'm moving about 30 minutes away in a few weeks. I was wondering what the best way to move the tower and 20" cinema display would be? Any help greatly appreciated.

    i think that u can look to this web: www.ilugger.com
    they produce and sell very very good bags for make portable some mac "desktop" and cinema display, also.
    http://luggerbags.com/prolugger-200.jpg
    last month i buyed from ilugger, a bag for my imac 20" and this is incredible. you can take the imac with you, also in a fly, like hand bag. you put inside, also keyboard and mouse. You can use it not only for imac 17 and 20 but also for a cinema display 20 and macmini and keyb and mouse...geniale!

  • What is the best way to move Contacts onto the iPhone?

    Hi Guys,
    I currently have Nokia N82, usually when i get a new Nokia (since am a TOO loyal customer) i just take a backup from the previous one and add it to the new one when i get! i hate copying to/from SIM...
    Now when i want to get the iPhone what is the best way to move the Contacts??
    i use a Windows machine, STILL!

    For the couple of iPhones I have access to, you've got three methods to get contacts onto the device aside from moving them onto the SIM; I have found that copying to and from SIMs can leave data fields not totally aligned.
    (1) Via a cloud. One uses MobileMe (via iCal/Address Book entries) and the second uses an Exchange-based cloud. Both seem to work pretty well, although I do experience an occasional lag from time to time.
    (2) Via a sync on a desktop. My preferred method. Connecting to iCal/Address Book>iTunes or Outlook 2007>iTunes work very well. My only issue was that Outlook didn't work as I'd expected the first time, just as with a couple of other phones in the past (it never did work with my Motorola Z9); to "fix" the issue, I simply refreshed Outlook's contacts and rebooted Outlook - I actually had to do the same thing with iCal to "blow out the pipes" and both sync conduits work fine now.
    (3) Transfer Contacts to the iPhone via email using a vCard for each contact. I use version 3.0-compatible vCard files generated from Address Book or Entourage (Mac), Outlook or just about what my business contacts generate. Just about every platform has some unique data type, but I haven't received a vCard yet the iPhone can't handle via email.
    Getting your Contacts out of the iPhone. Option (1) or (2) - that's it AFAIK. I hope this helps you out!

  • What is the best way to append data from one field to another?

    I have the following table, table1:
    Name Null? Type
    MAIL_ID NOT NULL NUMBER(10)
    LAST_NAME VARCHAR2(45)
    FIRST_NAME VARCHAR2(45)
    MIDDLE_INITIAL VARCHAR2(1)
    ADDRESS_1 VARCHAR2(45)
    CITY VARCHAR2(35)
    STATE VARCHAR2(2)
    ZIP VARCHAR2(10)
    REMARKS VARCHAR2(200)
    The table has duplicate entries that need to be removed. The records that will be removed need the
    data in the Remarks column appended to the Remarks data of the record that is not deleted.
    For example, the following listing shows a sample of the duplicate records.
    Mail ID Last Name First Name M Address City St ZIP Remarks
    189 BROWN STEPHEN 6706 MOESER LN EL CERRITO CA 94530-2909 Sf7#s124,f16#d7996(NML)[Cl#117][Ml#1649][NMf1#d288][NCf9#d319][SNl#e62]
    211023 BROWN STEPHEN B 6706 MOESER LN EL CERRITO CA 94530 RLl#a12047[IDl#i398]
    287796 BROWN STEPHEN B 6706 MOESER LN EL CERRITO CA 94530 SNl#e1163
    The following listing shows how the kept record should appear after the duplicate records are deleted.
    Mail ID Last Name First Name M Address City St ZIP Remarks
    189 BROWN STEPHEN 6706 MOESER LN EL CERRITO CA 94530-2909 Sf7#s124,f16#d7996(NML)[Cl#117][Ml#1649][NMf1#d288][NCf9#d319][SNl#e62]RLl#a12047[IDl#i398]SNl#e1163
    I have the process of deleting duplicates working but have yet to determine the best way to move
    the Remarks data from the deleted records to the preserved record.
    I know there are probably various ways to approach this.
    Any suggestions will be greatly appreciated!
    Here is the sql for deleting duplicates.
    DELETE FROM table1
    WHERE mail_id in (SELECT mail_id FROM table1
              where not first_name = 'Null' and
    not last_name = 'Null' and
              not city = 'Null' and
              not state = 'Null'and
    not last_name = 'Anon'
              minus
              select min(mail_id) from table1
              group by first_name, last_name, city, state, address_1, organization, title);
    THANKS in advance!!!!

    Here's quick and dirty example probably a better way to do it, but this is what I came up with quickly.
    My table looks like this:
    MAIL_ID LAST FIRST PHONE REMARKS
    123 Ruff Shawn 555-555-5555 Called 10-10-04
    135 Ruff Shawn 555-555-5555 Called 10-12-04
    201 Ruff Shawn 555-555-5555 Called 10-19-04
    The code below will concatenate the remarks column from the rows, and delete the 135 and 201 rows, then update the 123 row with the concatenated remarks.
    declare
    l_remarks varchar2(500);
    l_min_mail_id number;
    begin
    select min(mail_id) into l_min_mail_id
    from test
    group by last, first, phone;
    select remarks into l_remarks from test where mail_id = l_min_mail_id;
    for i in (select mail_id, remarks from test
         where last = 'Ruff'
              and first = 'Shawn'
              and phone = '555-555-5555'
              and mail_id <> l_min_mail_id)
    loop
    l_remarks := l_remarks||','||i.remarks;
    delete from test where mail_id = i.mail_id;
    end loop;
    update test set remarks = l_remarks where mail_id = l_min_mail_id;
    commit;
    end;
    Hope this helps.

Maybe you are looking for