NauticalGent
Ignore List Poster Boy
- Local time
- Today, 17:16
- Joined
- Apr 27, 2015
- Messages
- 6,762
Good morning AWF,
With what began in this thread, I attempted my first TVF and although it partially works, I cannot figure out what I am doing wrong.
The name of the TVF is dbo.TVF_DashBoard and the only parameter is @CompDate (datetime) and I have the default value set to NULL.
I call it with a Pass-Through Query and if I put an actual date (SELECT * FROM dbo.DashBoard('2020-04-10'), it returns the correct number of records. However if I want to see all the records with a NULL value (SELECT * FROM dbo.DashBoard(default), it returns no records. I have tried NULL,ISNULL, IS NULL - I either get the same results or an error.
I am using AC2013 with an SQL Server BE v17.4
Any ideas?
With what began in this thread, I attempted my first TVF and although it partially works, I cannot figure out what I am doing wrong.
The name of the TVF is dbo.TVF_DashBoard and the only parameter is @CompDate (datetime) and I have the default value set to NULL.
I call it with a Pass-Through Query and if I put an actual date (SELECT * FROM dbo.DashBoard('2020-04-10'), it returns the correct number of records. However if I want to see all the records with a NULL value (SELECT * FROM dbo.DashBoard(default), it returns no records. I have tried NULL,ISNULL, IS NULL - I either get the same results or an error.
I am using AC2013 with an SQL Server BE v17.4
Any ideas?