I am using SQL Server 2008 and Microsoft Visual Studio 2008. I have a database table which contains a column for data and time as string. In that column I have both date and time. In my application I have to select date and based on that dateI. I have to get the data from table and show data grid view control.
So I want to compare only with date.
And I referred the below link. But it is not working for me.
Use of SUBSTRING function in where clause
I tried this query, but it's not working for me.
SELECT *
FROM tAerator
WHERE SUBSTRING(fldAEdnt, 0, 10) = '07-07-2015'
Can you please give me way to solve this problem?
Thanks & regards