Unsupported on-disk structure for file mydatabase.fdb

╄→гoц情女王★ 提交于 2019-12-11 13:19:29

问题


My old delphi 7 application was using devart Interbase driver to connect with mydatabase.fdb. When I migrated this application to delphi xe4, I installed latest version of devart interbase for delphi xe4. But with this version, I am getting following error:

Unsupported on-disk structure for file mydatabase.fdb

What is the cause of this error? How should I get rid from it?

I found the link: http://www.firebirdfaq.org/faq80/

2 reasons are mentioned there for possible causes for this error. But I think these are not applicable to me. Then why am I getting this error?


回答1:


This usually happens when you try to open an older database with a later version of Firebird. Have you updated your Firebird server? If so, you need to backup and restore the database. This will update the ODS so it matched your current Firebird server version.




回答2:


I found the solution of the error. When I installed DevartInterbase driver, default vendorLib was set to gds32.dll in dbxdrivers.ini file which is a dll for interbase database. When I replaced gds32.dll with fbclient.dll, it worked.

I referred following link from embarcadero: http://docwiki.embarcadero.com/Libraries/XE4/en/Data.SqlExpr.TSQLConnection.VendorLib



来源:https://stackoverflow.com/questions/18957235/unsupported-on-disk-structure-for-file-mydatabase-fdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!