I need some help here
- From: "Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 05:35:02 -0700
Hi,
I am storing dates in sql server in this format
2005-04-13 22:22:16.353
My asp.net app is passing the date as string like this 4/13/2005
to the foll sp
create proc test(
@date varchar(11))
as
begin
select name from table
where
LEFT( CONVERT(varchar, DateEnt, 120), 10)= @date
but that doesn't work only if I pass it as 2005-04-13 22:22:16.353. I tested
the proc in sql server
exec test '4/13/2005' but this doesn't work.
exec test '2005-04-14' this works.
Please advice.
Thanks
Saif
.
- Follow-Ups:
- Re: I need some help here
- From: Joseph Byrns
- Re: I need some help here
- Prev by Date: Re: Dataset - determine if no records are returned
- Next by Date: Re: Style *** Asp.Net
- Previous by thread: Dataset - determine if no records are returned
- Next by thread: Re: I need some help here
- Index(es):