Quantcast
Channel: SQL Server Replication forum
Viewing all 4054 articles
Browse latest View live

Not able to access/create server replication !!

$
0
0

 

Hi,

 

I have sql server entrprise edition installed with replcation in my server (88.66.4..3 some thing) .

 

in my machine i have sql server (Entrprise)trail version with replication components installed . also iam able to create publisher in my local sql box.

 

when iam trying to access the server machine (88.66.4..3) while trying to create new publisher , iam getting this error

 

TITLE: New Publication Wizard
------------------------------

SQL Server is unable to connect to server '44.12.5.232'.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server+Management+Studio&ProdVer=9.00.3054.00&EvtSrc=Microsoft.SqlServer.Management.UI.PubWizardErrorSR&EvtID=CantConnect&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'DRDff'. (Replication.Utilities)

------------------------------
BUTTONS:

OK
------------------------------

 

 

******************************************************************************************************

 

In case of new subscription .. This is the error!!

TITLE: New Subscription Wizard
------------------------------

Microsoft SQL Server Management Studio is unable to access replication components because replication is not installed on this instance of SQL Server. For information about installing replication, see the topic Installing Replication in SQL Server Books Online.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server+Management+Studio&ProdVer=9.00.3054.00&EvtSrc=Microsoft.SqlServer.Management.UI.ReplUtilitiesErrorSR&EvtID=ReplicationNotInstalled&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, SDDD. (Replication.Utilities)

------------------------------
BUTTONS:

OK
------------------------------

 

**********************************************************************************************************

 

please let me known abt the problem..

 

Note in both the system  replication components are installed.

 

If not able to get my question pls let me known i will elabroate ..

Thanks,

Nav


how to configure replication in sql server 2008?

$
0
0

hi guys,

I have two server with valid Ip address.both have sql server 2008 installed.they are all named instance that is for coneecting to sql server 2008 in the server name i should write:local\sql2008.So the instance name is sql2008.

i have created a user in both sql servers and have given sysadmin role to that user.Both servers can see each other,no problem in connecting to each other.

suppose server A want to send its sql server database data to server B sql server.so i have to use replication in  sql server for this kind of work.in server A i have create a "publisher" and it was OK and created with no problem.

When i tried to create subscriber in server B,It gives me the ugly error:

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'M1\SQL2008'. (Replication.Utilities)

Now i really went on searching in google,but the answers were not accurate and usefull.If somebody knows what to do please try to answer step by step.I know many people have this problem and not yet answered correctly.

Oh i forgot to say the sql server are standard edittion.and windows in server B is windows server 2003 and in server A windows XP.

Thanks

 


Brainstorm your Brain and find solution,if no result stuck to Brainstormer.

2008R2 web replication odd subscriber upload behavior

$
0
0
As the title says, I have 1 subscription (out of a total 17 subscriptions) with 35 articles that will not upload all changes from the subscriber.  This subscription has no problems downloading data, making schema changes or handling deletes from the subscriber.  This is a pull subscription with no filters and all articles are bidirectional.

Subscriber 2008R2 SP2 SQL Express on Windows 7

Publisher/Distributor 2008R2 SQL Server on Windows Server 2008

Not all 35 articles get updated at once, but they are related.  Depending on the amount of data that needs to be uploaded to the distributor, I can get different amounts of data moved up.  Regardless of the amount of data moving up to the server, I get an error.

I can replicate with either RMO or REPLMERG.EXE, I have been testing now with replemerg so I can easily change parameters.

With replemerge, here is part of the ouput:
Percent Complete: 0
2013-08-21 05:06:13.592 The request message was sent to 'https://www.mysite.com/SQLreplication/replisapi.dll'
2013-08-21 05:06:13.595 Repl Agent Status: 3
2013-08-21 05:06:14.668 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.675 Percent Complete: 0
2013-08-21 05:06:14.676 Downloaded a total of 3 chunks.
2013-08-21 05:06:14.681 Repl Agent Status: 3
2013-08-21 05:06:14.686 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.695 Percent Complete: 0
2013-08-21 05:06:14.697 The response message was received from 'https://www.mysite.com/SQLreplication/replisapi.dll' and is being processed.
2013-08-21 05:06:14.699 Repl Agent Status: 3
2013-08-21 05:06:14.704 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.713 Percent Complete: 0
2013-08-21 05:06:14.715 The merge process could not enumerate changes at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.
2013-08-21 05:06:14.717 Repl Agent Status: 6

