Home > Ask the SQL Server Experts > Michael Hotek Questions & Answers > Hiding the source code of a stored procedure
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Hiding the source code of a stored procedure

Michael Hotek EXPERT RESPONSE FROM: Michael Hotek

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 July 2003
I am trying to hide the source code for a stored procedure that will be used by a customer. The customer is an owner of the database where the SP resides. I have tried the 'with_encryption' clause, although as an owner of the database, the customer can easily decrypt the SP with source code that is out there on the Web. I am in need of a solution where my customer can access and use a SP that I write, although not view the source code.

>

My first question would be why. You cannot hide the database structure from them, therefore, they can figure out how to access their data directly if they choose to. If it is encrypted, they have performance problems, and you are not available, their entire environment comes to a screeching halt with you left on the hook as responsible for it because your code did not leave them any options. Your software copyright provides legal protection for your work, and the notice that you should have included with the software should have a clause preventing them from using your work. Additionally, encrypting objects can have your software rejected by many potential customers who do not allow such things to exist in their environments. I know that I do not and never will allow software to be deployed in a production environment that I run if it is encrypted or otherwise hidden, as it becomes nearly impossible to manage. Besides there not being any upside that I can possibly think of, there isn't any way that I'm aware of to accomplish this in SQL Server.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Michael Hotek
Applying LDF file to MDF without turning it to .BAK first?
Procedure for finding last modified info?
Migrating poorly designed database to new, normalized one
Displaying decimal places in SQL Server 2000
Creating a DTS package
Extracting data without strings converted to strange characters
Money data type conversion issue using DTS
Any way to alias a call to functions?
Repairing corrupt MDF files
In-place versus side-by-side upgrade

SQL Server Stored Procedures
SQL Server Mailbag: CALs, witnesses and unwanted changes
SQL Server Mailbag: Stored procedures, triggers and SSRS reports
Top tips and tricks for SQL Server database development
Top 10 SQL Server development tips of 2008
SQL Server trigger vs. stored procedure to receive data notification
SQL Server errors, failures and other problems fixed from the trenches
SQL Server and data manipulation in T-SQL
How to use SQL Server 2008 hierarchyid data type
SQL Server stored procedures tutorial: Write, tune and get examples
Check SQL Server database and log file size with this stored procedure

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
library  (SearchSQLServer.com)
trigger  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SQL Solutions - SQL Database Design
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts