Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Database Functions

Explorer ,
Mar 31, 2009 Mar 31, 2009
Hey all, I can't say I've ever had to use a stored database function. Does anyone know if there is some documentation or examples for using functions instead of stored procedures - or can I use a function the same way I would use a stored procedure?

Thanks!
425
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 31, 2009 Mar 31, 2009
The term database function is ambiguous.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 31, 2009 Mar 31, 2009
LATEST
In MS SQL, its under a database --> Programmability --> Functions --> Scalar-valued Functions.

I believe I found the solution, I can access the function via cfquery instead of cfstoredproc.

Example:
SELECT test, dbo.function_test(param1,param2) as myTest
FROM TestTable
WHERE test = 1
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources