February 14, 2006 at 2:52 pm
Hi,
I created this function, but when I tried to use it in a stored procedure, it says the function is not a recognized function. I created a dummy function to test whats wrong. It throws the same error. This is the dummy test function.
CREATE FUNCTION [dbo].[fn_test] (@xyz INT)
RETURNS INT
AS
BEGIN
RETURN @xyz
END
This is how I tried to use it SELECT @i = fn_test(10). This is the error message Error 195 'fn_test' is not a recognized function name. Can any one tell me what am I doing wrong.
Thanks.
February 14, 2006 at 2:53 pm
You have to preface the function in the select with dbo. An example is:
SELECT @i = dbo.fn_test(10)
February 14, 2006 at 3:00 pm
Thanks.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy