To continue reading for free, register below or login
To read more you must become a member of SearchSQLServer.com
');
// -->

There is no documented facility for encrypting column data in SQL Server 2000. You can encrypt other elements of SQL Server, however, including:
- Login and application role passwords stored in SQL Server
- Any data sent between the client and the server as network packets
- Stored procedure definitions
- User-defined function definitions
- View definitions
- Trigger definitions
- Default definitions
- Rule definitions
If you're willing to get into the world of undocumented functions and such, then you might want to consider pwd_encrypt( ) and pwd_compare( ). You can use pwd_encrypt to store an encrypted value into a column. You will never know what the value is, nor can you view it. But you can compare values to it, such as in a WHERE clause, using the pwd_compare function. I do NOT recommend this approach!
Do you have comments on this Ask the Expert Q&A? Let us know.
|