all groups > sql server replication > february 2007 >
You're in the

sql server replication

group:

Updating stored procedure definitions


Updating stored procedure definitions Cerora
2/7/2007 5:00:00 AM
sql server replication:
Scenario:
Windows Server 2003/SQL Server 2005 SP1 on publisher and subscriber.
Transactional Replication (without Updateable subscriptions) with a PUSH
publication from server A to server B.
Replicate Schema changes are set to TRUE.

Issue:
We have a number of stored procedures with a length more than 815 lines as
viewed in Management Studio (or 817 lines using sp_helptext , about 32,730
characters),
that compile and execute successfully on Server A and Server B. They are
successfully included in the initial snapshot and replicated to Server B.

However if one of these published stored procedures is edited using ALTER
PROCEDURE from Management Studio, the ALTER fails.
There is no error message the procedure sits and after 9 minutes the user
terminates it rather than letting it time out.
If the same procedure is edited - removing white space, valuable comments
and layout to less than the threshold described above the ALTER PROCEDURE
statement is successful
and Replication Monitor can be used to see the detail line "A DDL change has
been replicated".

Is there a flag that can be set to increase this limit or is there something
else that should be set in our publication that we have missed?
Re: Updating stored procedure definitions Hilary Cotter
2/7/2007 8:45:49 AM
Suppose you set max text repl size to something larger, try for example

sp_configure 'max text repl size',131072
reconfigure with override

Could you possibly also post the schema of one of these problem procs here
so I can try a repro?

Note further that sp_addscriptexec allows you to run a script on all of your
subscribers deployed through a unc (i.e. not the ones deployed through ftp).
This might be a better option for you.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Updating stored procedure definitions Cerora
2/7/2007 9:02:00 AM
Thank you for your suggestions.
Unfortunately sp_configure 'max text repl size',131072 reconfigure with
override did not appear to work.
Rather than posting you one of the schemas of the stored procedures we
produced the same effect with a stored procedure containing multiple lines of
SELECT * FROM sysobjects for more than
1000 lines - commented out all except the last line. Using the ALTER
statement it was successful when the sp was not part of replication and if
the sp was run on the subscriber. Once added to replication it failed as
described previously.
Re: Updating stored procedure definitions Cerora
2/8/2007 4:51:00 AM
Another user with same problemm

AddThis Social Bookmark Button