Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 DateTime Parameter Problems

Author  Topic 

gavinjb
Starting Member

34 Posts

Posted - 2010-09-15 : 03:45:23
Hi,

I am trying to create a report with a DateTime Parameter that allows Null and if null is passed then it will allow any value in the Date Field, only problem is I cant find anyway to do this with a datetime parameter with a string I would do

Field Like @Parm + '%'

How can I do this with a DateTime Paramter.

Thanks,


Gavin,

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-09-15 : 04:49:09
WHERE (Col1 = @Param1 OR @Param1 IS NULL)



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

gavinjb
Starting Member

34 Posts

Posted - 2010-09-15 : 07:14:29
Thanks, that worked
Go to Top of Page
   

- Advertisement -