1

Let's say I have a SQL instance with 10k databases that I want to enable TDE using different certificates for each database. Is there any kind of limit to creating certificates on master database? Will I be allowed to create 10k certificates or more?

Any help is appreciated. Thanks

  • SQL Server, yeah? – Philᵀᴹ Feb 25 at 19:31
  • Yes! SQL Server 2017. – Xosahey Feb 25 at 19:50
  • 1
    As someone who has managed an instance with between 9k and 10k databases without TDE, I feel compelled to urge you to not put 10k databases on a single instance in the first place. – alroc Feb 25 at 20:47
0

Microsoft seems not to mention a specific limit for keys or certs, but for databases it is 32767 user databases per instance.

If you consider the TDE key hierarchy all databases have their own DEK, so it's naturally to assume that at least one (and with rollover) at least two keys are possible. (It would not make sense to specify a maximum for databases if they can't use all features like a DEK).

The DEKs might all be encrypted with a single database master certificate (or multiple, but you would not have one for each DB. But even if you would, since those are just stored in master database tables, I would not see a problem (besides heavy CPU usage on startup).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.