【问题标题】:When Trying to Import Old Visual FoxPro Database into SQL receiving "Cannot find column -1"尝试将旧 Visual FoxPro 数据库导入 SQL 时收到“找不到列 -1”
【发布时间】:2010-07-29 01:36:24
【问题描述】:

我有大量的 Visual FoxPro db 文件,我正试图将它们导入一个空的 SQL 2008 Express 数据库。当我运行 SQL 导入和导出向导时,一切似乎都很好。当我到达映射部分时,我可以单击预览并查看所选 FP 表中的数据。当我点击 Edit Mappings 或 Next 我得到:

===================================
Column information for the source and destination data could not be retrieved.

"eqr_sellers" -> [dbo].[eqr_sellers]:

           - Cannot find column -1.
 (SQL Server Import and Export Wizard)
===================================

Cannot find column -1. (System.Data)

------------------------------
Program Location:

   at System.Data.DataColumnCollection.get_Item(Int32 index)
   at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
   at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)
   at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection mySourceConnection)
   at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

任何见解将不胜感激。

【问题讨论】:

    标签: sql-server-2008 importerror visual-foxpro foxpro


    【解决方案1】:

    有哪些数据类型?我过去使用的 ODBC 连接器不支持 Auto-Increment Integer 字段。

    【讨论】:

    • 嗯,这可能是它。所有表上的键都是整数,很可能是自动递增的。我实际上找到了一个可以为我导入的免费应用程序。它位于这里brothersoft.com/…
    猜你喜欢
    • 1970-01-01
    • 2013-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-09
    • 2021-11-13
    • 2020-04-13
    • 1970-01-01
    相关资源
    最近更新 更多