From subscriber replmerg.log:
DatabaseReconciler            , 2013/08/21 05:06:13.092, 7624,  7663,  S2, :T:,30,0,0,33214,33214,efcc975a-d0c4-47d9-8423-c7262afb2ef1,240,,,,
DatabaseReconciler            , 2013/08/21 05:06:13.284, 7624, 25088,  S2, INFO: [WEBSYNC_PROTOCOL] Sending client ReconcilerPhase WebSyncReconcilerPhase_LastRegularUpload
WinHttpClient                 , 2013/08/21 05:06:13.296, 7624,  1205,  S2, INFO: Exchange ID = B2860342-D297-4AB6-A945-80166CF068E9.
DatabaseReconciler            , 2013/08/21 05:06:14.742, 7624, 20229,  S2, :T:,110,0,6,,,,,,,
DatabaseReconciler            , 2013/08/21 05:06:14.742, 7624, 20236,  S2, INFO: Session Highlights: FAIL, WEBSYNC_CLIENT, 
CReconcilerTask               , 2013/08/21 05:06:14.787, 7624,   645,  S1, INFO: =============== ENDING OF MERGE =================

From websync.log at the publisher:
DatabaseReconciler            , 2013/08/21 05:06:35.806, 5788,  7663,  S2, :T:,30,4005,0,33214,24957,efcc975a-d0c4-47d9-8423-c7262afb2ef1,0,,,,
Msgprox.dll                   , 2013/08/21 05:06:35.866, 4248,  3665,  S1, ERROR: The merge process could not enumerate changes at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write., hr = 0x80045019.
Msgprox.dll                   , 2013/08/21 05:06:35.866, 4248,  4690,  S1, ERROR: ErrNo = 0x80045019, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not enumerate changes at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.
CommitBatchedInserts          , 2013/08/21 05:06:35.873, 1360, 13892,  S1, CommitBatchedInserts failed.
Replprov.dll                  , 2013/08/21 05:06:35.876, 1360, 17605,  S1, ERROR: ErrNo = 0x80045022, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not replicate one or more INSERT statements to the 'Publisher'. A stored procedure failed to execute. Troubleshoot by using SQL Profiler.
CommitBatchedInserts          , 2013/08/21 05:06:36.086, 2940, 13892,  S1, CommitBatchedInserts failed.
Replprov.dll                  , 2013/08/21 05:06:36.087, 2940, 17605,  S1, ERROR: ErrNo = 0x80045022, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not replicate one or more INSERT statements to the 'Publisher'. A stored procedure failed to execute. Troubleshoot by using SQL Profiler.
DatabaseReconciler            , 2013/08/21 05:06:36.213, 5788, 20229,  S2, :T:,110,4005,10,,,,,,,
DatabaseReconciler            , 2013/08/21 05:06:36.213, 5788, 20236,  S2, INFO: Session Highlights: FAIL, WEBSYNC_SERVER, 
Replprov.dll                  , 2013/08/21 05:06:36.213, 5788, 17605,  S1, ERROR: ErrNo = 0x80045645, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process was unable to update last synchronization information at the Publisher.

I get these errors no matter how much data moves from the subscriber to the publisher.  I can re-run the merge, it will move a bit more data up, but it will throw the same errors.  If I run again, data will not move up at all.  I can then delete the new data at the subscriber and the publisher has no problems deleteing.  

Fixes attempted, other info:
From my subscriber, I can access both replisapi.dll and replisapi.dll?diag sites.  The ?diag has no errors.  
I am not sending IMAGE columns, sometimes as little as 300 rows of data.
I am not throwing any idendentity errors, regardless I moved most of my IDs to GUIDs to make sure.
I changed my merge agent profile to slow link.
Ran DBCC CHECKDB, no errors.
Reinitialized subscription.
Deleted subscription and re-created.
In SQL profiler, I do not see anything going wrong, until the error.  I cannot tell what procedure failed to execute.  I will run the last procedure before the error without a problem.
I added the -T106 to replemerg, I didn't see anything new to the above errors.
I increased the subscription's timeout property.

