Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting Tables from FoxPro to AS/400 database.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to export a table from FoxPro to AS/400 database.<br>I connect to the AS/400 through ODBC,and made a remote view to the Database in FoxPro.<br>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.<br>.................<br>Any idea anybody??? <br>
 
Try to use the Select and Insert Option like Using <br>SQL-server or SQL Sybase<br>But you have to create a Table first&nbsp;&nbsp;and form<br>This table inside&nbsp;&nbsp;AS400 you will take the data you<br>Need.<br><br>Or.<br><br>The old fashion&nbsp;&nbsp;way I know is <br>Make the table DBF to ASCII format or TXT<br>With COPY TO&nbsp;&nbsp;file.txt&nbsp;&nbsp;SDF .&nbsp;&nbsp;&nbsp;&nbsp;<br><br>The SDF parameter make the table to&nbsp;&nbsp;Txt file<br>That way you can upload the data to AS 400<br>Whit the Utilities to export or import data&nbsp;&nbsp;Form PC this <br>Software doesn’t came with&nbsp;&nbsp;the AS400 you have to<br>Ask you vendor but remember&nbsp;&nbsp;become the DBF to <br>TXT<br>
 
28775 wrote:<br><font color=blue>I (...) made a remote view to the Database in FoxPro.<br>I used SQLEXEC</font><br><br>This may be the source of the problem.&nbsp;&nbsp;When you are using a remote view, do not use SQLEXEC against it; rather, use the normal Fox commands (insert, append, etc) on it.<br><br>SQLEXEC is used as an alternative to a remote view, where you send the commands directly to the server. <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top