Редагувати

Поділитися через


Protecting Your SQL Server Intellectual Property

Applies to: SQL Server

Software developers often ask how to distribute their SQL Server data application to customers, and yet prevent customers from analyzing and deconstructing their application. The key principal here, is that protecting your intellectual property, is a legal issue, and the protection rests in your license agreement. When SQL Server is installed on a computer that others administer, you inherently lose some aspects of control.

Nature of the Problem

The owner/administrator of a computer can always access the instance of SQL Server that is installed on that computer. If you deploy your application to a customer's computer, since they are administrators, they can connect to the SQL Server as members of the sysadmin fixed server role. This includes the ability to grant permissions, manage backups (including restoring backups to other computers), decrypt and move data files, etc. For more information, see Connect to SQL Server When System Administrators Are Locked Out.

Stored procedures and data can be encrypted, but the data structure cannot be hidden and users who can attach a debugger to the server process can retrieve decrypted procedures and data from memory at runtime.

If the clients are not administrators on the computers, you can prevent access by the clients. You can use Transparent Data Encryption to encrypt the data files, you can encrypt backups, and you can audit the actions of all users. But SQL Server administrators and admins of the SQL Server computer can reverse these actions.

Solution

There are various ways to configure client data access without installing SQL Server on your clients computer. The easiest is probably using Azure SQL Database so the clients are not admins, perhaps in combination with Always Encrypted. For more information about getting started with SQL Database, see What is SQL Database? Introduction to SQL Database.

You can also host a SQL Server on your own network, and allow clients to access data through your network, either directly or through a web application.

See Also

Security Center for SQL Server Database Engine and Azure SQL Database
Securing SQL Server