Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 encrypting stored procedures

Author  Topic 

cognos79
Posting Yak Master

241 Posts

Posted - 2009-06-16 : 12:32:45
I have built a small properitary database and I want to encrypt the stored procedures, views, udf when i deploy it to another machine.

I see that using "with encryption" clause is not 100% foolproof.

Is there any other way to do it or any free third party softwares that does the job.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-16 : 15:05:07
http://www.sqlservercentral.com/articles/Security/freeencryption/1980/
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-16 : 15:13:38
Visakh, he doesn't want to encrypt the data, but the code for views, sp and functions.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-16 : 15:14:16
Maybe this is possible with database encryption, with sql server 2005 and later?


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

cognos79
Posting Yak Master

241 Posts

Posted - 2009-06-17 : 12:41:06
I see even sql server 2005 provides options to encrypt data not sps,udf's...

If I am wrong, please provide additional info.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-17 : 12:45:42
http://www.sqlservercurry.com/2008/02/how-to-encrypt-stored-procedure-in-sql.html
Go to Top of Page

cognos79
Posting Yak Master

241 Posts

Posted - 2009-06-17 : 13:02:43
"with encryption" clause is not reliable. It can be easily decrypted. I am looking for other options.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-17 : 13:18:30
quote:
Originally posted by cognos79

"with encryption" clause is not reliable. It can be easily decrypted. I am looking for other options.


can i ask why you need to encrypt body of procedure/ you can always restrict users from getting code by giving them only restricted permissions
Go to Top of Page

cognos79
Posting Yak Master

241 Posts

Posted - 2009-06-18 : 13:23:53
I am building a small database and when I sell it other people I do not want them to access the code.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-18 : 14:17:02
The SQL Server DBA will always have full access to the database.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

cognos79
Posting Yak Master

241 Posts

Posted - 2009-06-18 : 14:23:59
Is it possible to give db to the client by revoking access to stored procedures?
Go to Top of Page
   

- Advertisement -