Forum Discussion
SQL Server on Windows 10 or 11 with data on a secondary drive with bitlocker enabled
Have you tried delayed start option in sql server services?
- deepakgupta86Feb 28, 2022Copper ContributorYou can try couple of other options
1) Increase registry stratup delay for the sql services
2) use the same account to run sql services and enable bitlocker.- fdelaporteMar 01, 2022Copper ContributorThanks,
Unfortunately the SQL Server service won't start with my personal account. It has local admin rights, but that is an AAD account (no on premise AD), which is maybe the issue for SQL Server.
With the two minutes default delay for delayed auto-start, I am quite confident I am already logged-in when it starts. So, I do not expect increasing the delay will do. (My laptop power button is also a fingerprints reader and powering-up with a known finger causes it to automatically log-in once started.)
Still I have added this:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLSERVER]
"AutoStartDelay"=dword:000493e0
I will see if it helps- fdelaporteMar 02, 2022Copper Contributor
It changed nothing.
Actually the delayed auto-start can help, but only if doing a full reboot, not a shutdown and start.
When doing a shutdown and start, by default Windows do a "fast startup", which kind of restore a hibernation state, but logged-out (so no session preservation). This does not actually stop any Windows service (including MSSQLSERVER service), they are kept running in this process. So, they do not actually start on the boot after a shutdown: they are already started. This causes the delayed auto-start to have no effect. And the SQL Server service still loses its access to its data files in the process, thought not having been stopped at all.
So a workaround should be to disable Windows fast Startup (which is infamous for being regularly forced back upon us at major releases) and set the SQL Server service to have a delayed auto-start.
I will confirm later if that works.