ERROR_SQL-8-D: Attempt to Write a Readonly Database

How to resolve when "ERROR_SQL-8-D:attempt to write a readonly database" error is obtained when running Syncad.bat file ?

Sample of the error:



Resolution: Run command prompt as Administrator