Solved

Database Convert -- AS400 to Microsoft SQL server ?

Posted on 2013-02-04
5
702 Views
Last Modified: 2013-02-20
Do you have a generic script to automatically take the entire AS400 database (or one table) and convert it to a new Microsoft SQL server database (or one table) or export to CSV/etc files ?
0
Comment
Question by:finance_teacher
5 Comments
 
LVL 50

Expert Comment

by:Lowfatspread
Comment Utility
have you considered using import  or replication?

which versions of sql server and as400 ?

what are you actually trying to achieve?

normally you would just use your database modelling package to generate a schema for a "new/different" database system....
0
 
LVL 32

Accepted Solution

by:
shalomc earned 125 total points
Comment Utility
There is an AS400 command that dumps the contents of a table to CSV.  
It is called CPYTOIMPF. You will then have to copy the csv file over to a PC either via a shared disk, or via FTP.
0
 
LVL 34

Assisted Solution

by:Gary Patterson
Gary Patterson earned 125 total points
Comment Utility
Here's a nice method.  Requires you configure the DB2 database as a linked server, so you need a connection to the source database:

http://www.mssqltips.com/sqlservertip/1896/dynamically-import-data-from-a-foreign-database-using-a-sql-server-linked-server/

IF you don't have a connection to the source database, post back and we can discuss other options.

- Gary Patterson
0
 
LVL 15

Assisted Solution

by:Aaron Shilo
Aaron Shilo earned 125 total points
Comment Utility
Open the SQL Server Business Intelligence Development Studio and create a new SSIS project. Add a data pump task. Add a source object as being the AS/400 and a destination as being the SQL Server. Select the objects to copy. When you run the package the data will be copied to the SQL Server.
0
 
LVL 27

Assisted Solution

by:tliotta
tliotta earned 125 total points
Comment Utility
Be aware that there might be various elements of the AS/400 'database' that have no corresponding elements in SQL Server. If you are converting a SQL database, it might be more straightforward than if it's a 'native' database.

Tom
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now