Dear Cordrutza,
ScottM directly answered the question you posed, quite well.
A User Defined Function is one that is built in SQL Server by someone ... whether it was you or a dba. It would not be a built in function.
What Scottm was trying to explain is that if you have a User Defined Function that already exists in SQL Server you call it in a SQL Expression and pass any expected parameters.
A parameter in this context is not a Crystal Parameter, but the "value(s)" expected by the User Defined Function. If you do not know the values expected by the Function, you need to speak to your DBA before trying to use it in Crystal.
A User Defined SQL Server Function is called from a SQL Expression you create in Crystal and has the syntax of:
functionowner.functionname(paremetersincommadelimtedlist)
You would need to:
Know the owner of the function and the function anme, usually dbo but can be others so check with your dba.
Know the parameters that the function takes. For Example, here is a function that I use:
dbo.dhms(Table.FieldWithSeconds)
This formats any field for me in a DD:HH:MM:SS style string (that is days, hours, minutes, and seconds).
Make sure you have EXECUTE rights on the function.
If I were you, I would speak to your DBA or someone knowledgeable about your database and the purpose of any User Defined Functions in your database and the arguments (parameters) they expect.
Regards,
ro
Rosemary Lieberman
rosemary-at-microflo.com,
Microflo provides expert consulting on MagicTSD and Crystal Reports.
You will get answers more quickly if you read this before posting: faq149-3762