← Back to Knowledge Base

KB #240133: sp_n_codelvl shows Encrypted when database Offline and Plain when Online

⏱️ 2 min read

Type:

Known Issue. Minor.

Summary:

sp_n_codelvl is an optional Encryptionizer SQL Stored Procedure which can report the encryption state of attached databases. In some cases, the report shows the encrypted database as ENCRYPTED when Offline as expected, but shows PLAIN when the encrypted database is ONLINE.

Additional Information:

sp_n_codelvl is a reporting diagnostic and is only one of multiple methods that you can determine the encrypted state of a database.

This reporting issue is not at all related to any problems with the proper transparent processing of encrypted databases. The databases when online or offline remain encrypted on disk at all times. All activity to disk will be encrypted to the databases when written.

This issue has been reported but is rare and under investigation. At this time, there is no timeline for resolution.

If you are experiencing this reporting issue and would like a method to determine  the encryption state of an attached database, you can also confirm the encryption state with these other methods as described in this KnowledgeBase article:

KB #240101: Test the encryption state of a SQL database or backup

 

If you experience this sp_n_codelvl issue prior to a fix having been released, please complete a support request on our support page. We may ask some questions.

Support Request

Related Topics:

KB #240101: Test the encryption state of a SQL database or backup

KB #240040: Cannot start SQL Server or encrypted database is inaccessible when profile is on a remote machine

KB #240102: Encrypted Databases not accessible

Was this article helpful?

Related Articles

KB #240093: Cannot Restore from an encrypted SQL backup on a Compressed volume

  Type: Known Issues Summary: Creating an encrypted SQL backup on a compressed drive appears…

KB #240107: SQL Maintenance Plans do not delete encrypted database backup or transaction log backup files

Type: Fixed Summary: You have Configured/Secured your SQL Server instance with these options: Secured with…

KB #240072 : Log Shipping with Encryptionizer (driver v2008.401.40 and earlier)

Type: Tip Summary: Log Shipping is supported with the procedure outlined below, and only with…

Still need help?

Our support team is here to assist you.

NetLib Security
AI Assistant · Online
Hi! I'm the NetLib Security assistant. I can answer questions about our encryption solutions, HIPAA compliance, Encryptionizer, and more. How can I help you today?