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

Getting Invalid object name while transaction replication in sql server 2008

$
0
0

Hi All,

I mistakenly disabled the sql replication and while reconfiguring it i am getting error like

Error messages:

The process could not bulk copy into table '"dbo"."MPI_REASON_TYPE"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Invalid object name 'dbo.MPI_REASON_TYPE'. (Source: MSSQLServer, Error number: 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)

bcp "FlexNet"."dbo"."MPI_REASON_TYPE" in "G:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQL\MSSQL\ReplData\unc\MESD01_DISTRIBUTION_MPI_DEV\20131215011550\REASON_TYPE_20.bcp" -e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SCIDCSWDMESMPD01\MSSQL -T -w (Source: MSSQLServer, Error number: 20253)

Previously it was running fine..what to do now kindly help me out.


issues with SQL Srv 2008 replication urgent help needed

$
0
0

I have to replicate 14 tables and out of 14 only one table is refusing to replicate. Its transaction replication on sql server 2008 R2 (SP1) on win 2003 srv 64 bit.

I get the following error and if i run the bcp on cmd prompt it loads the data . I see people reporting similar issues for 2005 and suggestions but none are applicable to SQL SRV 2008.

"

Error messages:
The process could not bulk copy into table '"dbo"."TSR_ACCOUNT_VEHICLE"'. (Source: MSSQL_REPL, Error number:MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
Data conversion failed
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 "TPDB"."dbo"."TSR_ACCOUNT_VEHICLE" in "\\dotstodb035\ReplData\unc\ORADIST_DISTRIBUTION_PROD_ACCT_VEH\20131215184403\TSR_ACCOUNT_VEHICLE_2.bcp" -e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SDOTSTOINFDB101 -T -w (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253

"

Thanks

 


Sami

Custom Conflict Resolver assembly for Merge Replication using Web Synchronization

$
0
0

After creating the assembly, where do I place the DLL if using web synchronization?  The distribution and publisher servers are the same server. The IIS is a different machine.

When I sync I get this error;

Error loading custom assembly "\\IISMachine\c$\Program Files\Microsoft SQL Server\100\COM\CustomLogger.dll", Error : "Could not load file or assembly '\\\\IISMachine\\c$\\Program Files\\Microsoft SQL Server\\100\\COM\\CustomLogger.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)".

I've tried putting the CustomLogger.dll in the same folder as replisapi.dll too and get same (obviously the path is different in the error).

Basically, how to I install a CCR assembly when using web synchronization?


Duplicating Analysis Services Database

$
0
0

Hi All,

I am having an Analysis Services Database cube as DW_cube which i wanted to duplicate as DW_cube1 for some testing purpose..

i am new to thing can anyone help me out.

Subscription Issue - Assembly could not be installed

$
0
0

Hi all

I am attempting to replicate a database based on 2008 R2 to an SQL 2012 server.  I have successfully made a transactional distribution on the source server with the snapshot created.  The issue is when I create a subscription in the destination server, it seems to create ok but upon monitoring the subscription, an error is displayed with the message 'Assembly 'smdiagnostics' could not be installed because existing policy would keep it from being used.'  Any idea on what this means and how I can overcome this?

Thanks in advance.

Error Deleting publication Microsoft SQL Server, Error: 15517

$
0
0

I have a MSSQL 2008 on a windows 2008 server.

I cant delete a publication that isnt in use anymore i get the following error.

TITLE: Microsoft SQL Server Management Studio
------------------------------

Could not delete publication 'TASS Publication'.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.1600.22&EvtSrc=Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Replication.ReplicationMenuItem&EvtID=CantDeletePublication&LinkId=20476

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

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.
Changed database context to 'tass'. (Microsoft SQL Server, Error: 15517)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.2531&EvtSrc=MSSQLServer&EvtID=15517&LinkId=20476

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

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

 

I have tried to delete it by right clicking and delete. I have tried by query.

execsp_removedbreplicationN'<sqlServerName>'

execsp_droppublication @publication=N'<sqlServerName>'

 

I have looked at many forums.

I am trying to do this as 'sa'.

Do you have any suggestions?

Merge Replication using websync in DMZ: Access to snapshot folder

$
0
0

We have configured merge replication using websync. Configuration is as follow:

In Company domain:

- SQL Server Standard Edition: publisher and distributor

- Share for snapshots

In DMZ-domain:

- IIS Server 

Clients:

- SQL Server express

Because the iis-server and the SQL Server are in a different domain the snapshot share is by default not accesible on the iis server. To solve this we granted guest accounts read permission on the share and configured the firewall to only allow connections between the SQL-Server and the IIS-server. Thanks to this we no longer get the exception that the share cannot be located, however know we get the following error:

2013-12-17 15:15:38.976 A failure occurred when accessing 'dynsnapvalidation.tok' due to an operating system error [53='The network path was not found.'] during Web synchronization. Ensure that the -InternetLogin user when using basic authentication and the user running the merge when using Windows integrated authentication has been granted access to the snapshot share.

We can't figure out why we still get this error. On the IIS server we can access the share and the (mentioned) files without the need to authenticate.

I know the recommended solution might be to set op an internal FTP-server on the company domain accesible from the DMZ-domain but as we see it this solution should also work.

Any ideas what we're missing? Thanks in advance

Alexander 


Agent message code 20084. The process could not connect to Distributor

$
0
0

Hello all

We are using Sql server 2012

  I am getting the following error message while running a  replication subscriber side server(server02):

Agent message code 20084. The process could not connect to Distributor (server01)

Both Publisher and Distributor  in server01



Add and Remove Publishers from Replication Monitor using T SQL

$
0
0

Is there any possibility to add an Publishers from Replication Monitor using T SQL.i am trying to configure the replication using T SQL..i can create all other steps but didn't find any way to add publisher to the replication monitor..kindly suggest..

New Top Support Solutions blog

$
0
0

Hello

As part of our efforts to keep our communities informed about the most relevant content that address the top questions that we are getting in out forums and other support channels we want to introduce the new “Top Solution Content” blog (http://blogs.technet.com/b/topsupportsolutions).

In this blog you will find up-to-date and valuable information about Microsoft top support solutions for several of our popular products in the Server and Tools portfolio. You can use the tags (http://blogs.technet.com/b/topsupportsolutions/archive/tags) to easily locate the product of your preference or visit the home page to see what’s going on for the different Microsoft Enterprise and developer products. As a blog you can also subscribe to post and comments using the RSS feeds.

We hope this will reduce time and effort when you are looking for relevant content. Enjoy it!

Thanks

Microsoft Support team


Elvis Long
TechNet Community Support

SQL Merge Replication Error - The server error ocuured on current command,the results,if any, should be discarded

$
0
0

HI

I'm merge replicating between SQL Server 2005 and SQL Compact on mobile devices.

Recently it Stopped Working.And i checked the logs in the replication monitor,it shows below error message

Error messages:
You must rerun snapshot because current snapshot files are obsolete. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201021)
Get help: http://help/MSSQL_REPL-2147201021

Then i  re-run the snapshot which was 49 % percent complete,then throws the below error

The server error ocuured on current command,the results,if any, should be  discarded

The server error ocuured on current command,the results,if any, should be  discarded

Anyone can help me out to figure out why this error message occurs?

Error messages:
You must rerun snapshot because current snapshot files are obsolete. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201021)
Get help: http://help/MSSQL_REPL-2147201021

Srikanth[096]

Delete Replication with Domain-Account by RMO

$
0
0

I'm offering an option to reset the replication by deleting the subscribers + publication by rmo. So far it works without problems, but as I changed to use an domain-ad-account instead an of a sql-login, the replication seems to stay somewhere in the cache...

When I refresh in the SQL Server Management Studio the "Local Publications", the publication is gone, but when I launch the "Replication Monitor" the publication is still accessible and I can view the snapshot agent-history, too...

so, is it a bug or a feature?

EDIT: It just occurs to be a problem, when you try to delete the database after you deleted the publication. If you set up the publication again, it seems to work without problems.

Change Data Capture on an existing database

$
0
0

 

Hi Readers,

 

I am using the Sql Server CTP5 Developer edition on which i am able to perform CDC only if i start with creating a new database and then load the tables.The complete data change could be captured.

 

But when i implement the same on a existing database the following query fails,

DECLARE @from_lsn binary(10), @to_lsn binary(10);

 

SET @from_lsn = sys.fn_cdc_get_min_lsn('dbo_table1');

SET @to_lsn = sys.fn_cdc_get_max_lsn();

SELECT * from [cdc].[fn_cdc_get_all_changes_dbo_Table1](@from_lsn, @to_lsn, 'all')

GO

 

The Error i get is ,

Insufficient arguments supplied to function cdc.fn_cdc_get_all_......

 

However the  change data tracking on the database and the table could be enabled.

Nothing could be retrieved fron cdc.ddlHistory table as no data was captured.

 

Thanks and regards,

Karthik

Problme sync subscriber The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web serve

$
0
0

Hi.

i'm facing a new kind of error with replication.
The system is there since 3 years, and we have daily around 100 devices that sync on it. Without any prob .. until now ..

Merge replication, using replisapi WebSync.
Sync on subscriber via RMO

Topology & info
===============
ServerDB :win2008 R2 standard x64 , SQL 2008 R2 x64
WebServer (replisapi) : win 2008 r2 x64
Client : sql 2008 express x64

Around 100 subscribers

Around 150 tables synched.

Around 60 000 rows modify by day (80% between 6h and 7h am).


Problem
=======
The susbscriber is able to upload data but he doesn't receive download from server.

On serverside, i see no error, but the "upload" is done each time. Download is always 0
on replisapi.dll gatewayServer, i enabled the log on level 3 and see NO error.
On the subscriber (sql 2008), i receive the following error (log level 3)

Microsoft.SqlServer.Replication.ComErrorException (0x80004005): The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server.
   at Microsoft.SqlServer.Replication.MergeSynchronizationAgent.Run()
   at Microsoft.SqlServer.Replication.MergeSynchronizationAgent.Synchronize()
   at Odyssee.Desktop.WebSynchro.Synchro(List`1 received_tab_order_id_updated)
14:18:57:0%,Status:InProgress,Message:The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server.
14:18:57:0%,Status:InProgress,Message:The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server.
14:18:57:0%,Status:InProgress,Message:The response message was received from 'https://mobilesales.samsonite-europe.com/SQLReplication/replisapi.dll' and is being processed.
14:18:56:0%,Status:InProgress,Message:Downloaded a total of 3100 chunks.
14:18:55:0%,Status:InProgress,Message:Downloaded a total of 3000 chunks.
14:18:54:0%,Status:InProgress,Message:Downloaded a total of 2900 chunks.

What is strange is that on the server db, i see no error.
On the WebServer (replsisapi) i see no error on the log

I can re init the subscriber but it can take times (1hour) and i have 100 subscriber like this.
After a subscriber is re-init (without change), he is able to sync the delta (changes after snapshot).
So it means , for me, the problem is not about security settings of the network share or something like this.
But more about the data that need to be synched (the delta).
In fact, all pc that try to sync since the 2013-12-17 +- 1:00 PM have the same problem.

Error while replicating article from oracle to sql server

$
0
0

Hi All,

I am facing an issue while replicating an article from oracle to SQL server as oracle is case sensitive while sql server is not.

The Article has an primary key column which stores an value such as "TEST" and "test".but while replicating the article we are getting error stating duplicate value as sql server considers it as same.

How to make Sql server case sensitive so that the record will be inserted properly without throwing any error.

Thanks in advance.


SQL replication question

$
0
0

I have the following db mirror setup already running for long time:
SQLServerA(Principal) --- SQLServerB(Mirror)

Now I set up replication as follows:
SQLServerC is the distributor and subscriber
The replication has been setup from SQLServerA(publisher) to SQLServerC(subscriber)

After couple of weeks there was a mirror failover from SQLserverA to SQLserverB.
Now SQLServerB is principal; SQLserverA is mirror.

I have gone into the log reader and snapshot agent jobs on the distrubutor and added the parameter
-PublisherFailoverPartner [SQLServerA]

Then after that tried to run the snapshot job to reinitialize the subscription, but the snapshot job failed.
And also the logreader agent job is saying as between retries.

Any ideas?


sqldev

string or binary data would be truncated - different service packs on publisher vs distributor

$
0
0
We have transactional replication where the publisher is 10.0.4067 and the distributor is 10.0.4000.  The distribution agent will periodically will fail with the following error: Stringor binary data would be truncatedSQLSTATE 22001] (Error 8152). The tables on the publisher and subscriber are all the same data type. Could the version difference be causing this issue?  Do we need to upgrade the distributor sql server (different server than the publication server)?

Merge Replication -Analysis

$
0
0

Hi

     We thought of moving our project to use replication.

What are the steps needs to be addressed before implementing merge replication.

Please help.

                    1.Two web servers

                    2.Two Application database servers  (replication will be implement in this server)

                    3.Four Content Read only servers.

           The connection will be start from content to application server.

  Thanks,

Muthukumar S

              

Gaps in Identity Range

$
0
0

Hi All,

We're experiencing a weird phenomenon with identity range management presently and wondered if anyone had any ideas on why it's happening and how to fix.

We are using Merge Replication and 5 subscribers.

When we look at the table that holds the identity ranges (i.e. range_begin, range_end, next_range_start and next_range_end) we see that there appears to be a big gap in the middle of the identity range on the constraint.

This is an example of what I mean... 

([ID]>(13018108) AND [ID]<=(13118108) OR [ID]>(16818108) AND [ID]<=(16918108))

Anyone any ideas as to what caused this?

I understood that the primary and secondary ranges where allocated thus.

A --> B and B --> C

and not...

A -- B and X--> Y

If you see what I mean...

Warm Regards,

Nigel.

Merge Replication Problem - could not access row data at the 'Subscriber'

$
0
0

I've got a problem where a push merge replication stopped working. The setup has 3 servers, A-B-C. Server-A is the publisher while B&C are the subscribers.

A&B are both 2008R2 servers and the replication between them is working well. SERVERA is on SP2 (10.50.4000.0), but no CUs applied

Server C is still on SQL Server 2000 (SP4 - 8.00.2039).

About a week ago the replication between A&C would suddenly stop after running well for a few years. Enabling the -output logging from the Agent gives me:

.......

2013-12-21 07:38:47.737 Enumerating inserts and updates in article 'TABELA' (generation batch 1)
2013-12-21 07:38:47.737 OLE DB Distributor 'SERVERA': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-12-21 07:38:47.800 Percent Complete: 0
2013-12-21 07:38:47.815 Enumerating inserts and updates in article 'TABELB' (generation batch 1)
2013-12-21 07:38:47.815 OLE DB Distributor 'SERVERA': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-12-21 07:38:47.925 Percent Complete: 0
2013-12-21 07:38:47.925 The merge process could not access row data at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to write to, or run the SQL Profiler utility to identify the source of the failure.Enumerating inserts and updates in article 'TABELC' (generation batch 1)
2013-12-21 07:38:47.925 
2013-12-21 07:38:47.940 OLE DB Distributor 'SERVERA': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-12-21 07:38:47.972 The merge process could not retrieve column information for table 'TABELD'. Verify that you have sufficient privileges on the database and retry the operation.The merge process could not retrieve column information for table 'TABELC'. Verify that you have sufficient privileges on the database and retry the operation.
2013-12-21 07:38:47.972 
2013-12-21 07:38:47.987 Percent Complete: 0
2013-12-21 07:38:47.987 No data needed to be merged.
2013-12-21 07:38:47.987 OLE DB Distributor 'SERVERA': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-12-21 07:38:47.987 Percent Complete: 0
2013-12-21 07:38:48.003 The merge process could not access row data at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to write to, or run the SQL Profiler utility to identify the source of the failure.

......

This is the output with verbose logging on and we're not using web replication . Both machines are in the same domain and the account the Sql Server Agent is running under has been assigned to the sysadmin and serveradmin roles.

Running the profiler against the subscriber (C) I can see that the Agent is running some SPs; exec sp_MSenumcolumns exec sp_MSgetmetadatabatch  and sp_MSgetonerow, but I see nothing special about the log.

The only odd thing I see in this setup is that in SSMS the subscription is listed twice on SERVERC under the Local Subscription node. 

  

Any suggestions on where to go next? 


Viewing all 4054 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>