Setup transactional replication with pull subscription using the option @allow_initialize_from_backup

I am trying to setup  transactional replication with pull subscription using the option @allow_initialize_from_backup = true and I am a bit confused on steps involved because at teh end of setup it shows ‘uninitialized subscriber’ in replication
monitor.
Publisher, distributor and subscriber are three separte SQL server 2008 R2 servers.
I executed below steps -
On publisher SQL server executed sp_addpublication with  options @immediate_sync ='true and   @allow_initialize_from_backup = true  
On publisher SQL server executed  sp_addarticle to add the articles
On distribution  SQL server disabled distribution cleanup agent and stopped the distribution cleanup job
On publisher SQL server created full backup of the publication db
On subscriber SQL server restored above backup with recovery
On publisher  executed  sp_addsubscription using options  @subscription_type = N'pull', and @sync_type = N'initialize with backup'
On subscriber  executed  sp_addpullsubscription  using options  @independent_agent = N'True',@subscription_type = N'pull',@description = N'',@update_mode = N'read only',@immediate_sync = 1
On distribution  SQL server enabled distribution cleanup agent and started the distribution cleanup job
At the end of these steps it shows ‘uninitialized subscriber’ in replication monitor.  What am I doing wrong ?
 In the above steps what is the difference between sp_addsubscription and sp_addpullsubscription ? 
When I setup transactional replication with push subscription using the option @allow_initialize_from_backup = true, I only execute sp_addsubscription on publisher.
Ravi Kumar

After the step 7 did you create the  "Pull Subscription Agent" by running the below stored procedure?
EXEC sp_addpullsubscription_agent
http://msdn.microsoft.com/en-us/library/ms147834.aspx - Step 6
"(Optional) For a pull subscription, execute sp_addpullsubscription (Transact-SQL) and
sp_addpullsubscription_agent (Transact-SQL) at the Subscriber on the subscription database. For more information, see
Create a Pull Subscription."
Check this article for step by step with example-
http://www.sqlpassion.at/archive/2012/08/05/initialize-a-transactional-replication-from-a-database-backup/ The only thing in this article is it uses immediate_sync to be false, where as BOL says to keep it true when allow_initilize_from_backup is true.
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

