Pular para o conteúdo principal

Replicação Merge - Violation of UNIQUE KEY constraint 'unique_pubsrvdb

Esta foi chata de resolver. Enfim, troquei um antigo servidor por outro mais moderno e depois de tudo configurado, obtive a seguinte mensagem em uma publicação merge:

Error: The merge process could not update the list of subscriptions.
Last Command: {call sp_MScreateglobalreplica
(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}

Error Information:

DataSource: The subscription could not be created.

DataSource: Violation of UNIQUE KEY constraint 'unique_pubsrvdb'. Cannot

insert duplicate key in object 'sysmergesubscriptions'.

Procurei bastante e com dificuldade encontrei a dica:

Quando o assinante é removido, os registros do assinante ainda ficam nas seguintes tabelas: sysmergesubscriptions e msmerge_replinfo

A tabela é localizada na base de dados do assinate (e não no servidor distributor). Delete os registros problemáticos e a replicação merge voltará a funcionar.

Comentários

Postagens mais visitadas deste blog

Instalar Módulo de Proteção Santander no Mac OSX Mountain Lion

Repararam que o módulo de proteção do banco Santander parou de funcionar? Isso, no meu caso foi quando atualizei o OSX para o Mountain Lion. Há quem diga que parou quando da atualização do navegador Safari. Enfin, depois de brigar um pouco com versões Java, consegui encontrar no forum da Apple a solução: Após atualizar o meu MacBook Pro para o Mountain Lion, o módulo de proteção do Santander parou de funcionar no Google Chrome. Ao clicar no botão instalar módulo de proteção, nada acontecia. Olhando o javascript mais a fundo, achei uma chamada a URL ' https://wwws.santandernet.com.br/MPS/moduloJava.html '. Ao inserir ela no browser e pressionar <ENTER>, recebia uma mensagem 'plugin inactive'. Pare resolver o problema, abri uma nova aba e entrei no endereço 'chrome://plugins/'. Naveguei até o plugin do Java, desabilitei o mesmo e reiniciei o chrome. Feito isso, entrei novamente no endereço e ativei este plugin. Ao entrar novamente no s...

GameDev Tutorial - Basic Circle Chain Engine Using Unity3D Part 1

Circle Chain ( http://www.emanueleferonato.com/stuff/circle_chain/ ) is a simple game developed in 2007 by Emanuele Feronato ( http://www.emanueleferonato.com ) as a monetization test in Flash Games. In fact it's based on Boomshine ( http://www.k2xl.com/games/boomshine/ ) Emanuele has since, ported his game tutorial for lots of platforms: AS3: (complete)  http://www.emanueleferonato.com/2012/02/20/circle-chain-ported-to-as3-with-commented-source-code-available-ready-to-jump-to-the-iphone/ Game Maker: (basic)  http://www.emanueleferonato.com/2012/06/07/circle-chain-engine-made-with-game-maker/ Construct2 HTML5:  http://www.emanueleferonato.com/2012/03/14/html5-version-of-circle-chain-engine-using-scirras-construct2/ Corona SDK:  http://www.emanueleferonato.com/2012/02/24/basic-circle-chain-engine-using-corona-sdk/ Gideros Studio:  http://www.emanueleferonato.com/2012/04/12/basic-circle-chain-engine-using-gideros-studio/ Stencyl:  http://www.emanueleferonato.com/2012/02/29/ba...

Basic Circle Chain Engine Using Unity3D Part 3

What we need to do in this third part: . RedBullet collides with GreenCircle. . GreenCircle spawn GreenBullets. . repeat the process each collision between "bullets" objects and GreenCircles. Basically we need add physics components to GameObjects, then add colliders. 1. In the prefab folder, select RedBulletPrefab. In the Inspector panel, at bottom, click the button Add Component > Physics > Rigidbody. Then uncheck "use gravity", check "Is kinematic" and I checked too the z position and x, y, z rotation freeze options. 2. With RedBulletPrefab selected, add a new physics component, collider. For bullets I choose Box Collider, for the Green Circle I added an Sphere Collider. Just check "Is trigger" since we will use C# script to control collisions.  3. Do the steps 1 and 2 above to GreenCirclePrefab. 4. Let's create a new prefab, GreenBulletPrefab. It's based in the RedBulletPrefab, so drag and drop RedBulletPrefab into H...