I am trying to write Stored Procedure for getting records for current date, but I am not able to do so. I have created one for record display with latest first and trying to modify the same.
Here is the code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_SELECTTODAYRECORDS_Test]
AS
BEGIN
SELECT col_Source as 'country',
col_FirstName +' '+col_LastName as 'name',
description as 'state' ,
col_county
from tbl_Info_Test, tbl_CountySite
where col_Pic is not null
and col_Source = sourcecountry
and ISDATE(col_BookDate) = 1
order by CONVERT(datetime, col_BookDate) DESC
END