If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > read from tables in 1 informix database server and write into another

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-07, 11:10
sjalis sjalis is offline
Registered User
 
Join Date: Nov 2007
Posts: 1
read from tables in 1 informix database server and write into another

Hi,

I have some tables which are in a database of 1 informix database server (say prodServer)

I need to fetch data from tables in the prodServer and write into tables in another informix database server (say QAServer).

The 2 servers have database connectivity with each other.

My sql scripts will be in the QAServer.

I would greatly appreciate your help. Thank you.

sjalis
Reply With Quote
  #2 (permalink)  
Old 11-09-07, 12:51
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
insert into table table_zyx
select * from db1@prodServer:table_xyz

If you need some logical process on data transfered from prodSever, maybe you need write a SPL (Stored Procedure) and work with cursors, variables, ifs,foreachs,....
More about SPL, read the Informix SQL Syntax Manual...
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On