Hi I want to replicate my stored procedures to development environment (both servers are SQL server 2008) . but when I replicated my stored procedures to development database. DDL admin in published database is not able to modify the stored procedure. while modifying procedure error message comes " Procedure sp_MSreplcheck_publish, Line 16 Only members of the sysadmin or db_owner roles can perform this operation.". Alter permission from ddl admin are revoked automatically after replication. What should I do to given him alter permission to a user without elevation him to dbo.
How frequently you need to change the SP code? You could take help of EXECUTE AS in thsi case to do the same in order to avoid the user to take any privilege.
What are you benifitting by replicating the procedure? simply you can write a script to generate the proc script and schedule it to run on dev server.