I'm trying to run the stored procedure below
(
@StartDate varChar(10)
)
As
SELECT * FROM Messages WHERE EntryDate > CONVERT(smalldatetime,@StartDate,103) OR Remain = -1
/* set nocount on */
return
Yet whenever I run it I get all results where Remain = -1 regardless of EntryDate
I've never used CONVERT before so it's probably got something to do with that.
Any help will be greatly appriciated.
Regards
Dazzer
(
@StartDate varChar(10)
)
As
SELECT * FROM Messages WHERE EntryDate > CONVERT(smalldatetime,@StartDate,103) OR Remain = -1
/* set nocount on */
return
Yet whenever I run it I get all results where Remain = -1 regardless of EntryDate
I've never used CONVERT before so it's probably got something to do with that.
Any help will be greatly appriciated.
Regards
Dazzer