I suspect the error is at the end of this function, but I cannot check right now. If you can do it now, try to remove the last invocaton of SQLFreeStmt( at_sth, SQL_DROP ); at the end of this function, and tell me if this fixes your problem. > load_schema_map(): p. -- Pierangelo Masarati mailto:pierangelo.masarati@sys-net.it