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 > Insert Select With Remote DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-06, 11:27
DB Guy DB Guy is offline
Registered User
 
Join Date: Mar 2006
Location: New Jersey
Posts: 10
Insert Select With Remote DB

insert into local_table
select * from remote_table;

Any help here would be appreciated. Assume that sqlhosts is set up
and I have authority to access the remote server. I am running dbaccess
on the local server. what needs to be done to point to remote_table as far as syntax goes. Using IDS 7.31.

Thanks,
Reply With Quote
  #2 (permalink)  
Old 06-09-06, 11:23
DB Guy DB Guy is offline
Registered User
 
Join Date: Mar 2006
Location: New Jersey
Posts: 10
I have the answer... create a synonym pointing to remote database

thanks
Reply With Quote
  #3 (permalink)  
Old 06-09-06, 11:47
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
here is the syntax

select * from databasename@informixservername:tablename

Cheers
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