Quantcast
Channel: Questions in topic: "variables"
Viewing all articles
Browse latest Browse all 49

DB2 UDB to SQL Server 2012 using SSIS

$
0
0
Hello: I am new to SSIS and I desperately need your help! I need to move 10,000 tables from a DB2 database (9.7.4) to SQL Server 2012 along with their indexes (if possible) as well as data. I have figured out how to migrate the tables using data flow and OLE DB Source / Destination. It works great but at this rate it will take me forever to migrate thousands of tables. Does anyone know how to do this using a script or variables to pass the table name into SQL ? perhaps a loop of some kind. There is one issue that is a problem and that is the data type of datetime needs to be mapped to datetime2 in SQL Server - otherwise the data load portion fails (I have already tested this). This is easy to fix when I move one table at a time, but somehow I need the package to do that for me if I am able to migrate thousands of tables. The SQL on DB2 to grab the table name is: SELECT TABNAME FROM SYSCAT.TABLES WHERE TABSCHEMA = 'PSADMIN' and type = 'T' Any suggestion would be GREATLY appreciated.

Viewing all articles
Browse latest Browse all 49

Trending Articles