I need help, I am completed flustered due to the fact I can get some records at the publisher.


SQL Server 2008 R2 Offsite Backup

$
0
0

What is the best way to do an offsite SQL backup for transaction logs over aWAN? 

My company is trying to determine the best way to do to this that doesn't involve physically going to the machine and putting a tape drive in it, or a USB device, etc. 

SQL Server 2008 R2 Transaction Replication Tracer Tokens always pending

$
0
0

On a new transaction replication publiciation/subscription, the tracer tokens I generate always show pending for publisher to distributor and distributor to subscriber.  The log reader agent is running and last action continues to update.   The Performance column in the repl monitor shows Excellent with a 00:00:03 latency.  Distribution cleanup, agent history clean up, and replication agents checkup all show job succeeded and a resent last start time and their running times are usualy around a second or show 00:00:00.  On the subscriber, the "view synchronization status"  is being updated with number of transactions and commands being delivered.  I can confirm that updates are making it to the subscriber database.  On the surface, everything apears ok but I'm bothered by the tracker tokens not working.

this is SQL Server 2008 R2 10.50.1600.1 - OS is Windows Server 2008 R2 SP1.

-Larry


-Larry

The schema script file.sch could not be propagated to the subscriber

$
0
0

Hello,<o:p></o:p>

I am Totally Disturb with this error<o:p></o:p>

“The schema script file.sch could not be propagated to the subscriber”.<o:p></o:p>

I have created publisher at one IP and Subscriber at other IP , also added set of filters on publisher database and want to merge with subscriber database.<o:p></o:p>

But when I trying to synchronize agent.<o:p></o:p>

It will suddenly give error <o:p></o:p>

“The schema script file.sch could not be propagated to the subscriber”.<o:p></o:p>

will please any one Plz Plz help me the find out the solution .................

Transacional replication - modify parameter in SP

$
0
0

Hi,

We need to change a parameter in a Store Procedure.

We know there are issues with an ative transactional replication and tables are modified.

Are there issues when creating or modifying Store procedure with an transactional replication?

Thanks


Create Table Trigger to replicate data from MSSQL2K5 to Oracle 11G on Linux

$
0
0

I am trying to create a trigger on my MSSQL 2k5 server so that when a record is inserted, a replicated record is created in a table on an Oracle 11g database on a Linux server (Oracle Linux 6).

Creating the trigger is easy, but when I test it I am getting an error stating the following:

.NetSqlClient Data Provider The operation could not be performed because OLE DB Provider 'OraOLEDB.Oracle'for linked server "<myserver>"was unable tobegin thedistributedtransaction.

OLEDB Provider "OraOLEDB.Oracle"for linked server "<myserver>" returned:"New transaction cannot enlist in the specified transaction coordinator"

 

Here is the trigger (MSSQL):

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE insert_aban8_state

    @an8 int,

    @st nvarchar(3)

AS

BEGIN

    SET NOCOUNT ON;

    declare @c numeric

    select @c = count(*) from [e9db]..[CRPDTA].[ABAN8_STATE$] where alan8=@an8 and aladds=@st

    if(@c =0)

     begin

        insert into [e9db]..[CRPDTA].[ABAN8_STATE$]

        values(@an8, @st)

     end

    END

GO

 

 

 

After reviewing the MS Transaction Coordinator, I am now totally confused. I checked the services and have the MS DTC enabled and running, but am not sure what to do on the Linux side.

Does the Oracle Services for Microsoft Transaction Server (OraMTS) work on Linux? I could only find references for this for Oracle 11g on Windows.

 

What do I need to do to enable this replication via mssql table trigger to Oracle11g on Linux?


Replication to different IP but same server

$
0
0

we have got replication server setup which is working fine,

So in order to speed up some Sync process we are going to add a new dedicated network line with new IP

and re-route the replication process through that,

what changes do i need to make in order to make this change happen successfully?


k

creating replication by logging into sql using IP

$
0
0

