×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Exporting Tables from FoxPro to AS/400 database.

Exporting Tables from FoxPro to AS/400 database.

Exporting Tables from FoxPro to AS/400 database.

(OP)
I am trying to export a table from FoxPro to AS/400 database.
I connect to the AS/400 through ODBC,and made a remote view to the Database in FoxPro.
I used SQLEXEC, and the normal FoxPro Replace command but no use the remote view in my FoxPro Database updates but the actual database which resides in the AS/400 does not.
.................
Any idea anybody???

RE: Exporting Tables from FoxPro to AS/400 database.

Try to use the Select and Insert Option like Using
SQL-server or SQL Sybase
But you have to create a Table first  and form
This table inside  AS400 you will take the data you
Need.

Or.

The old fashion  way I know is
Make the table DBF to ASCII format or TXT
With COPY TO  file.txt  SDF .    

The SDF parameter make the table to  Txt file
That way you can upload the data to AS 400
Whit the Utilities to export or import data  Form PC this
Software doesn’t came with  the AS400 you have to
Ask you vendor but remember  become the DBF to
TXT

RE: Exporting Tables from FoxPro to AS/400 database.

28775 wrote:
I (...) made a remote view to the Database in FoxPro.
I used SQLEXEC


This may be the source of the problem.  When you are using a remote view, do not use SQLEXEC against it; rather, use the normal Fox commands (insert, append, etc) on it.

SQLEXEC is used as an alternative to a remote view, where you send the commands directly to the server.

Robert Bradley

FoxDev - Visual FoxPro Development

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close