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 > Passing server name to stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 11:54
victorNY victorNY is offline
Registered User
 
Join Date: May 2004
Posts: 2
Passing server name to stored procedure

Hi,

I have following stored procedure:
SELECT
...
FROM databasename@servername:tablename
WHERE
...

In my case I need to pass servername as parameter and use that parameter in FROM statement.
Is it possible? If it is then what should be a syntax of FROM statement?

Thanks,
Victor
Reply With Quote
  #2 (permalink)  
Old 05-14-04, 14:38
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
You are talking dynamic SQL - which is not supported. There are some work-arounds, but none are elegant.
__________________
Fred Prose
Reply With Quote
  #3 (permalink)  
Old 05-17-04, 06:55
jh1213 jh1213 is offline
Registered User
 
Join Date: Jul 2003
Location: Beijing China
Posts: 36
Use prepare sql of ESQL and 4GL
__________________
MSN:jianghua1213@hotmail.com
Beijing China
http://www.91talk.net
http://www.91talk.com
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