Make sure that the correct database files are attached to the selected instance of SQL Server and then run the program again. ...