Is it the same as executing a stored procedure?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, a SQL function must be referenced with its schema name and must be part of the appropriate part of a SELECT statement. For scalar-valued functions this is something like
SELECT dbo.MyLookupFunction(12). For a table-valued function,SELECT columnA, columnB, columnC FROM dbo.MyTableLookupFunction(12). See CREATE FUNCTION (Transact-SQL) and Executing User-Defined Functions (Database Engine) for more information about functions in SQL.The java code is, of course, the same as for any other query.