Precious Ideas

The last line says it all, though it might offend a few of you. Jeremiah Peschka wrote agreat piece on encrypted stored procedures and telling companies they shouldn't bother. I agree, the arguments given in the comments notwithstanding.

I have heard this argument over and over, from different industries, and in every case where someone has broken down their code, you find it really isn't that special. There's no super secret way to accomplish most anything you're going to put into a stored procedure on a database server. We have to know how things work from a logic standpoint so that we can be sure that the correct data is moving to the correct place. If we know the logic, we can easily build code that does the same thing ourselves. We just don't want to. We buy software so that we don't have to spend the time coding it ourselves.

What about support issues? I have heard this argument quite a few times as well. The answer here is to deal with it administratively. Spell is out in the contract that customers who changes stored procedure will be charged for support issues caused by the change. Heck, everything else is disclaimed or handled in the EULA, why not this?

IMHO, this "feature" ought to just be removed from SQL Server. There's no good reason to encrypt a stored procedure, especially with the SQLCLR available for any of those truly top secret, complex algorithms you think you have.

Steve Jones

The Voice of the DBA Podcasts

The podcast feeds are available at sqlservercentral.mevio.com. Comments are definitely appreciated and wanted, and you can get feeds from there.

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.