Solved

Stored procedure with encryption in SQL server

Posted on 2013-01-23
2
492 Views
Last Modified: 2013-01-24
Hi

If I create a stored procedure with encryption then I can not see the proc's definition either by using sp_helptext or by right clicking on the proc and generate the script.

Is there any way to generate the script for encrypted stored procedure?

If the answer is no, then while we give build for testing then we need to save the proc's definition in the hard disk and if that file is deleted from the hard disk there is no way to get the definition of proc (even if the deleted file is not recovered from any software).

So the encrypted procedure needs careful handling in terms of storage. Is my understanding correct?

Please advice.

Regards
Karan Gupta
0
Comment
Question by:KaranGupta
2 Comments
 
LVL 5

Accepted Solution

by:
RehanYousaf earned 250 total points
Comment Utility
I believe so and for confirmation you can check the following link
http://blog.sqlauthority.com/2008/11/01/sql-server-stored-procedure-with-encryption-and-execution-plan/
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
Comment Utility
>Is there any way to generate the script for encrypted stored procedure?
short answer: no. at least not from sql server directly

>and if that file is deleted from the hard disk there is no way to get the definition of proc
you may use sourcesafe + backup etc ...

now, the "long" answer.
you may be able to decrypt the stored procedures nevertheless:
http://stackoverflow.com/questions/7670636/how-to-decrypt-stored-procedure-in-sql-server-2008
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now