I have to premit that i am a programmer, and i am trying to learn a bit about DBA even if i don't have the same background. I am trying to understand what security provide, and how to use, encryption of data at rest, on SQL Server.
My question is, how that encryption will protect data in case of unauthorized access of the machine that host the SQL Server instance? My guess is not at all.
I mean, assume SQL Server run on a virtual machine placed into a datacenter, and "connected" to internet. If an attacker will gain control of the virtual machine, then i think that data at rest protection can do very little.
In fact, the attacker can, gained admin privilege (as OS user), reset SQL Server credential and log in as 'sa', then even if the SQL Servr file are normally encrypted he can export them in plain text.
In such scenario is there any way to secure SQL Server or in case of breach at OS level the SQL Server is to be considered "lost"?