Subject RE: [firebird-support] Select from stored procedure error w/ DBW
Author Rick Debay
Never mind. I remember I hit this before, and supposedly it's because
Firebird hates aliasing a stored procedure.

-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Rick Debay
Sent: Wednesday, June 24, 2009 3:49 PM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Select from stored procedure error w/ DBW

Why would this query return the error:

'Dynamic SQL Error SQL error code = -607 Cannot SELECT RDB$DB_KEY from a
stored procedure.'

SELECT
*
FROM
STORED_PROCEDURE pf
WHERE
NOT EXISTS (
SELECT 1
FROM TABLE_HX hx
WHERE hx.N = pf.N
)

FWIW, I'm using Database Workbench Pro v3.3.0

Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.