?
Solved

Replicate Encrypted Stored Procedures

Posted on 2011-02-14
2
Medium Priority
?
412 Views
Last Modified: 2012-05-11
I have several databases that have encrypted stored procedures.  I am using snap shot replication for those databases but everything but the encrypted stored procedures can be published.  Is there a type of replication or any way to replicate encrypted stored procedures?
0
Comment
Question by:bnussbaum
2 Comments
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 1000 total points
ID: 34887989
hi

You can't publish encrypted objects. You will need to decrypt the stored procedure and publisher the unencrypted version.

--------------------------------------------------------------------------------
0
 
LVL 13

Assisted Solution

by:devlab2012
devlab2012 earned 1000 total points
ID: 34888388
You cannot publish the encrypted stored procedures. See the documentation at MSDN:

http://msdn.microsoft.com/en-us/library/ms187926.aspx

It states that:

ENCRYPTION
Indicates that SQL Server will convert the original text of the CREATE PROCEDURE statement to an obfuscated format. The output of the obfuscation is not directly visible in any of the catalog views in SQL Server. Users who have no access to system tables or database files cannot retrieve the obfuscated text. However, the text will be available to privileged users who can either access system tables over the DAC port or directly access database files. Also, users who can attach a debugger to the server process can retrieve the decrypted procedure from memory at runtime. For more information about accessing system metadata, see Metadata Visibility Configuration.

This option is not valid for CLR procedures.

Procedures created with this option cannot be published as part of SQL Server replication.

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question