Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Calling a function from a SP
Tue, Dec 15 2009 4:49 PMPermanent Link

"Jim Garrity"
I want to call a function previously created from a stored procedure.

I thought it would just be
declare X integer;
Set X = fnGetNextID ().

But that does not compile in the stored procedure.

Jim

Tue, Dec 15 2009 5:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jim,

<< I want to call a function previously created from a stored procedure.

I thought it would just be
declare X integer;
Set X = fnGetNextID ().

But that does not compile in the stored procedure. >>

Functions and procedures are a special beast - they cannot be created in a
procedure in which they are called later.  They have to exist before the
procedure can be compiled.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image