Please help. This is my code. It brings back nothing. But if I hard code the date as '03/28/2004' it works!
declare @sBeginSunday smalldatetime
set @sBeginSunday = GetDate()-@@DateFirst+1
print @sBeginSunday
SELECT * FROM CRM_MDB...broadcasts
WHERE cast(AirDate as smalldatetime) = @sBeginSunday
Exams Passed: 70-152, 70-175, 70-176, 70-100
declare @sBeginSunday smalldatetime
set @sBeginSunday = GetDate()-@@DateFirst+1
print @sBeginSunday
SELECT * FROM CRM_MDB...broadcasts
WHERE cast(AirDate as smalldatetime) = @sBeginSunday
Exams Passed: 70-152, 70-175, 70-176, 70-100