← 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 #240101: Test the encryption state of a SQL database or backup

Type: Information Summary: There are several methods of determining whether SQL Database files are encrypted.…

KB #240053: SQL Server or encrypted databases not accessible after configuring Encryptionizer

Some explanations of why SQL Server may not start after installing and configuring Encryptionizer for…

KB #240124: Using Encryptionizer for SQL on a Cluster

Type: Information Summary: Encryptionizer for SQL is cluster safe, but the installation and configuration are…

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?