Mike,
Thanks. I have now got around to trying this but on running the query it had the following errors -
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 24 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 25 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 26 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 29 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 30 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure LCReturnDCDate, Line 31 [Batch Start Line 7]
'trim' is not a recognized built-in function name.
Msg 15151, Level 16, State 1, Line 62
Cannot find the object 'LCReturnDCDate', because it does not exist or you do not have permission.
(0 rows affected)
(0 rows affected)
(1 row affected)
(1 row affected)
Completion time: 2025-02-10T11:52:59.9918997+00:00
The option to choose the Sample Darwin Core Date then does come up in the Report Wizard in Recorder but when selected there is an error which says 'Cannot find either column "dbo" or the user-defined function or aggregate "dbo.LCReturnDCDate", or the name is ambiguous.'
Phil