
- Forum
- Database
- SQL Server
- Problem with queries with DATETIME
Problem with queries with DATETIME
This is a discussion on Problem with queries with DATETIME within the SQL Server forums, part of the Database category; Hi, i have a question related to DateTime date type. 1. how can i retrieve rows related to particular date. ...
-
10-08-2004, 08:33 PM #1
- Join Date
- Apr 2004
- Answers
- 18
Problem with queries with DATETIME
Hi,
i have a question related to DateTime date type.
1. how can i retrieve rows related to particular date.
i tried using the following statement but im getting syntax error.
what is wrong in above procedure?Create procedure opentasks
{
@activedate as datetime
}
AS
Select Count(*) from tasks where activedate = @activedate
GO
can anyone help me out
Thanks in advance
-
Re:Problem with queries with DATETIME
what is the data type for activedate
-
10-09-2004, 03:51 AM #3
- Join Date
- Apr 2004
- Answers
- 18
Re:Problem with queries with DATETIME
datetime
-
Re:Problem with queries with DATETIME
try this ....
Create procedure opentasks
@activedate as datetime
AS
Select Count(*) from tasks where activedate = @activedate
GO
-
Sponsored Ads

Reply With Quote





