Pular para o conteúdo principal

Descobrir se a tabela é replicada – SQL Server 2000

Utilizo este script quase que diariamente. Como o título informa, é útil para casos de dúvidas se uma tabela é replicada ou não e em que publicação ela se encontra. Ah, não sei quem é o autor do script.

use distribution
go
select mst1.srvname as 'Publisher',
msp.publication as 'Publication Name',
msp.description as 'Description',
-- msp.publication_type,
case msp.publication_type
when 0 then 'Transactional'
when 1 then 'Snapshot'
when 2 then 'Merge'
end as 'Type',
msa.article as 'Article',
mst.srvname as 'Subscriber'
from msarticles msa (nolock),
mspublications msp (nolock),
master..sysservers mst (nolock),
master..sysservers mst1 (nolock),
mssubscriptions msu (nolock)
-- msmerge_subscriptions mmsu
where msp.publication_id = msa.publication_id
and msp.publication_id = msu.publication_id
and msa.article_id = msu.article_id
and mst.srvid = msu.subscriber_id
and mst1.srvid = msp.publisher_id
and msa.article = 'tab_parametros_rendimento'
union all
select mst1.srvname as 'Publisher',
msp.publication as 'Publication Name',
msp.description as 'Description',
-- msp.publication_type,
case msp.publication_type
when 0 then 'Transactional'
when 1 then 'Snapshot'
when 2 then 'Merge'
end as 'Type',
msa.article as 'Article',
mst.srvname as 'Subscriber'
from msarticles msa,
mspublications msp,
master..sysservers mst,
master..sysservers mst1,
-- mssubscriptions msu
msmerge_subscriptions mmsu
where msp.publication_id = msa.publication_id
and msp.publication_id = mmsu.publication_id
--and msa.article_id = mmsu.article_id
and mst.srvid = mmsu.subscriber_id
and mst1.srvid = mmsu.publisher_id
and msa.article = 'tab_parametros_rendimento'
--order by 1,2,6,5
order by 1,6,2,5















Linha 25: colocar o nome da tabela
Linha 49: colocar o nome da tabela


Ah, não se esqueça de que o script deve ser executado no seu servidor ”distributor”.

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...

GameDev Tutorial - Basic Circle Chain Engine Using Unity3D Part 2

This part 2 is not so detailed like before, so If you need you can see the part 1 here:  http://alxcancado.tumblr.com/post/62482465038/gamedev-tutorial-basic-circle-chain-engine-using Once again I want say that this is my port for Unity3D from Emanuele Feronato's tutorial:  http://www.emanueleferonato.com/2013/05/21/from-zero-to-a-complete-game-with-cocos2d-html5-step-2-mouse-interaction/   Okay, time to put some mouse interaction. 1. add the new textures: red circle, bullet red; configure texture type to advanced, uncheck generate mipmap and filter mode to point. 2. drag and drop the greencircleprefab from prefab folder to the hierarchy. drag and drop the red circle texture to this and rename to RedCircle. Remove the GreenCricle script from it. We will create a script to this object later. 3. But we still need create our Bullet prefab. To make it simple, just duplicate the RedCircle object from hierarchy panel with Command+D or (Control+D in windows?). Then rename this ...