find out sqlapi error