我有一箇舊的AS/400系統在星期三脫機,我一直在嘗試將所有數據導入到SQL Server數據庫中用於備份現在一個星期,但我遇到麻煩了。將數據從AS/400 DB2導入到SQL Server數據庫中
SQL Server安裝了IBM System i Access for Windows,以及安裝了DB2OLEDB(Microsoft OLE DB Provider for DB2)。我曾嘗試將這兩個提供程序與SQL Server導入和導出嚮導一起使用,雖然我成功創建了連接並找到了正在查找的數據,但兩個提供程序都無法處理數據轉換。 DB2OLEDB將自動定位任何基於DECIMAL的字段,但這就是它。它不能自動查找和轉換CHARACTER NOT NULL字段,這是大部分字段。下面是我得到的錯誤,當我嘗試進口:
Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider.
最常見的錯誤列:
- Column "[column]": Source data type "CHARACTER" was not found in the data type mapping file.
有在AS/400表十萬,人工手動腳本了這一點絕對不是一種選擇。
有沒有更簡單的方法?有什麼地方我失蹤了嗎?
你檢出了你的映射文件嗎?看看http://msdn.microsoft.com/en-us/library/gg163937(v=bts.70).aspx – NealB 2012-07-30 19:29:27