SQL 2005: Transactional Replication > Executing sp on subscriber

Hi,

I am trying to set up a Updatable Subscriptions for Transactional
Replication with SQL 2005 (queued updating).

I have a stored procedure "SYS_spShellTest" which is replicated to the
subscriber via
the replication option "Execution of the stored procedure":

------------------------------------------------------------ -
ALTER procedure [dbo].[SYS_spShellTest] [at] cmd varchar(1000)
WITH EXECUTE AS owner
as
BEGIN
EXEC [at] result = master..xp_cmdshell [at] cmd, NO_OUTPUT
Return ( [at] result)
END
------------------------------------------------------------ -

1) If I call "exec SYS_spShellTest" on the publisher the call is also
executed on the subscriber.
2) If I call "exec SYS_spShellTest" on the subscriber the call is NOT
executed on the publisher.

How can I make 2) work so that it is also executed on the publisher
please?

Thanks a lot,
Patrick
PatrickW [ Di, 15 Januar 2008 03:26 ] [ ID #1908231 ]

Re: SQL 2005: Transactional Replication > Executing sp on subscriber

Hi,

I did another cross group posting "SQL 2005: Transact. Repl. >
Executing sp on subscriber doesn't execute on publisher"
on
microsoft.public.sqlserver.replication,microsoft.public.sqls erver.server,
comp.databases.ms-sqlserver
please answer this instead.

Thanks,
Patrick
patrick [ Mi, 16 Januar 2008 01:09 ] [ ID #1909465 ]
Datenbanken » comp.databases.ms-sqlserver » SQL 2005: Transactional Replication > Executing sp on subscriber

Vorheriges Thema: using freetds tsql
Nächstes Thema: Dropping an active connection on an attached database