i can not create a replication when i log i to database using IP address

how can i fix this issue?


k

The schema script 'student_2.sch' could not be propagated to the subscriber.

$
0
0
Question
Vote

HI,

I setup a replication between a two sql server with MS SQL 2008 Express and a server running MS SQL Server 2008 R2. I have completed the setup and when I attempt to start the replication using Synchronization Manager, I encounter the following error.

The schema script 'student_2.sch' could not be propagated to the subscriber.

1. I have shared the path out and permission has been set. I even tried giving Full Control to Everyone.

What else I can do to overcome this problem? Thanks.


Rahul Hundare

The schema script 'tablename_2.sch' could not be propagated to the subscriber.

$
0
0

HI,

I setup a replication between a workstation with MS SQL 2008 Express and a server running MS SQL Server 2008 R2. I have completed the setup and when I attempt to start the replication using Synchronization Manager, I encounter the following error.

The schema script 'name_2.sch' could not be propagated to the subscriber.
The process could not read file '\\SGNCW02\snapshot\unc\SGNCW02_PUBLISHER_PUB\20120422233815\name_2.sch' due to OS error 53.
The network path was not found.

1. I have verified that the path "\\SGNCW02\snapshot\unc\SGNCW02_PUBLISHER_PUB\20120422233815\" is accessible by putting the string into RUN.

2. I have shared the path out and permission has been set. I even tried giving Full Control to Everyone.

What else I can do to overcome this problem? Thanks.


Unclepanda http://www.facebook.com/unclepanda

SQLServer replication error "The row was not found at the Subscriber when applying the replicated command"

$
0
0

i have an error with replication when start sync process "The row was not found at the Subscriber when applying the replicated command"

after this error i copy manually data from publisher to subscriber....so my question is:

is possible to clean the script log that sync process should be use and reset sync from this last situation?it's correct question?

i tryed to re-inizialize subscriber but without solution :( Somebody know wich steps should do to resolve this problem?

thanks in advance!

SQL Server could not create a subscription for Subscriber

$
0
0

I am getting the following error when trying to setup Peer to Peer Replication. 

Warning: The distribution agent job has been implicitly created and will run under the SQL Server Agent Service Account.
Msg 6522, Level 16, State 1, Procedure sp_MSgeneratenosyncsubscriptionsetupscript_sqlclr, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_MSgeneratenosyncsubscriptionsetupscript_sqlclr": 
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlPerformanceCounters' threw an exception. ---> System.MethodAccessException: Attempt by method 'System.Configuration.TypeUtil.CreateInstanceRestricted(System.Type, System.Type)' to access method 'System.Diagnostics.SwitchElementsCollection..ctor()' failed. ---> System.Security.SecurityException: Request failed.
System.Security.SecurityException: 
   at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed)
   at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
   at System.Security.PermissionListSet.CheckSetDemandWithModification(PermissionSet pset, PermissionSet& alteredDemandSet, RuntimeMethodHandleInternal rmh)
   at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandleInternal rmh)
   at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet g
...
System.TypeInitializationException: 
   at System.Data.SqlClient.SqlConnection..ctor()
   at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.GatherMetadataAndGenerateScript()
   at Microsoft.SqlServer.Replication.TransSqlClrCodeGenerators.sp_MSgeneratenosyncsubscriptionsetupscript_sqlc...
The Subscriber was dropped.
Msg 21678, Level 16, State 1, Procedure sp_MSrepl_addpushsubscription_agent, Line 194
The parameter "@job_password" can be set to "NULL" only when "@job_login" is set to "NULL".

This only occurs when selecting "Push" for the delivery. If I select Pull it creates without errors. 

Any help would be appreciated. 

Thanks,

Dean Whitlock

Merge agent may fail during merge replication

$
0
0

Hello,

We received the following error on a subscribers agent

"The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the Subscriber for changes not yet sent to the Publisher. You must reinitialize the subscription (without upload)."

On the support site it mentioned we might be able to fix this problem without a complete reinitialization. Does anyone know how to fix this? I can't find any documentation how to execute a partial initialization.

The subscriber has a high latency connection to the publisher and a complete initialization might take a few days which we need to avoid if all possible.

