dbTalk Databases Forums  

SQL 2005: Transactional Replication > Executing sp on subscribershould execute on publisher

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss SQL 2005: Transactional Replication > Executing sp on subscribershould execute on publisher in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PatrickW
 
Posts: n/a

Default SQL 2005: Transactional Replication > Executing sp on subscribershould execute on publisher - 01-14-2008 , 08:26 PM






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] @cmd varchar(1000)
WITH EXECUTE AS owner
as
BEGIN
EXEC @result = master..xp_cmdshell @cmd, NO_OUTPUT
Return (@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

Reply With Quote
  #2  
Old   
Patrick
 
Posts: n/a

Default Re: SQL 2005: Transactional Replication > Executing sp on subscribershould execute on publisher - 01-15-2008 , 06:09 PM






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.p ublic.sqlserver.server,
comp.databases.ms-sqlserver
please answer this instead.

Thanks,
Patrick

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.