uninstalling Microsoft Visual C++ 2017 Redistributable (86x) and (64x) and reinstalling SQL Server Database services worked for me.