Similar Messages

  • Cannot see Transaction replication with updatable subscription in new publication wizard-sqlserver 2005 standard edition

    Folks,
    I am planning to implement transactional replication with updatable subscription between two sql2005 Instance .I am surprised that i cold see this type of replication in the new publication wizard in the source server instead i see peer-to-peer replication.
    Could you please help me in understanding how to setup  transactional replication with updatable subscription in sqlserver 2005 standard edition.
    Thanks.

    Hi soories,
    In addition to Ashwin’s post, peer-to-peer replication is available only in SQL Server 2005 Enterprise Edition. Please
    execute ‘Select @@version’ in SQL Server to verify the version and edition of your SQL Server instance.
    Also if you cannot see the option “Transaction replication with updatable subscription” in New Publication Wizard, you can use T-SQL to achieve this requirement.
    How to: Create an Updatable Subscription to a Transactional Publication (Replication Transact-SQL Programming)
    https://technet.microsoft.com/en-us/library/ms146922(v=sql.90).aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Noncovergence in transactional replication with updatable subscription

    Hello all, 
    I have a Transactional replication with updatable subscription setup having 1 publisher and 3 subscribers. All the servers are SQL 2008 and have conflict resolution
    policy set as subscriber wins. Of late, I have been observing data mismatch for few tables. Some tables have records but their column values doesn't match. Some records are there on one subscriber but missing on publisher and other subscribers. However replication
    is running fine without any issue. I am trying to understand what could have caused this issue and how it could be avoided in future. 
    Do you guys have any idea what might be causing this and how to fix this?
    Let me know if you need any further details. 
    FYI: There is no filter defined for any articles in replication.
    Thanks, 
    Nainesh.

    If these problem rows do not show up as conflicts you will need to create audit tables and triggers to determine why these rows are not being picked up for replication.
    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

  • SQL Server 2012 Transactional Replication with updateable subscriptioins

    Hi All,
    It is heard that Transactional Replication with Updateable Subscriptions
    is
    deprecated in SQL 2012 so it is not possible to configure through the wizards but
    we can still configure it by using T-SQL Script. Would you please share that script if possible to configure the same in SQL Server 2012. Thank You.
    Regards,
    Kalyan
    ----Learners Curiosity Never Ends----

    Thanks for the information,
    I understand that you have got the answer yourself and post it, Therefor I mark your answer. If this is still open question please inform us.
    [Personal Site] [Blog] [Facebook]

  • Transactional publication with updatable subscriptions

    Which system table stored the information of Transactional publication with updatable subscriptions? I would like to check if any publication is using. Thanks

    As Hilary Cotter and Prasharith mentioned above the syspublications view
    exposes publication information and ofcourse this view is stored in the distribution database.
    --To obtain information about Publish Database use this
    SELECT
    * FROM sysarticles
    SELECT
    * FROM syspublications
    --To obtain information about Distribution DataBase
    UseDistribution
    GO
    SELECT
    * FROM distribution..mspublications
    --To obtain information about SubscriberDataBase
    USESubscriptionDatabase
    SELECT
    * FROM MSsubscriptions
    SELECT
    * FROM MSsubscriber_info
    The one i have listed below are DMV’s for Replication, you can try whichever works for you to reterive publication information as well
    /*sys.dm_repl_articles-- holds information about each article being published. It returns data from the database being published and returns a row for
    each object being published in each article. */
            select
    * from
    sys.dm_repl_articles
     /*sys.dm_repl_schemas-- has information about each table and column being published. It returns data from the database being published
    and returns one row for each column in each object being published. */
            select
    * from
    sys.dm_repl_schemas
    /*sys.dm_repl_tranhash--holds information about the hashing of transactions. The syntax is as follows:*/
            select
    * from
    sys.dm_repl_tranhash
    /*sys.dm_repl_traninfo-- revels information about each transaction in a transactional replication. */
            select
    * from
    sys.dm_repl_traninfo

  • How do i share music with 2 iphones using the same apple id?

    how do i share music with 2 iphones using the same apple id?

    Sync them both to the same iTunes music library.  You can also automatically download purchased music to both by going to Settings>iTunes & App Stores and turning Music to On under Automatic Downloads.  If you music is in multiple computers, you can enable Home sharing to share your music library across multiple devices (see http://support.apple.com/kb/HT3819).

  • HT1343 how to use the options with F10, F11, F11 for turning the sound up or down or mute?

    Hi, I'm Hannah. I'm using a Mac. Can you show me how to use the options with F10, F11, F12 for turning the sound up, or down or mute? Thank you very much

    Normally simply pressing them should do what you want, F10 to mute; F11 to decrease volume; F12 to increase volume. However, it's possible that you have a box ticked in Keyboard preferences which modifies the behaviour of the keys, requiring you to also hold down the Fn key (bottom left key on the keyboard) to enable the function.
    Check System Preferences>Keyboard to makes sure the box indicated in the image isn't ticked.

  • I would like to answer the phone with one touch using the speaker button

    I would like to answer the phone with one touch using the speaker button?

    this is a user helping user forum if you wish to request/advice or complain to apple you will likely have more success using the feedback channel
    http://www.apple.com/feedback/iphone.html

  • Hi everyone, to use the portal with many users using the same portal user?

    I have an another question is possible to use the portal with many users using the same portal user with diferent roles in the same time?
    thanks

    Hi Israel,
    It is possible to have same user logged in through differnt terminals or browser windows. However if there are say 10 roles assigned to that user, all 10 will be visible in all the windows. However you may open and work on different roles.. in the different windows.
    Note that the real time collaboration features shall not be available if the same user logs in multiple times.
    Hope this is useful.
    Regards,
    Anagha

  • Failed to export using the options you specified. Please check your options

    Hi..
    i was using crystal report10.5 with visual studio 2008(c#)..
    now im migrated to visual studio 2010....and i have installed these setups http://www.sdn.sap.com/irj/boc/crystalreports and http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet ...
    when i open my project it will ask to convert crystal reports and i have converted ...reports are working fine but in tool bar if i click and select a pdf format to export it will display a error message Failed to export using the options you specified. Please check your options and try again. and if i click on print button it is not working(i have set printmode=pdf)...when i was working on vs2008 both were working fine but in vs2010 it is not working..

    Hello,
    What type of app you are using? A win app will not have this option. Also what FW are you using? Have you made changes to the viewer(after migrating) and ensure that you are using the 13.0.2000.0?
    Take a look at [this|Export and print problem; thread, also.
    Thanks.

  • Using the Optional Remote Custom Dialog URL

    Can anybody point me to a magazine that uses the Optional Remote Custom Dialog URL (preferably with a free subscription).
    Lately, we've been testing the implementation of the remote custom dialog feature.
    As we understand, this is not be a standard web page that get's loaded to the internal browser, but a dialog that displays as an overlay, but we still didn't manage to implement it.
    Any sample or tutorial we can refer to?

    Have you tried implementing a Javascript close/cancel/ok Button?
    <html> 
    <head>
       <title>JavaScript Window Close Example </title>
    </head>
    <script type="text/javascript">
       function popuponclick()
          my_window = window.open("",
           "mywindow","status=1,width=350,height=150");
          my_window.document.write('<h1>The Popup Window</h1>');
       function closepopup()
          if(false == my_window.closed)
             my_window.close ();
          else
             alert('Window already closed!');
    </script>
    <body>
       <p>
          <a href="javascript: popuponclick()">Open Popup Window</a>
       </p>
       <p>
          <a href="javascript: closepopup()">Close the Popup Window</a>
       </p>
    </body>
    </html>

  • My keyboard freezes after using the option key... what gives?

    I have a 17" MacBookPro with OSX 10.6.8
    The problem:   My keyboard key freeze after using the " option key"  in Photoshop or  when downloading a file using the option key.
    I can usually use it 2 or 3 times before it makes a chirping cricket like sound… then my keys freeze up.? The only way to correct it is to restart.
    Anyone else have or had this issue?   it's frustrating.  What's the deal?

    hausman wrote:
    tianmiao0304 wrote:
    Thanks for your explanation!
    Can I just bring my laptop to the nearest service center and get this problem solved directly? You know, usually it will takes several days to receive the backup keyborad, I can't wait
    You'll have to phone the service center and ask. (When I lived not far from Lenovo's Canadian service center and wanted to bring in a ThinkPad for warranty repair they said that would be OK with them but my unit would be put on a queue the same as if I'd shipped it in. They simply didn't offer walk-in, while you wait service.)
    In the interim it may or may not be possible to reattach the key, even just temporarily, depending on whether it wasn't put on properly at the factory or if it's physically broken in some way. Or you could use an external keyboard until Lenovo sends you a replacement, etc.
    I've just call the local service center, he told me that he can not repair individual key, they can just replace the whole keyboard..... How bad luck I am!!!

  • Cannot Open A Library File Using the 'Option' key When Launching iTunes

    I found that when I tried to open a different iTunes library file then my default by using the 'option' key when lanching iTunes that the iTunes Library file was greyed out.
    I looked in the previous Library Folder and noticed that the old file had the extension .itl.
    My solution was to add the extension .itl to the end of the of the file name of my iTunes Library files and things then worked when launching with the 'option' key. As an example 'iTunes Terry Library' became 'iTunes Terry Library.itl'. I applied this to all my iTunes library filles and all is well. Of course make a duplicate of the file you are going to change so you have a backup file.
    I am using iTunes 10.4 and Sno-Leopard 10.6.8.
    MJ

    No, choose library works in Windows. The thread you linked to suggested that, on OSX at least, iTunes now behaves like almost every other application in that you can open a data file associated with the application and it opens that data file rather than a different one it had opened in the past. I was hoping things might have actually changed.
    In short, holding shift or option while launching the app is a very clunky way of opening an alternative library given the standard behaviour of the GUI where "opening" a data file normally opens the application that can work with it.
    tt2

  • IPhoto won't let me open it using the option key

    When I try to open iphoto with the option key held down I get tne error message "the library is a Time Machine copy and cannot use". The only option I have is to Quit which gives me a viscous circle. How can I change to another library without opening using the option key.

    Thanks for the reply.
    I am not trying to use a library from a Time Machine backup. I have made a library from Time Machine by restoring it and that is the one I want to use.
    It had worked just two weeks ago, but now I am getting the error message with only the "QUIT" option and the revolving circle indicating the program is trying but not suceeding.
    I believe iPhoto is pointing to the pictures in my user's files - MacSSD/Users/JBL/pictures. I deleted a small iPhoto Library (7.4mb) that had been given a 3/14/14 designation and now there isn't an iphoto library in pictures. I'm not sure how that file got created, but iPhoto started last using the restored library that resides on an external hard drive.
    How can I determine where iPhoto is pointing to find the library without opening iPhoto which I can't do because of the circular QUIT option?
    Any further help will be most appreciated.

  • I downloaded 10.5.1 now I cannot open libraries from my external hardrive.  They are not highlighted when I open using the Option key

    I downloaded 10.5.1 now I cannot open libraries from my external hardrive.  They are not highlighted when I open using the Option key

    Hello, when you try Tylerdowner's reply make sure that you '''do not install Firefox using a limited Windows XP account''', you need sp2 and above in your xp.
    thank you

Maybe you are looking for