Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Copy Permissions for Non-DBO Stored Procedures

$
0
0

Hello,

I perused this forum and I've been all over the web with this. I'm attempting to "copy permissions" on stored procedures that are not in dbo schema, using snapshot replication. This results in a System.NullReferenceException, Object Reference Not Set to An Instance of An Object error. Followed by Version string portion was too short or too long.

I've seen some other folks post the same issue and seen this referenced on the Microsoft Connect site as Closed Won't Fix. https://connect.microsoft.com/SQLServer/feedback/details/431393/replicate-permissions-option-on-stored-procedure-in-non-dbo-schema-causes-snapshot-agent-to-crash

Surely, there has to be a solution to this by now!?! This was first noted in 2009. I am running SQL 2008 R2 Enterprise 64, SP3. What I have discovered in researching the issue, and testing, is that this is associated with the object not being part of the dbo schema. If I place the stored procedures in dbo, snapshot runs and the permissions get passed to the publication database.

Does anybody know if this has been addressed? Running a script at the end of the process is not optimal for this situation.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>