How can I select 12/20/2008 in where clause of sql?
where
The server is SQL server 2005.
select * from tblErrorLog where errorDate = \'12/20/2
You don't say which database you are using but in MS SQL Server it would be
WHERE DateField = {d '2008-12-20'}
If it is a timestamp field then you'll need a range:
WHERE DateField BETWEEN {ts '2008-12-20 00:00:00'} AND {ts '2008-12-20 23:59:59'}