I decided to move My database files from one disk to another. Then I ran code to change the location of the database.
HOD200203 ALTER DATABASE MODIFY FILE (NAME = HOD200203 , FILENAME = 'J:\OptionDB\HOD200203.mdf ');
HOD200203 ALTER DATABASE MODIFY FILE (NAME = HOD200203log , FILENAME = 'J:\OptionDB\HOD200203log.ldf ');
It moved and ready to work, but all the databases say "recovery pending". If I try to open one, I get an error that says The database HOD200301 is not accessible. (ObjectExplorer).
How can I fix this? Microsoft SQL Server 2014 SP2, v.12.0.5000.0