Thanks for the help!

Jeremy


Sql 2008R2 instllation on Windeows 2008R2 - Service Account Error in log after installing

$
0
0

Hi,

I have installed sqlserver 2008R2 on new m/c as a part of migrating from sql
2005 to sql 2008.
Next day I was looking the log and found the error
message:

Login failed for user 'MSSqlDB2K8\sqlsrvAcct'. Reason: Failed to
open the explicitly specified database. [CLIENT: <local machine>]

I have created this account during installation but didn't add account int
oadministrator group.
I have also tried to login using same credential in
SSMS and I can't connect.
When tried to sto pand start the service i can do
it.

I have added user into Administer group but still not working.
I
have also assigned account in Sysadmin server Role into Security.

Thank
you!

How to migrate Replication DB from one server to another new server

$
0
0

Hello,

We will be planning to migrate sql 2005 and sql 2008R2 on new windows 2008R2 server, we have one Replicated DB which ones we are subscribing and we don't have any control over publisher.
Could you please guide me that how can we handle it?
We are planning to do side by side installation and will be using Backup and Restore method but some worries how we can handle it for Replication DB and which is the biggest DB almost more then 300GB.

Appreciate your help!

Thanks

SQL Server 2012 Merge Replication - Delete operations on Merge Tables now require ALTER TRACE permisson due to Extended Stored Proceedure call master..sp_repl_generateevent. Some Advise would be appreciated.

$
0
0

Hi All,

In reference to http://dba.stackexchange.com/questions/29141/why-do-replication-deletes-require-sysadmin-access

I have the same issue as reported in the above link. The immediate issue has been bypassed in that I have granted ALTER TRACE permission to the main Applications account that does DELETE operations on the tables in question but in all honesty I don't want to grant that access just to bypass the error.

Msg 8189, Level 14, State 10,Procedure sp_repl_generateevent, Line 1
You do not have permission to run 'SP_TRACE_GENERATEEVENT'.

Has anyone else ran into this and come up with a better solution other than biting the bullet and giving all accounts that run DELETE operations on the merge Tables ALTER TRACE permission?

I could try some impersonation within the Replication Triggers to overcome this but of course if the replication is recreated then i would need to manually administrate the trigger code to manage the impersonation so that doesn't seem that practical to me.

Does this mean that its now a requirement for all accounts that run delete operations on Merge replication Tables to have Alter Trace Permission? o.O

Some advice would be greatly appreciated.

Kind regards,

killerchef

Republishing in a DR scenario

$
0
0

Hi All,

I'm working with SQL Server 2008 R2 Enterprise.

I was just reading about Republishing as a way to keep a DR site up to date.

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

(This link if for 2012, but I'm hoping this would work on a 2008 R2 as well.)

I don't have an environment ready to test this yet so I was wondering if there was anyone out there who has Republished a subscriber before.

A couple of things I was wondering about is if anyone knows what happens when the primary site fails and we want to start sending data directly to the subscriber/publisher at the DR site. Is that kind of a set up possible?

ANother thing is the diagram in the link doesn't show it, but can the subscriber/publisher at he DR site have its own distributor? 

Tia,

Mike


MikeG

Issue while replicationg table i sql server 2008

$
0
0

Hi All,

I had configured Sql replication using Sql subscriber,distributer and oracle publisher.Earlier i had removed the Sql subscriber and now when i again added the subscriber i am getting this error in my snapshots agent.i tried to reinitialize the subscriber but still it didn't resolve the error.Kindly Help me out with it. 

Skipping file 'ADDRESS 2.sch' because it has already been delivered for a previous article or by a previously interrupted snapshot.

Error messages:
The process could not bulk copy into table '"dbo"."ADDRESS"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
Invalid object name 'dbo.ADDRESS'. (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 "DW_TRN_08"."dbo"."ADDRESS" in "G:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\ReplData\unc\MESE01_DISTRIBUTION_START_1\20130826095142\ADDRESS_2.bcp" -e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SCIDCSWDMESMPI01 -T -w (Source: MSSQLServer, Error number: 20253)
Get help: http://help/2025
Viewing all 4054 articles
Browse latest View live




Latest Images