Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SQL Server Import and Export Wizard Fails with Unknown type 129

$
0
0

I’m having a problem with Column Type mapping in the SQL Server Import and Export Wizard. The source database is DMSII the target is MSSQL 2008 R2. The issue is there are several columns that have a type of ‘129’. I know I can use the drop down in the Column Mappings dialog to change this to varchar (and that works) but if the database has many tables with many columns of type ‘129’ then manually changing the type is very  time consuming.  I tried adding the conversion to the Mapping File (129 -> DT_STR  in MSSQLToSSIS10.XML) but Column Mappings dialog still show the type of ‘129’. If I try to continue, the Import fails with a SQL syntax error ("Incorrect syntax near '129'."). 

My question is: How do I automatically change the 129 to varchar?

Note: This problem does not occur in SQL Server 2012.

To refine my question…

The “Column Mappings” dialog is showing “129” for the type. It should be “varchar”.

This is causing the SQL “Create Table” statement to fail.

If I manually change 129 to varchar everything works fine.

How do I get SQL Server Import and Export Wizard to recognize type 129 as varchar and use varchar on the Column Mappings Dialog (and by extension the Create Table statement) without manual intervention?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>