473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
Jan 15 '08 #1
1 1814
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
Jan 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Edward | last post by:
Here is the architecture for the Transactional Replication: SERVER1 - PUBLISHER - Also acts as back-end database for Enterprise-wide application written in VB. Uses ~430 stored procedures. ...
1
by: tgru | last post by:
I have taken over a transactional replication setup that is being used for fault tolerance (I know, I know...). The scenario I am concerned with is where the publisher goes down due to failure,...
0
by: prashant | last post by:
Hi, I am trying to set up Transactional replication with immediate updation. The configuration is as follows: 1. Publisher is SQL server 2000 Enterprise Edition, and Distributor is on the...
0
by: prashant | last post by:
Hi, I am doing transactional replication with queued updation from subscribers. I have synchronized database at both the ends. If I chose 'No I have data and schema at Subscriber' option while...
2
by: DickChristoph | last post by:
Hi I tried posting this query in microsoft.public.sqlserver.programming but got no response. I am new to replication but I am trying to setup up a transactional replication of tables from one...
1
by: laststubborn | last post by:
Hi All, I would like to set up transactional replication with failover cluster. Did anybody tried this? Does it work together? Is there anything I should be coutios when I set up these together?...
0
by: apilz | last post by:
I am trying to set up two Dbs for transactional replication through the wizard. Every time i try to complete the process i receive the same error message. "Property LoginSecure cannot be changed...
0
by: ceadtinneh | last post by:
First a bit about what I' trying to do. I'm running SQL Server 2005 Developer edition on my dev box. I've got two instances set up and am trying to set up transactional replication (with both...
2
by: Query Builder | last post by:
Hi, I have transactional replication set up on on of our MS SQL 2000 (SP4) Std Edition database server Because of an unfortunate scenario, I had to restore one of the publication databases. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.