Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL 2005: Transactional Replication > Executing sp on subs..

 
   Database Forums (Home) -> General Discussions RSS
Next:  Can SID be trusted?  
Author Message
PatrickW

External


Since: Jan 14, 2008
Posts: 1



(Msg. 1) Posted: Mon Jan 14, 2008 6:26 pm
Post subject: SQL 2005: Transactional Replication > Executing sp on subscriber
Archived from groups: comp>databases>ms-sqlserver (more info?)

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

 >> Stay informed about: SQL 2005: Transactional Replication > Executing sp on subs.. 
Back to top
Login to vote
Patrick

External


Since: Jan 15, 2008
Posts: 3



(Msg. 2) Posted: Tue Jan 15, 2008 4:09 pm
Post subject: Re: SQL 2005: Transactional Replication > Executing sp on subscriber [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

Thanks,
Patrick

 >> Stay informed about: SQL 2005: Transactional Replication > Executing sp on subs.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
REPLICATION - hi all i have three server each server have DB for replication EX Three DB's A B C A is replicated to B B is replicated to C in this case how am alter a column size in A,B and C for replicated article In publication properties in article its drop..

Table replication question - Hi, I'm using MS SQL server 2005. I have two identical databases - with one exception: they have different names (etc database1 and databse2), but their structure is completely same. Is it possible to replicate one table between those databases? ..

Upgrading old query 7 to 2005. - Hi all; To Defrag the index at the moment we use a query that among many other things it does: ... declare object_cursor cursor for select so.name, si.name from sysindexes si, sysobjects so where si.id=so.id and so.xtype='U' and si.indid>0 and..

SQL Server 2005 article - I'm looking for articles about SQL Server for a new sql server community website. Any article dealing with: T-SQL, Design, OLAP, Reporting, DTS, Administration, ..NET Development. If the article is accepted, and paid for, the author will retain..

SQL 2005 32bit upgrade to 64bit possible? - Just curious if it's possible, and supported, to upgrade SQL 2005 from 32bit to 64bit. This is on top of Windows 2003 64bit. Trying to get the proper supported config for OM2k7 without blowing everything away. Thanks, JDP
   Database Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]