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 | .... | 38 | 39 | (Page 40) | 41 | 42 | .... | 181 | newer

    0 0
  • 04/08/13--21:34: log shipping
  • which system tables stored log shipping job information  in secondary and primary servers.   sysjobs can give log shipping job name but i need to write query to get  database name and corresponding  log shipping job name

    thanks

    v


    0 0
  • 04/09/13--02:12: Snapshot Agent Error
  • In a transactional replication, when we are re-initializing the subscription the snapshot agent results in error.

    "Failed to initialize the Common Language Runtime (CLR) v2.0.50727 due to memory pressure. This is probably due to memory pressure in the MemToLeave region of memory. For more information, see the CLR integration documentation in SQL Server Books Online."

    SQL Version- SQL Server 2008

    It is a 32 bit machine and AWE /3G is not enabled. There are no CLR objects in the server.

    Please advice on this.

    Thanks


    0 0
  • 04/09/13--05:00: enabling log shipping
  • i am doing  testing of log shipping environment in the event of failure at primary,   created script to disable job on secondary, applied last backup log and able to bring db on line in secondary server.       need to enable log shipping on my primary when primary server come online.   even after  backup job in primary and restore job in secondary server disabled,     database property on primary still shows log shipping enabled.   will enabling job again will start log shipping or any other setting i need to do

    thanks

    v


    0 0

    Hi ,

           For me few records got inserted in subscriber , after sync it is not replicate to publisher. I have checked with Msmerge_contents,

    MSmerge_genhistory , there is no changes reflecting. but records  is inserted in subescriber. how do i push those records to publisher.

    and how to view newly inserted records.


    0 0

    I am trying to setup replication with SQL Server 3.5 SP2 compact and SQL 2012.  I installed IIS 7.5 (Windows 2008R2) and next step is to install SQL Server replication components.  Is it Possible to install SQL Server Replication components without the the database engine on SQL Server 2012?

    I found this article but it looks like I have to install SQL Server engine as well:

    http://msdn.microsoft.com/en-us/library/ms143677.aspx

    thanks,

    Sergei


    0 0

    After moving to new servers with SQL 2012 I'm tasked with configuring SQL CE 3.5 merge replication through a separate IIS7 server.

    How do I install SQL Server 2012 replication compontents on the IIS server?

    When selecting the feature "SQL Server Replication" the installer includes the full database engine, how do I install just the components needed to install SSCEServerTools?

    Thanks,

    Fredrik


    0 0

    I am trying WebSync with RMO and it works well with no filtering, and few joins

    But when adding several joins on all tables I am getting this issue :

    The connection with the server was terminated abnormally

    I tested the few joins on a subset of the tables I need to replicate, can this error be related to the number of tables ? I don't see how it makes sense, is large data a problem ?




    0 0

    I am looking for guidance in setting up replication (Merge) between SQL server 2008 r2 (based at HQ) and severeal SQL CE databases on Windows mobile 6.5 handhelds

    Is this even possible?if  so where is the best place to start.

    I am interested to know if we wil need to set up each device as a subscriber to the SQL server 2008 r2 publisher?

    Jawahar

     

    Jawahar


    0 0

    I have a database that lives on a SQL 2005 instance but runs in SQL 2000 compatibility mode.  It has a table with a XML data type which is causing the snapshot agent to fail trying to script the schema file. 

    Is there a workaround for this? 



    Convert DTS to SSIS | Document SSIS | 30+ SSIS Tasks | Real-time SSIS Monitoring | Quick Starts | BI Blitz


    0 0

    Hi,


    I have several subscriber to my publisher. Till yesterday everything was running fine. When I had a look at the Enterprise manager for the subscribers. One of the subscriber is never connecting. The last action is "Connecting to Publisher xxxx" and the status "Running" after some time it shows status "failed" and last action " Agent is suspect. No response within last 10 minutes".

    Can anyone has any idea whats wrong going on?

    Thanks in advance,

    Pavan


    Pavan


    0 0

    Hi All,

    Transactional Replication was removed some months back from one of my SQL servers (SQL server 2005).

    Still I got below error during insert in one of our columns: “Length of LOB data (xxxxxx) to be replicated exceeds configured maximum 65536.".

    I have checked below and find no entries for replication: --no info in distribution DB --sp_replmonitorhelpsubscription @publisher = NULL, @publication_type = 0

    Questions: 
    1. Is there any other place where I check any remains of replication? 
    2. Why do I get error about "max text repl size" parameter as I understand this will be used only if Trans repl only (as this is SQL 2005, so CDC cannot be configured) is enabled (http://msdn.microsoft.com/en-sg/library/ms179573(v=sql.90).aspx) ?

    any help is highly appreciated!!... thanks


    0 0

    Hello,

    When I insert a huge amount of data, I frequently get the error of the identity range have been exceeded, when this happens I run the sp_adjustpublisheridentityrange stored procedure and goes on. But I would like to know when the the range is nearly depleted and execute the procedure, avoiding the error.

    Can this be done or should I consider another approach?


    0 0

    Hi,

    I need to replicate a Database running on SQL Server 2005 to SQL Server 2012.

    The sql 2005 is the publisher and the Server 2012 is the subscriber, is this possible? any workaround or other solution?

    When i try to do this from the publisher it gives me the following error:

    The SQL server Version ( 110 ) is not supported

    Thanks for the attention,

    sincerely,

    AM


    0 0

    I have two SQL Server instances, both are SQL Server 2008 (not R2).

    Instance one has a database called Production that currently has Transactional Replication setup on it. The distributor and publisher exist in this instance.

    Instance two has a copy of the database called Production from instance one. Replication was not setup when this database copy was attached to  instance two.

    Problems start to occur however if I setup Transactional Replication to work with that database on instance two. Essentially the tables to be replicated are the same as those in Instance 1. But when I setup up the distributor and publisher on it some, but not all, of the replication jobs start to fail on Instance 1.

    Is this a bug in SQL Server 2008 or am I missing something here? I would think that setting up distributors and publishers on different DB instances would not interfere with the operation of replication jobs for publishers on each other's respective instance. But that does not appear to be the case.

    Can anyone help?


    0 0

    Version: MScubed 2K8 R2

    Hi.  I'm a total newb and whilst configuring Transaction Log Shipping could not invoke that with the final [ OK ] due to an obscured network issue (the live server could see the DR server but not the other way around - netstat -a showed ephemeral ports exhaisted, resolved with a reboot).

    So I used the Script Configuration option and later ran the script to reproduce the problem.

    The script has two halves (see below), the top one to be run on the live server and the bottom one, not indicated in the header, to be run on the DR server.

    I therefore have erroneous jobs on the live server.

    A more experienced colleague says it's not as simple as deleting them.

    The Job Activity Monitor shows two jobs that shoudn't be there:

    LSCopy_INVSQLLIVE_BPM . enabled . Executing . Succeeded

    LSRestore_INVSQLLIVE_BPM . enabled . Idle . Failed

    as the result of running this script:

    -- Execute the following statements at the Primary to configure Log Shipping

    -- for the database [INVSQLLIVE].[BPM],

    -- The script needs to be run at the Primary in the context of the [msdb] database. 

    -------------------------------------------------------------------------------------

    -- Adding the Log Shipping configuration

    -- ****** Begin: Script to be run at Primary: [INVSQLLIVE] ******

    usemaster

    go

    execsys.sp_change_log_shipping_primary_database@database ='BPM', @backup_compression= 1

    go

    DECLARE @LS_BackupJobIdASuniqueidentifier

    DECLARE @LS_PrimaryId  ASuniqueidentifier

    DECLARE @SP_Add_RetCodeAsint

    EXEC @SP_Add_RetCode=master.dbo.sp_add_log_shipping_primary_database

               @database =N'BPM'

               ,@backup_directory =N'E:\SQL_LOGS\BPM'

               ,@backup_share =N'\\INVSQLLIVE\SQL_LOGS\BPM'

               ,@backup_job_name =N'LSBackup_BPM'

               ,@backup_retention_period = 4320

               ,@monitor_server =N'invsqluat'

               ,@monitor_server_security_mode = 1

               ,@backup_threshold = 1200

               ,@threshold_alert_enabled = 1

               ,@history_retention_period = 5760

               ,@backup_job_id = @LS_BackupJobIdOUTPUT

               ,@primary_id = @LS_PrimaryIdOUTPUT

               ,@overwrite = 1

    IF(@@ERROR= 0 AND @SP_Add_RetCode= 0)

    BEGIN

    DECLARE @LS_BackUpScheduleUIDAsuniqueidentifier

    DECLARE @LS_BackUpScheduleID ASint

    EXEC msdb.dbo.sp_add_schedule

               @schedule_name=N'LSBackupSchedule_INVSQLLIVE1'

               ,@enabled = 1

               ,@freq_type = 4

               ,@freq_interval = 1

               ,@freq_subday_type = 4

               ,@freq_subday_interval = 2

               ,@freq_recurrence_factor = 0

               ,@active_start_date = 20130405

               ,@active_end_date = 99991231

               ,@active_start_time = 0

               ,@active_end_time = 235900

               ,@schedule_uid = @LS_BackUpScheduleUIDOUTPUT

               ,@schedule_id = @LS_BackUpScheduleIDOUTPUT

    EXEC msdb.dbo.sp_attach_schedule

               @job_id = @LS_BackupJobId

               ,@schedule_id = @LS_BackUpScheduleID 

    EXEC msdb.dbo.sp_update_job

               @job_id = @LS_BackupJobId

               ,@enabled = 1

    END

    EXECmaster.dbo.sp_add_log_shipping_primary_secondary

               @primary_database=N'BPM'

               ,@secondary_server =N'invsqluat'

               ,@secondary_database =N'BPM'

               ,@overwrite = 1

    -- ****** End: Script to be run at Primary: [INVSQLLIVE] ******

    -- Execute the following statements at the Secondary to configure Log Shipping

    -- for the database [invsqluat].[BPM],

    -- the script needs to be run at the Secondary in the context of the [msdb] database.

    -------------------------------------------------------------------------------------

    -- Adding the Log Shipping configuration

    -- ****** Begin: Script to be run at Secondary: [invsqluat] ******

    DECLARE @LS_Secondary__CopyJobId   ASuniqueidentifier

    DECLARE @LS_Secondary__RestoreJobIdASuniqueidentifier

    DECLARE @LS_Secondary__SecondaryId ASuniqueidentifier

    DECLARE @LS_Add_RetCodeAsint

    EXEC @LS_Add_RetCode=master.dbo.sp_add_log_shipping_secondary_primary

               @primary_server=N'INVSQLLIVE'

               ,@primary_database =N'BPM'

               ,@backup_source_directory =N'\\INVSQLLIVE\SQL_LOGS\BPM'

               ,@backup_destination_directory =N'E:\SQL_LOGS\BPM'

               ,@copy_job_name =N'LSCopy_INVSQLLIVE_BPM'

               ,@restore_job_name =N'LSRestore_INVSQLLIVE_BPM'

               ,@file_retention_period = 4320

               ,@monitor_server =N'invsqluat'

               ,@monitor_server_security_mode = 1

               ,@overwrite = 1

               ,@copy_job_id = @LS_Secondary__CopyJobIdOUTPUT

               ,@restore_job_id = @LS_Secondary__RestoreJobId OUTPUT

               ,@secondary_id = @LS_Secondary__SecondaryIdOUTPUT

    IF(@@ERROR= 0 AND @LS_Add_RetCode= 0)

    BEGIN

    DECLARE @LS_SecondaryCopyJobScheduleUID  Asuniqueidentifier

    DECLARE @LS_SecondaryCopyJobScheduleID   ASint

    EXEC msdb.dbo.sp_add_schedule

               @schedule_name=N'DefaultCopyJobSchedule'

               ,@enabled = 1

               ,@freq_type = 4

               ,@freq_interval = 1

               ,@freq_subday_type = 4

               ,@freq_subday_interval = 2

               ,@freq_recurrence_factor = 0

               ,@active_start_date = 20130405

               ,@active_end_date = 99991231

               ,@active_start_time = 0

               ,@active_end_time = 235900

               ,@schedule_uid = @LS_SecondaryCopyJobScheduleUIDOUTPUT

               ,@schedule_id = @LS_SecondaryCopyJobScheduleIDOUTPUT

    EXEC msdb.dbo.sp_attach_schedule

               @job_id = @LS_Secondary__CopyJobId

               ,@schedule_id = @LS_SecondaryCopyJobScheduleID 

    DECLARE @LS_SecondaryRestoreJobScheduleUID     Asuniqueidentifier

    DECLARE @LS_SecondaryRestoreJobScheduleIDASint

    EXEC msdb.dbo.sp_add_schedule

               @schedule_name=N'DefaultRestoreJobSchedule'

               ,@enabled = 1

               ,@freq_type = 4

               ,@freq_interval = 1

               ,@freq_subday_type = 4

               ,@freq_subday_interval = 2

               ,@freq_recurrence_factor = 0

               ,@active_start_date = 20130405

               ,@active_end_date = 99991231

               ,@active_start_time = 0

               ,@active_end_time = 235900

               ,@schedule_uid = @LS_SecondaryRestoreJobScheduleUIDOUTPUT

               ,@schedule_id = @LS_SecondaryRestoreJobScheduleIDOUTPUT

    EXEC msdb.dbo.sp_attach_schedule

               @job_id = @LS_Secondary__RestoreJobId

               ,@schedule_id = @LS_SecondaryRestoreJobScheduleID 

    END

    DECLARE @LS_Add_RetCode2     Asint

    IF(@@ERROR= 0 AND @LS_Add_RetCode= 0)

    BEGIN

    EXEC @LS_Add_RetCode2=master.dbo.sp_add_log_shipping_secondary_database

               @secondary_database=N'BPM'

               ,@primary_server =N'INVSQLLIVE'

               ,@primary_database =N'BPM'

               ,@restore_delay = 0

               ,@restore_mode = 0

               ,@disconnect_users     = 0

               ,@restore_threshold = 20  

               ,@threshold_alert_enabled = 1

               ,@history_retention_period   = 5760

               ,@overwrite = 1

    END

    IF(@@error= 0 AND @LS_Add_RetCode= 0)

    BEGIN

    EXEC msdb.dbo.sp_update_job

               @job_id = @LS_Secondary__CopyJobId

               ,@enabled = 1

    EXEC msdb.dbo.sp_update_job

               @job_id = @LS_Secondary__RestoreJobId

               ,@enabled = 1

    END

    -- ****** End: Script to be run at Secondary: [invsqluat] ******

    A solution to this will get a bottle of single malt whiskey delivered anywhere in the world.

    Martin


    Martin Peter Clarke


    0 0

    The server is windows 2012 + SQL 2012 sp1 (11.0.3000 web edition) using AWS EC2 instance. 

    The sqlLogShip versin is 11.0.2100.60.

    We have just setup two sql server doing log shipping every 5 mins.

    I got following error every few minutes.

    An unhandled exception ('System.IO.FileLoadException') occurred in SqlLogShip.exe [6400]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.
    
    Check the documentation index for 'Just-in-time debugging, errors' for more information.

    Not sure how to fix this, I can't find any answer from google/Bing.

    Thanks for any help!


    mulder




    0 0

    How do i get the list of all Tables, Views, Stored procedures that are NOT added  in a publication for replication?Can you help me to make the stored Proc for that?I am new to Replication....Thanks

    0 0

    What is impact on transactional replication if we disable the Xp_CmdShell?

    0 0
  • 04/11/13--14:35: Error on the primary server
  • Configured log shipping using the following procedure http://www.mssqltips.com/sqlservertip/2301/step-by-step-sql-server-log-shipping/.

    I have enabled logshipping for 2 databases. The wizard created LSAlert job. Error: Executed as user: NT AUTHORITY\NETWORK SERVICE. The log shipping primary database macinename.AbraHRMS_Live has backup threshold of 60 minutes and has not performed a backup log operation for 78 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14420). The step failed.
    However the LSBackup job for the database has no error. This is for only primary server database where I see error.
    The secondary server has no error in the view history and Transaction Log Shipping status.
    Why do I get error in the primary server?

    For both databases, I have enabled log shipping and I backup at the same time @12 AM, copy after 15 mints @12:15 AM and restore after 15 mints @ 12:30 AM. Is this right?


    0 0
  • 04/11/13--21:59: Queue reader aborting
  • Hi all,
    This is my detailed error.
    The Queue Reader Agent has encountered the error 
    "Row handle is invalid". when connecting to "DB1" on "DB2". Ensure that the publication and subscription are defined properly and that both servers are running.


    From last week I suffer from this error. It happen 2 or 3 times per day.
    I want to know whats the reason and how to resolve this problem.
    pls help me this is a critical issue.

    Thanks.

older | 1 | .... | 38 | 39 | (Page 40) | 41 | 42 | .... | 181 | newer