Compile sql file and dump into adm file