Quantcast
Channel: Unwanted Objects
Viewing all articles
Browse latest Browse all 7

Unwanted Objects

$
0
0

Hi,

I am new to replication, please help.

Need to set up two servers, one replicating all transactions to the other. Eventually I want to replicate approximately 200 tables, views, etc. To get started I have specified only one table to be replicated, to see if I can set up the plumbing. After some trial and error, reading of documentation, and harsh language I got it to work, but I am getting these errors which I cannot understand.

My test table is called SMService_Cfg - it was selected for its simplicity and independence - no relations whatsoever to any other table. No foreign keys, no anything else that would tie it to other tables, except that it is in the same database.

Database is called NYBTE, primary server doing publishing is POINCARE, secondary server doing a pull subscription is called LORENZ. I am running SQL Server 2012 Developer Edition (equivalent to Enterprise edition?) on both machines.

When I first turn on the subscription I get these messages:

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

Snapshot will be applied from the alternate folder '\\POINCARE\SMReplication\unc\POINCARE$SMARTMASTER_NYBTE_SMARTMASTER\20161202081029\'

Initializing

Applied script 'SMService_Cfg_2.pre'

Applied script 'SMService_Cfg_2.sch'

Bulk copying data into table 'SMService_Cfg'

Bulk copied data into table 'SMService_Cfg' (1 rows)

Delivered snapshot from the 'unc\POINCARE$SMARTMASTER_NYBTE_SMARTMASTER\20161202081029\' sub-folder in 78 milliseconds

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

So far so good. But then there comes this error message:

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_RemoteStations_DNP_30_AL_Channel__DNP_RemoteStations". The conflict occurred in database "NYBTE", table "RSExec.RemoteStations", column 'Name'.

Subscription keeps retrying, repeating the same error. While these objects ARE in database NYBTE, I have NOTasked for them to be replicated. Anybody have any ideas?

Any thoughts would be greatly appreciated.

Thank you in advance.

Peter


PMBT


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles



Latest Images