Greetings,
I am new to this and just wrote my first ever table valued UDF for SQL server 2005. When I run the query:
SELECT [Tenant Id], [Tenant Name], [Billed], [Description] FROM DLS_tenant_bill(12345, '1-nov-2019', '1-dec-2019', 100) ORDER BY [Tenant Id], [ORDER]
it returns all rows as requested but completes with an error:
Msg 102, Level 15, State 1, Line 9223372036854775807 Incorrect syntax near '1'. Msg 102, Level 15, State 1, Line 9223372036854775807 Incorrect syntax near '1'. Command completed successfully. (6125 results).
I would greatly appreciate any help in trying to figure this out. Many thanks.