duchovnick
Programmer
Hi,
I try to work with functions but i end by working with errors.
The following is the code to make a function
and the following is the code calling that function:
i couldnt run the above code because during compilation i recieved the following
error message:
Thanks a lot !
I try to work with functions but i end by working with errors.
The following is the code to make a function
Code:
CREATE FUNCTION aaa (@myDigit INTEGER)
RETURNS INTEGER
AS
BEGIN
RETURN @myDigit
END
Code:
CREATE PROCEDURE bbb @hisDigit INTEGER
AS
BEGIN TRANSACTION
PRINT aaa(@hisDigit)
COMMIT
error message:
Can anyone tell me what my error is?Server: Msg 195, Level 15, State 10, Procedure bbb, Line 4
'aaa' is not a recognized function name.
Thanks a lot !