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 | .... | 85 | 86 | (Page 87) | 88 | 89 | .... | 181 | newer

    0 0
  • 04/01/14--04:13: Replication data issues.
  • how to find out that the data is not delivering to subscribers for below mentioned concepts.  

    1.      Data Is Not Being Delivered to Subscribers(how to find out)
    2.      Data at the Publisher and Subscriber Do Not Match(how to find out)
    3.      The System Has a Performance Issue(how to find out)
    4.      Security Issues Are Preventing Data from Being Replicated(how to find out)
    5.      A Merge Subscription Has Expired and Changes Must Be Uploaded(how to find out).

    thanks in advance.


    0 0
  • 04/01/14--04:14: Replication deletion
  • imagine we have a scenario of replication & logshipping configured and unfortunately both got deleted and we do not have scripts and jobs which will be in MSDB are also got deleted.

    how to get it resolved without reconfiguring both.

    this question was put to me in an interview recently.

     


    0 0
  • 04/01/14--20:18: SQL replication issue
  • Hi All,

    I am using oracle publisher and sql server distributer and subscriber and it was running fine until yesterday.it is giving the below error while replicating data from Distributer to subscriber.

    Error messages:
    The process could not bulk copy into table '"dbo"."MPI_BREAK_TYPE"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
    Get help: http://help/MSSQL_REPL20037
    Invalid object name 'dbo.MPI_BREAK_TYPE'. (Source: MSSQLServer, Error number: 208)
    Get help: http://help/208
    To obtain an error file with details on the errors encountered when initializing the subscribing table, execute the bcp command that appears below.  Consult the BOL for more information on the bcp utility and its supported options. (Source: MSSQLServer, Error number: 20253)
    Get help: http://help/20253
    bcp "FlexNet"."dbo"."MPI_BREAK_TYPE" in "G:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\ReplData\unc\MESD01_DISTRIBUTION_MPI_DEV\20140401230725\BREAK_TYPE_2.bcp" -e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SCIDCSWDMESMPD01 -T -w (Source: MSSQLServer, Error number: 20253)
    Get help: http://help/20253

    The table is earlier present but while replicating the table is getting invalid so i am not able to replicate the table to the subscriber.Kindly help me out as my production is down because of it.

    Awaiting for your response.


    0 0
  • 04/02/14--09:16: Refresh replication objects
  • Hi

    I have transnational replication running successfully from one server to another.  However, we have created a few more objects on the source server subsequent to the setup of the initial replication.  What is the most effective method of including these new objects from the source server to the subscription?

    Also, we would like to remove certain objects too.  What would be the best method around this also?

    Thanks.


    0 0

    Hi,

    We have a SQL Server Merge Replication topology. Both Publisher a Subscribers are using SQL Server 2012.

    As I have seen in http://msdn.microsoft.com/en-us/library/ms174360(v=sql.120).aspx

    "Using sp_addscriptexec to post a script file for publications using FTP for snapshot delivery is only supported for Microsoft SQL Server Subscribers."

    So we should be OK...

    The problem is that the Merge Agent is looking for the Script in the local PC instead of download it form theFTP Server.

    Here is the Code at the publisher:

    exec sp_addscriptexec 'IPoint_Pub','C:\IPoint_Files\ReplicationScripts\User\reIndex.sql'

    This is how the subscription was created:

    use IPoint
    exec sp_addmergepullsubscription @publisher = @Central_Server_Name, @publication = N'IPoint_Pub', @publisher_db = @MGR_DB, @subscriber_type = N'Local', @subscription_priority = 0, @description = N'', @sync_type = N'Automatic'
    
    exec sp_addmergepullsubscription_agent 
     @publisher = @Central_Server_Name,
     @publisher_db = @MGR_DB,
     @publication = N'IPoint_Pub', 
     @distributor = @Central_Server_Name, 
     @distributor_security_mode = 0, @distributor_login = 'XXX', @distributor_password = 'XXX', 
     @enabled_for_syncmgr = N'True', 
     @frequency_type = 4, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 1, @frequency_subday = 4, @frequency_subday_interval = 3, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 20100527, @active_end_date = 99991231,
     @alt_snapshot_folder = N'', @working_directory = N'', 
     @use_ftp = N'True',
     @job_login = null, @job_password = null, 
     @publisher_security_mode = 0, @publisher_login = 'XXX',  @publisher_password = 'XXX',
     @use_interactive_resolver = N'False', @dynamic_snapshot_location = null, @use_web_sync = 0,
     @hostname =@SUCURSAL_ID
    GO

    And the log of the REPLMERG.EX

    2014-03-29 13:01:49.009 Microsoft SQL Server Merge Agent 11.0.2100.60
    2014-03-29 13:01:49.009 Copyright (c) 2008 Microsoft Corporation
    2014-03-29 13:01:49.009 
    2014-03-29 13:01:49.009 The timestamps prepended to the output lines are expressed in terms of UTC time.
    2014-03-29 13:01:49.009 User-specified agent parameter values:
    			-Publication Netul_Pub
    			-Publisher SRV01
    			-Subscriber NETUL-01\SQLEXPRESS
    			-Distributor SRV01
    			-PublisherDB IPoint_Netul
    			-SubscriberDB IPoint
    			-SubscriptionType 1
    			-ParallelUploadDownload 1
    			-DistributorLogin sucursal
    			-DistributorPassword **********
    			-DistributorSecurityMode 0
    			-PublisherLogin sucursal
    			-PublisherPassword **********
    			-PublisherSecurityMode 0
    			-SubscriberSecurityMode 1
    			-OutputVerboseLevel 1
    			-Validate 0
    2014-03-29 13:01:49.019 Connecting to Subscriber 'NETUL-01\SQLEXPRESS'
    2014-03-29 13:01:50.654 Connecting to Distributor 'SRV01'
    2014-03-29 13:01:51.599 Initializing
    2014-03-29 13:01:51.604 Validating publisher
    2014-03-29 13:01:51.614 Connecting to Publisher 'SRV01'
    2014-03-29 13:01:51.769 Retrieving publication information
    2014-03-29 13:01:51.774 Retrieving subscription information.
    2014-03-29 13:01:52.294 Connecting to Subscriber 'NETUL-01\SQLEXPRESS'
    2014-03-29 13:01:52.304 Connecting to Distributor 'SRV01'
    2014-03-29 13:01:52.414 Initializing
    2014-03-29 13:01:52.429 Validating publisher
    2014-03-29 13:01:52.439 Connecting to Publisher 'SRV01'
    2014-03-29 13:01:52.604 Retrieving publication information
    2014-03-29 13:01:52.619 Retrieving subscription information.
    2014-03-29 13:01:53.274 [29%] [0 sec remaining] Snapshot files will be downloaded via ftp
    2014-03-29 13:01:53.284 [29%] [0 sec remaining] Snapshot will be applied from a compressed cabinet file
    2014-03-29 13:01:53.294 [29%] [0 sec remaining] Connecting to ftp site 'SRV01.real2b.com'
    2014-03-29 13:01:55.019 [33%] [2 sec remaining] Extracting snapshot file 'Documento_Formc3f5d2f9_190.sch' from cabinet file
    2014-03-29 13:01:55.064 [33%] [2 sec remaining] Extracted file 'Documento_Formc3f5d2f9_190.sch'
    2014-03-29 13:01:57.299 [33%] [2 sec remaining] Applied script 'Documento_Formc3f5d2f9_190.sch'
    2014-03-29 13:01:57.304 [33%] [2 sec remaining] Preparing table 'Documento_Formulario_Otros' for merge replication
    2014-03-29 13:02:02.574 [51%] [8 sec remaining] Extracting snapshot file 'sysmergesubsetfilters_Documento_Formulario_Otros90.bcp' from cabinet file
    2014-03-29 13:02:02.594 [51%] [8 sec remaining] Extracted file 'sysmergesubsetfilters_Documento_Formulario_Otros90.bcp'
    2014-03-29 13:02:02.604 [55%] [7 sec remaining] Bulk copying data into table 'sysmergesubsetfilters'
    2014-03-29 13:02:02.609 [55%] [7 sec remaining] Bulk copied data into table 'sysmergesubsetfilters' (0 rows)
    2014-03-29 13:02:02.619 [55%] [7 sec remaining] Extracting snapshot file 'Documento_Formc3f5d2f9_190.dri' from cabinet file
    2014-03-29 13:02:02.624 [55%] [7 sec remaining] Extracted file 'Documento_Formc3f5d2f9_190.dri'
    2014-03-29 13:02:02.864 [55%] [7 sec remaining] Applied script 'Documento_Formc3f5d2f9_190.dri'
    2014-03-29 13:02:02.874 [59%] [6 sec remaining] Extracting snapshot file 'Documento_Formc3f5d2f9_190.trg' from cabinet file
    2014-03-29 13:02:02.884 [59%] [6 sec remaining] Extracted file 'Documento_Formc3f5d2f9_190.trg'
    2014-03-29 13:02:02.889 [62%] [5 sec remaining] Applied script 'Documento_Formc3f5d2f9_190.trg'
    2014-03-29 13:02:02.899 [62%] [5 sec remaining] Extracting snapshot file 'Documento_Formc3f5d2f9_190.prc' from cabinet file
    2014-03-29 13:02:02.919 [62%] [5 sec remaining] Extracted file 'Documento_Formc3f5d2f9_190.prc'
    2014-03-29 13:02:03.819 [62%] [5 sec remaining] Applied script 'Documento_Formc3f5d2f9_190.prc'
    2014-03-29 13:02:09.334 [74%] [5 sec remaining] Launching sqlcmd to apply the script 'Create_Categorias_Tables.sql'
    2014-03-29 13:02:09.974 [74%] [5 sec remaining] Applied script 'Create_Categorias_Tables.sql'
    2014-03-29 13:02:09.979 [77%] [4 sec remaining] Launching sqlcmd to apply the script 'Create_Categorias_Tables.sql'
    2014-03-29 13:02:10.144 [77%] [4 sec remaining] Applied script 'Create_Categorias_Tables.sql'
    2014-03-29 13:02:10.174 [81%] [3 sec remaining] Launching sqlcmd to apply the script 'reIndex.sql'
    2014-03-29 13:02:10.189 [81%] [3 sec remaining] Last 115 characters in 'sqlcmd' output buffer: Sqlcmd: 'C:\inetpub\ftproot\ReplData\ftp\SRV01_IPOINT_NETUL_NETUL_PUB\UserScripts\reIndex.sql': Invalid filename.
    
    2014-03-29 13:02:10.194 [81%] [3 sec remaining] Failed to apply the script 'reIndex.sql' using the 'sqlcmd' utility.
    2014-03-29 13:02:10.204 The schema script 'reIndex.sql' could not be propagated to the subscriber.
    2014-03-29 13:02:10.254 Category:NULL
    Source:  Merge Replication Provider
    Number:  -2147201001
    Message: The schema script 'reIndex.sql' could not be propagated to the subscriber.
    2014-03-29 13:02:10.259 [100%] The process was successfully stopped.
    2014-03-29 13:02:10.299 Category:NULL
    Source:  Merge Replication Provider
    Number:  -2147200963
    Message: The process was successfully stopped.

    As you can see, the FTP snapshot is working fine 

    "Extracted Documento_Formc3f5d2f9_190.trg"

    But the it is looking for a file that only exists in the server.

    'C:\inetpub\ftproot\ReplData\ftp\SRV01_IPOINT_NETUL_NETUL_PUB\UserScripts\reIndex.sql'

    Do you have any idea?



    Best Regards, Daniel.




    0 0

    Hi All,

    I am looking at using the output of sp_replmonitorhelpsubscription as a basis for a monitoring script. I was hoping that the [status] column was accurate but now i'm not so sure.

    BOL defines it as "Examines the status of all the replication agents associated with the publication, and returns the highest status found in the following order :

    6 = Failed

    5 = Retrying

    2 = Stopped

    4 = Idle

    3 = In progress

    1 = Started"

    When I run it against one of my publications that, under Replication Monitor --> Agents -- shows Queue reader agent as Failed, but 'Log Reader Agent' as Running...it returns a status of 3 (IN PROGRESS).

    I would have thought that based on the Queue Reader Agent status which is FAILED, the status should return a value of 6 not 3.

    The problem now is that since this transactional replication is constantly trying and failing (due to a PK constraint which we are fixing), the only time this SP outputs a value of 6 is in between retries.

    In my mind, it should return a value of 6 even though it is retrying.

    Am I missing something here?

    Thanks in advance.


    0 0

     I by mistake had restored the sql server to an earlier backup so i lost all the current changes.Can i rollback the changes.In oracle we have an flashback technique is there anything in SQL server.i don't have any backup of that.

    Kindly help me out 


    0 0
  • 04/03/14--05:57: Windows 8.1: USB boot error
  • Hi there,

    I'm using Windows 8.1 Pro 64bit. I'm used Windows 7 USB Tool to boot ISO file,butapparently it does not work.

    Please help me fix this error unpleasant, orthere aredifferent ways toUSBBoot.

    Thank you so much.

    Regards,


    0 0

    Hi All,

    We have enabled change tracking on the subscriber tables and its getting dropped during a reinitialization.we are running an ETL on the subscriber tables basing on change Tracking.Our Initial ETL runs once and incremental ETL runs after that but after reinitialization i am getting fresh data and my initial ETL has already run.So how can i resolve this issue.Can't renireinitialization be done without disabling the Change Tracking.

    Kindly provide your feedback.

    Thanks


    0 0

    The row was not found at the Subscriber error keeps popup and stopped synchronization even after inserting missing record at subscriber - transcational replication.

    first error throws: Grab exact sequence number, find row and inserted at subscriber...

    Start synchronizing, ran fine for a while, stopped again with error with different exact sequence number, repeat again same as step 1.......

    how can we stop this and make it run without this error?

    Please advise!!!


    0 0


    Here are the error messages, any help will be greatly appreciated.  Would like to know if there's a way to see the records that is causing the error and if not, can we skip it?  

    ORA-01455: converting column overflows integer datatype (Source: MSSQL_REPL_ORACLE, Error number: 1455)
    Get help: http://help/1455

    Heterogeneous Logreader encountered an error in call to LoadReplCmds when processing state 'FETCH'. (Source: MSSQL_REPL, Error number: MSSQL_REPL22037)
    Get help: http://help/MSSQL_REPL22037


    tae yang


    0 0

    how to find out that Data Is Not Being Delivered to Subscribers in replicationand how to resolve it once we find out that data is not delivered to the subscriber?

    thanks,


    0 0

    I'm very confused about the status (or future status) of the use of transactional replication. In several places on the MSDN pages I've seennotices that transaction replication is being depreciated and should not be used, but there is no recommendation about what I should replace it with. Yet in other places this type of replication is recommended as the best solution for a given scenario.

    For example the following is suggested for a scenario similar to our situation: ms-help://MS.SQLCC.v10.SQLSVR.v10.en/s10rp_0evalplan/html/4b177aa2-2f76-43d2-8978-6bbd01b10337.htm (<mshelp:link filterstring="(("ProductVers"="kbsqlserv105") OR ("DocSet"="NETFramework"))" keywords="6d676493-6ff9-4d5d-b752-af8b2f73cc6b">Overview
    (Replication)</mshelp:link> > <mshelp:link filterstring="(("ProductVers"="kbsqlserv105") OR ("DocSet"="NETFramework"))" keywords="b6eaef99-471b-4782-ad3e-5db7177f1db1">Replicating Data in a Server to
    Server Environment</mshelp:link> > <mshelp:link filterstring="(("ProductVers"="kbsqlserv105") OR ("DocSet"="NETFramework"))" keywords="d58f6644-398c-4acb-b781-41538eb33bd8">Improving Scalability and
    Availability</mshelp:link> >)

    Currently we are using SQL 2008 R2 STANDARD edition in our data centers but plan to migrate to SQL 2014 late this year (assuming Microsoft releases it sometime soon).

    Our objective is to have 3 datacenters (Europe, N. America, Asia), each under normal operations serving there geographic region, but any one of them able to take over either as part of a load balance or fail-over (HA). We have a large number of web applications containing various mixtures of EF, LINC, and embedded SQL, with frequent use of multiple databases within a given SQL instance.

    Given the above what would be the "best practice" recommendation implementation for our data network configuration?


    Developer Frog Haven Enterprises


    0 0

    Hello,

    Im just testing replication and im wondering WHY there are so much users (at the subscriber) created with the name

     

    REPLCERTLOGIN_REPLCERT_TESTDB<unique id (i think)>

    Please helo me out, best would be if it is save to delete all this users.

    Sorry but i couldnt find an answer at the most search machines

    Thanks alot

    MBChris

     

     


    0 0

    Let's say I have the following scenario:

    One table Item , referenced (twice) by another table Item_Link , on item_id and linked _item_id

    I want to make sure that rows in table item_link only get to the subscriber when both parents exist in table Item.

    Creating one join filter is easy, now creating two is different matter all together.

    Is there another way of replicating this apart from adding the content of the second join filter in the subset filter of the table with an exist type clause ? I read the warnings about how this must not be done but are there any other solutions ?

    Here is the code for my tables and publication:

    CREATE TABLE item (
        item_id INT PRIMARY KEY ,
        item_desc VARCHAR(10),
        hn SYSNAME DEFAULT (HOST_NAME()), -- used for filtering by subscriber
        rowguid UNIQUEIDENTIFIER ROWGUIDCOL
    )  
    CREATE TABLE item_link (
        link_id INT IDENTITY primary KEY,
        item_id INT NOT NULL REFERENCES item (item_id) NOT FOR REPLICATION ,
        linked_item_id INT NOT NULL REFERENCES item(item_id) NOT FOR REPLICATION,
        rowguid UNIQUEIDENTIFIER ROWGUIDCOL
    )  



    0 0
  • 04/07/14--04:20: Performance Tuning
  • Hello All,


     I am trying to understand slow sql server \tuning sql server. Our production server is SQL Server 2012(standard edition).

    We have configured MDW in the server. MDW reports shows the query which takes largest CPU as


    CREATE PROCEDURE sys.sp_MSget_repl_commands ,create procedure sys.sp_replmonitorhelppublisher  ,create procedure sys.sp_MSenumchangesdirect on resourcedb to be executing more number of times rather than any other user stored procedure.

    We have 5 transactional replication and 5 merge replication configured on this server.Transactional replication is configured to run continuously.

    Is this a normal behaviour? Or do I need to change any settings in replication configuration?

    Thanks


    0 0

    Hello,

    Is it possible to move the data and log files of a subscriber database to 2 different drives when in transactional replication. This is for sql server 2008 R2 sp2. However I will have all my applications down. 

    Thanks for your inputs.



    0 0

    The publisher is running SQL Server 2008 R2 on a Server 2008 R2 box. The subscriber is running SQL Server 2012 on a Server 2012 box. I have tried launching the replication monitor from both servers but can't drill down into details on either instance. I have three publications and subscriptions and they all throw this error when trying to drill down into the details. I would post a picture but am unable to do so. 

    Here are the error details

    ===================================

    Replication Monitor could not open the Detail Window. (Replication Monitor)

    ===================================

    Specified cast is not valid. (ReplicationMonitor)

    ------------------------------
    Program Location:

       at Microsoft.SqlServer.Management.UI.PublicationDetailControl.ShowSubscriptionDetailWindow(Int64 rowIdx)


    0 0

    Hi

    I have just regenerated a snapshot on my source server and reinitialised the subscription on the destination.  Before this, I had permissions set up on a couple of SPs on the destination server.  It turns out that after reinitialisation, the permissions have been wiped out.

    Is there any way I can avoid permissions being affected in the future?

    Thanks in advance.


    0 0

    I have just script only for subscriptions, but need also for publications and articles.

    use yourdatabse---------Run on publishing database
    godeclare @pubname varchar(256), @colname varchar(256), @source_subname varchar(256), @target_subname varchar(256), @dest_db varchar(256)select @source_subname = 'name1'select @target_subname = 'name2'select @dest_db = 'yourdatabse'-- options for @sync_type : 'replication support only', ‘automatic’setnocountonselect'exec sp_addsubscription @publication = N'''+sp.name+''', @article = N''all'', @subscriber = N'''+@target_subname+''', @destination_db = N'''+@dest_db+''', @sync_type = N''none'', @update_mode = N''read only'', @offloadagent = 0, @dts_package_location = N''distributor'''fromsyspublications spjoinsysarticlessa(nolock)on sp.pubid = sa.pubidjoinsyssubscriptionsss(nolock)on ss.artid = sa.artidwhere ss.srvname = @source_subname and dest_db=@dest_dborderby 1


older | 1 | .... | 85 | 86 | (Page 87) | 88 | 89 | .... | 181 | newer