Source: Using Own Icon In the Application ( .exe) | VFP Programming Tips
Please add
Read Events at the last line of your code.
When I run my app as an EXE it just flashes and then dissapears.
Source: SQL server databases stuck in restoring state – Database Administrators Stack Exchange
In my Case following works
RESTORE DATABASE [DataBase Name] WITH RECOVERY