简体   繁体   English

将Delphi 5项目迁移到使用SQL Server 2008

[英]Migrate Delphi 5 project to using SQL Server 2008

I'm migrating an old delphi 5 process from SQL Server 7 to SQL Server 2008. 我正在将旧的delphi 5进程从SQL Server 7迁移到SQL Server 2008。

One TQuery component not find all the fields of a table. 一个TQuery组件找不到表的所有字段。 Using "Add all fields" I only get 5 of 25 fields. 使用“添加所有字段”,我只得到25个字段中的5个。

Any idea of how can I get all the fields? 关于如何获取所有字段的任何想法吗?

If you're still using TQuery , you're using the BDE (Borland Database Engine). 如果您仍在使用TQuery ,那么您正在使用BDE (Borland数据库引擎)。 There have been dozens of changes to SQL Server since D5 was released, including Unicode support and lots of datatypes being added. 自D5发布以来, SQL Server进行了许多更改,包括Unicode支持和要添加的许多数据类型。 It's highly unlikely that you'll be able to simply convert. 您几乎不可能进行转换。

If you're using a higher version (SKU) than Professional, you should have ADO components, and can possibly replace the BDE with them. 如果您使用的版本(SKU)高于专业版,则应该具有ADO组件,并且可以用它们替换BDE D5 Professional didn't include the ADO components; D5 Professional不包括ADO组件; they were sold separately (and fairly expensive, considering the cost of the D5 Pro upgrade from D4) and probably are no longer available. 它们是单独出售的(考虑到从D4升级D5 Pro的成本,价格相当昂贵),并且可能不再可用。 You might be able to still find third-party ADO components that will support D5 and SQL Server 2008 , though. 但是,您仍然可以找到支持D5和SQL Server 2008的第三方ADO组件。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM