SyntaxFix
Write A Post
Hire A Developer
Questions
Date can be compared in sqlserver using string comparision: e.g.
DECLARE @strDate VARCHAR(15) SET @strDate ='07-12-2010' SELECT * FROM table WHERE CONVERT(VARCHAR(15),dtInvoice, 112)>= CONVERT(VARCHAR(15),@strDate , 112)