Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

Discussions on SQL Server Replication

older | 1 | .... | 118 | 119 | (Page 120) | 121 | 122 | .... | 181 | newer

    0 0
  • 02/20/15--00:35: IT DBA
  • Hi all, i am having issue after restore my DB from mssql server 2008 to mssql server 2014. When i am deleting my publication on mssql 2014 i've got an error  "could not delete publication 'xxx'. (mssql server, error :18752). Somebody maybe when thru this error? Pls help..

    many thanks,

    as


    0 0

    Hi everybody, i wanna ask you if somebody can tell me some recomendations when you have setted a merge replication environment and you have to replicate millions of records to some suscribers.

    0 0

    Hello.  I have three servers, A,B, and C, with SQL Server 2005 SP4 (9.00.5266) installed on Windows Server 2003 R2 Standard x64 SP2. Server C has SQL Reporting Services installed on it, while the others do not. All of the servers are in the same domain.  Server A is on one subnet.  Server B and Server C are on a different subnet.  Transactional replication of several databases from Server A (Publisher and Distributor) to Server B (Subscriber) has been working for a long time, and continues to do so. 

    I have a database on Server B that I want to replicate to Server C. A copy of this database exists on Server A, but that copy is not replicated anywhere. I can create a transactional publication for this databases on Server B. When I create a push subscription for Server C, the subscription is created, but replication fails to start. The Application log on the publisher records the following Event ID 14151 error. This error is logged about once every minute.

    Replication-Replication Distribution Subsystem: agent<agent job name> failed. The process could not connect to Subscriber '<ServerC>'.

    In the System logon the Publisher, the following Event ID 4 Kerberos error is logged in the System Log with the exact same timestamp as the error in the Application log. 

    The kerberos client received a KRB_AP_ERR_MODIFIED error from the server host/<ServerCfqdn>. The target name used was MSSQLSvc/<ServerCfqdn> :1433. This indicates that the password used to encrypt the kerberos service ticket is different than that on the target server. Commonly, this is due to identically named machine accounts in the target realm (<DomainName>), and the client realm.  Please contact your system administrator.

    None of the following have resolved the issue.

                   - deleting the subscription and re-creating it

                   - deleting the subscription and publication and re-creating them

                   - restarting the SQL services on Server B and Server C

                   - rebooting Server B and Server C

                   - backing up the database on the Publisher, and restoring the backup onto the subscriber

                   - removing duplicate and obsolete Host records in DNS

                        - verifying that there are no duplicate computer accounts in ADUC

    0 0

    I have an issue with SQL SERVER 2012 R2 replications. I created a Transactional Publication on my server, generating subscriptions (a subscriber which is on a LAN and another in a VPN. Both with SQL SERVER EXPRESS 2012) but nothing data is replicated. I have tried updating the SQL instances, giving permissions to the snapshot agent user, using the SA user to connect to the subscriber, checking the TCP / IP ports subscriber. In all of cases it generates the following error:

    Agent message code: 20084

    The processcould not connecttoSubscriber'xxx'  (Origen: MSSQL_REPL, Número de error: MSSQL_REPL0)

    Get help: http: //help /MSSQL_REPL0
    Named PipesProvider: Could notopen a connection toSQLServer[1326].(Source:MSSQLServer,Error number:1326)
    Get help: http: //help / 1326
    Error relatedor instance-specific networktoconnect to theSQLServer.The serveris not found oris not accessible.Verify that theinstance nameis correct and ifSQLServeris configured to allowremote connections.For moreinformation, see theBooks Online forSQLServer.(Source:MSSQLServer,Error number:1326)
    Get help: http: //help / 1326
    You have completedthe timeoutlogin (Source:MSSQLServer,Error number:HYT00)
    Get help: http: //help / HYT00

    Please, I hope you can help me.Thisreplication configuration'vesuccessfullydonemany times,but this time Ididthis unexpected problem andno longerto do.

    I appreciate yourresponse.


    Estyfen


    0 0

    I recently scripted out a Publication on my SQL 2008 R2 (Standard) Server because I was in the process of restoring the publishing database and needed to tear down/ rebuild replication. After restoring, running my script to recreate replication I noticed that the the tables in the subscriber went from having their Identity Specification set to Yes to No. 

    I had manually tore down and rebuilt this same publication in the past, without scripting, and not seen this behavior so I used the UI (SSMS) and did that again. This time the identity specification was back to Yes on the columns where it should be. 

    Why would scripting out an existing publication cause this to happen? What setting or behavior am I missing?

    Thank you



    0 0
  • 02/22/15--17:31: SQL Azure Sync Agent
  • Hi,

    Is that anyone can share the firewall port and IP address communication on the SQL Azure Sync Agent requirement?

    Is the network communication bidirectional? Thanks 


    0 0
  • 02/23/15--09:08: No trace of subscriber
  • Hi, 

    • SQL 2008R2 

    Just setting up replication between two servers in the same domain, the publisher also holds the distribution database.   I have set-up a new publication and created the initial snapshot, all the articles have been pushed out to the replication folders, no problems. 

    On the publisher I created a remote subscriber, this all worked ok, however I cannot see the subscription in the folder "Local Subscriptions" on the subscription server.   Should I be able to see this?   How can I change the credentials for this subscription if it does not appear in an folder "Local Subscription" on either the publisher or subscriber? 

    On the publisher server I have an agent job which runs continuously and should be pushing over to the subscriber, this job has three steps and fails continuously on step "Run Agent" which seems to be failing because the remote login is invalid, it's not as I have just logged into the server using these credentials.    

    The account the agent runs under is in the local admins group on both servers. 

    SQL Agent job on publisher. 

    Error message from step #2



    0 0

    Hi, 

    SQL 2008R2

    Trying to set-up replication between two servers in the same domain, I've run into problems with the account not being able to log in at the subscriber and so I decided to delete all entries from the "Local Publications" and "Local Subscribers" folder.  

    Problem is I still have entries for these in the "Replication Monitor", any idea why? 

    I want to go ahead and try this again but am concerned that there may be stuff lying around that will effect my new publications.  So, can I refresh the replication environment? 

    I also set-up a push subscription on the remote server, this appears in the list above which is from the publisher however there appears to be no trace of it on the subscriber. 

    Really not sure what I have done wrong here. 



    0 0

    Hello,

    I have taken a full backup of a SQL user database with SQL vss writer. When i am trying to restore with additionalrestores set to true, the restore is failing with error code 0x800423f4.  The backup restore process is successful if the additional restores is not set.

    My setup consists of a windows server 2012 with SQL 2012. I am using a non-csv volume from a storage array.

    1) What could be the possible reasons for this failure at prerestore stage ?

    2) The restore fails only when additionalrestores is set, are there any pre-requisites for using additional restores?

    3) How to enable logs for sqlwriter?

    Any reply would be really helpful.

    Thanks.

    Code snippet for setting the additional restores.

    IVssBackupComponentsEx->SetAdditionalRestores(...., bAdditionalRestores=true)

    VSS Logs.

    [16:10:40.414 P:1668 T:18F8 BUECXMLC(1082)   BUCOMP] ENTER[CVssComponent::GetAdditionalRestores]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0631)   VSSXML] ENTER[CXMLDocument::ResetToDocument]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0631)   VSSXML] EXIT[CXMLDocument::ResetToDocument] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0569)   VSSXML] ENTER[CXMLDocument::FindAttribute]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0569)   VSSXML] EXIT[CXMLDocument::FindAttribute] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8 BUECXMLC(1082)   BUCOMP] EXIT[CVssComponent::GetAdditionalRestores] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8 BUECXMLC(1329)   BUCOMP] ENTER[CVssComponent::SetPreRestoreFailureMsg]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0631)   VSSXML] ENTER[CXMLDocument::ResetToDocument]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0631)   VSSXML] EXIT[CXMLDocument::ResetToDocument] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0156)   VSSXML] ENTER[CXMLNode::SetAttribute]
    [16:10:40.414 P:1668 T:18F8  BUEXMLC(0156)   VSSXML] EXIT[CXMLNode::SetAttribute] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8 BUECXMLC(1329)   BUCOMP] EXIT[CVssComponent::SetPreRestoreFailureMsg] Time spent: 00:00:00-0000; total: 0; HRESULT: 0
    [16:10:40.414 P:1668 T:18F8 WRTWRTIC(1101)   WRITER] ENTER[CVssWriterImpl::SetWriterFailure]
    [16:10:40.414 P:1668 T:18F8 WRTWRTIC(1114)   WRITER] ENTER[CVssWriterImpl::SetWriterFailureEx]
    [16:10:40.414 P:1668 T:18F8 WRTWRTIC(1131)   WRITER] Setting the restore failure status, hr=0x800423f4


    [16:11:48.699 P:1668 T:1A80 WRTWRTIC(1396)   WRITER] EXIT[CVssWriterImpl::InternalGetWriterComponents] Time spent: 00:00:00-0015; total: 0xf; HRESULT: 0
    [16:11:48.699 P:1668 T:1A80 WRTWRTIC(1101)   WRITER] ENTER[CVssWriterImpl::SetWriterFailure]
    [16:11:48.699 P:1668 T:1A80 WRTWRTIC(1114)   WRITER] ENTER[CVssWriterImpl::SetWriterFailureEx]
    [16:11:48.699 P:1668 T:1A80 WRTWRTIC(1131)   WRITER] Setting the restore failure status, hr=0x800423f4
    [16:11:48.699 P:1668 T:1A80 REGREGSC(1327)      GEN] ENTER[CVssDiag::RecordGenericEvent]
    [16:11:48.699 P:1668 T:1A80 REGREGSC(1331)      GEN] Parameters -2147212300, 1, 1, 0x00000000, {00000000-0000-0000-0000-000000000000}
    [16:11:48.699 P:1668 T:1A80 REGREGSC(1350)      GEN] Event name: ((HRESULT)0x800423F4L) (SetCurrentFailure)
    [16:11:48.700 P:1668 T:1A80 WRTWRTIC(4246)   WRITER] THROW[CVssWriterImpl::PostRestoreInternal] Writer rejected the postrestore


    0 0

    My company was recently acquired by a different Parent company. We are currently in the process of migrating from one Domain to the new one using a Microsoft tool called ADMT. I currently have Merge replication with pull subscriptions setup. These have been working for several years. The distributor is a SQL 2005 box and is on the old domain. I have several SQL 2005 express subscribers with Laptops and another full SQL 2005 box in another city connected over an MPLS line that is a pull subscriber as well.

    Has anyone migrated a distributor to a different Domain using ADMT before and had any problems? The SQL agent does not run under a domain account, but rather a standard Windows account using pass through authentication. I would hate to lose the Replication setup on the Distributor. I could reestablish / reinitialize each subscriber, if I had to.

    Any thoughts?

    Thanks,

    Steve


    0 0

    Hi, 

    SQL 2008R2 

    I added a control table to a database that is being replicated to a different server.  The tabled called [__Updated] has one column called [DateUpdated] of type datetime2.  I manually created the table in the subscriber, added the new table/column to the list of articles and ran the replication. 

    It falls over with the error shown below, any ideas? 

    2015-02-24 16:23:34.32 [95%] Generating schema scripts for article 'AAA'
    2015-02-24 16:23:34.32 [95%] Generating schema scripts for article '__Updated'
    2015-02-24 16:23:34.33 [95%] The replication agent had encountered an exception.
    2015-02-24 16:23:34.33 Source: Unknown
    2015-02-24 16:23:34.33 Exception Type: Microsoft.SqlServer.Management.Smo.FailedOperationException
    2015-02-24 16:23:34.33 Exception Message: Script failed for Table 'dbo.__Updated'.
    2015-02-24 16:23:34.33 Message Code: Not Applicable
    2015-02-24 16:23:34.33

    Exact version is: 

    SELECT @@VERSION
    
    Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
    	Jun 28 2012 08:36:30
    	Copyright (c) Microsoft Corporation
    	Standard Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)


    0 0

    Hi All,

    We are having a oracle Publisher and distributor and subscriber is SQL SERVER.

    My Log reader service is getting failed showing below error

    Error messages:
    The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active.

    When i checked the MSrepl_errors table i found out the below errors

    Heterogeneous Logreader encountered an error in call to 'Initialize'.

    ORA-12541: TNS:no listener
    Heterogeneous Logreader encountered an error in call to LoadReplCmds when processing state 'POLLBEGIN'.
    ORA-03113: end-of-file on communication channel Process ID: 4852 Session ID: 539 Serial number: 14

    when i troubleshoot this i found out that My Oracle database was down for some time and when it was up the log reader service was not up automatically and so we are having around 1 Million transactions pending.

    I tried to reinitializing the subscriber but it stilled didn't work.I want to flush the pending transaction and take a new snapshot but when i am trying to do it using sp_repldone but its not wroking and showing below error

    EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1

    Msg 18757, Level 16, State 1, Procedure sp_repldone, Line 1
    Unable to execute procedure. The database is not published. Execute the procedure in a database that is published for replication.

    Is there any other way i can flush the load reader if the publisher the Oracle i think the sp_repldone command is not working for Oracle Publisher.Can anybody help me out my replication is stopped currently.

    Any help will be great for me.


    0 0

    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


    0 0

    I have a very strange problem.

    I have an existing publisher/subscription, which is working perfectly.  We added a new article using the SSMS 2012 GUI to the publication, ran snapshot agent, which shows it successfully generated the single article.  I see the snapshot files in the replication directory on the file system.

    However, it will not create the new table on the subscriber.   It does not show any errors in the logs and replication is continuing from other tables normally.  I see the commands for the init of the new article in sp_browsereplcmds.

    If I add a tracer token it goes in 4 seconds.

    Unfortunately, this is a large Production subscription, so I would rather not reinit the entire subscription if I can help it.

    Any ideas?

    Publisher:  Microsoft SQL Server 2012 (SP1) - 11.0.3412.0 (X64)

    Subscriber: Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)


    0 0

    Hi,

    Can any one tell me what is network requirements for SQL Server replication.

    I have successfully configured the replication on LAN with active directory but I am unable to configure it on WAN.

    Can anyone tell me how WAN can be configured for sql server replication. 

    Any help in this regard will be highly appreciated.

    Regards,

    Muhammad Imran


    0 0

    Hi

    I created a drop replication script which works when you run it manually on SQL Server.

    When my colleagues are doing a database deployment the dropping of replication fails.

    it gives error SQL72035 the full error is as follows

    C:\Windows\system32>"C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\Sql
    Package.exe" /a:script  /SourceFile:"D:\DBFiles\**********.dacpac" /Profile:"D:\DBFiles\*******\SysTest.Update.publish.xml" /op:"D:\SQLScripts\update_tracke
    r.sql"
    Generating publish script for database '********' on server 'TESTDTASQL01.FOXTEST
    .PROG'.
    *** The object [********] exists in the target, but it will not be dropped even t
    hough you selected the 'Generate drop statements for objects that are in the tar
    get database but that are not in the source' check box.
    *** The object [Tracker_log] exists in the target, but it will not be dropped ev
    en though you selected the 'Generate drop statements for objects that are in the
    target database but that are not in the source' check box.
    *** Verification of the deployment plan failed.
    Warning SQL72012: The object [*******] exists in the target, but it will not be
    dropped even though you selected the 'Generate drop statements for objects that
    are in the target database but that are not in the source' check box.
    Warning SQL72012: The object [******_log] exists in the target, but it will not
    be dropped even though you selected the 'Generate drop statements for objects t
    hat are in the target database but that are not in the source' check box.
    Error SQL72035: [dbo].[EventHandlerWorkflows] is replicated and cannot be modifi
    ed.
    Error SQL72035: [dbo].[Teams] is replicated and cannot be modified.

    From searching it is due to the DACPAC which can't handle replication - the error message above does seem to look at a DACPAC

    Can anyone explain if that seems to be correct?

    Regards


    0 0

    Is peer-to-peer replication and updatable subscriber both one and the same Or is there any difference between them. Can anyone please let me know?

    0 0
  • 02/26/15--03:28: merge agent getting hung
  • Hi All,

    We have merge replication set up. We recently re initialized one of the subscription and it is completed successfully. But we see that it is not replicating the data until we restart the merge agent every time. Agent is getting hung. We have enabled the logging at verbose history 2. But there also we don't see any errors. 

    Please advice on that.


    0 0

    The article describes how to create a new Subscription from scratch referring to the AG listener.  I am looking to alter an existing Subscriber / Distribution Agent to achieve the same.  I can't afford to re-create this Subscription as this is an existing Production environment.  

    Somehow I think I need to change the name of the Subscriber in the Distribution Database in order to make this work in addition to changing the what would be the connection string to the AG listener somewhere, possibly additional parameter in the distribution Job step.  has someone doen this and can you point me to the steps please?

    Thanks

    ...Ray

    https://msdn.microsoft.com/en-us/library/hh882436(v=sql.110).aspx

    -- commands to execute at the publisher, in the publisher database:
    use [<publisher database name>]
    EXEC sp_addsubscription @publication = N'<publication name>',
           @subscriber = N'<availability group listener name>',
           @destination_db = N'<subscriber database name>',
           @subscription_type = N'Push',
           @sync_type = N'automatic', @article = N'all', @update_mode = N'read only', @subscriber_type = 0;
    GO
    
    EXEC sp_addpushsubscription_agent @publication = N'<publication name>',
           @subscriber = N'<availability group listener name>',
           @subscriber_db = N'<subscriber database name>',
           @job_login = null, @job_password = null, @subscriber_security_mode = 1;
    GO


    ...Ray


    0 0
  • 02/26/15--13:01: Web sync error
  • It looks like I've run into a limit on batch size for the web sync using 2008 R2.  I'm getting the following error the log.

    2015-02-25 16:27:42.325 The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server.

    According to the following post I need to use pre-computed partitions in order for theWebSyncMaxXmlSize registry setting to have any effect. 

    http://blogs.technet.com/b/claudia_silva/archive/2011/05/12/replication-unable-to-synchronize-subscribers-via-web-synchronization.aspx

    I did not setup any partitions when creating the publication or enable the pre-computed partition setting.   If I change the pre-computed option to true and rerun a snapshot do I need to re-init all the subscriptions?  Are there any other settings I need to modify to get around the size limit?



older | 1 | .... | 118 | 119 | (Page 120) | 121 | 122 | .... | 181 | newer