Hi
I am attempting to migrate a Sybase ASA database to SQL Server using the 'SQL Import and Export Wizard' within Visual Studio 2019. I am able to run the wizard and create a package but the datatype mappings are not correct, e.g. datetime is mapped to smalldatetime. I have created two new mapping files (NetODBCToSSIS10.xml and NetODBCToMSSQL.xml) but I have been unable to get the wizard to recognize the new files.
I am using the following settings in the wizard:
- Data source: DSN = Sybase DSN (created using the 'SQL Anywhere 17' ODBC driver)
- Destination: MS OLE DB Provider for SQL Server
- Copy data from one or more tables or views
- All tables are displayed but the datatype mappings are not correct so I am unable to import the data.
The Wizard displays a dialog showing the following:
[Source Information]
Cannot locate the mapping file to map the provider types to SSIS types
[Destination Information]
Destination Location : localhost
Destination Provider : SQLOLEDB
Mapping file (to SSIS type): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\MappingFiles\MSSQLToSSIS10.XML
[Conversion Table]
SSIS conversion file: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\binn\DtwTypeConversion.xml
I have tried modifying the 'SourceType' at the start of the mapping files to include 'Sap.Data.SQLAnywhere.SAConnection' and 'System.Data.Odbc.OdbcConnection' but it is not found.
The following asks a similar question but there is no satisfactory response:
https://social.msdn.microsoft.com/Forums/en-US/dfce5ec6-c862-416f-b06d-eb6078e9958b/how-to-add-a-new-mapping-file?forum=sqlintegrationservices
Please let me know what I need to do to get the new mapping files recognized.
Regards,
Richard