我有很多Visual FoxPro数据库文件,我试图导入到一个空的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)
任何见解都将受到赞赏。
答案 0 :(得分:0)
有哪些数据类型?我以前使用的ODBC连接器不支持自动增量整数字段。