|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Thursday, April 25, 2013 3:06 PM
Points: 432,
Visits: 102
|
|
as mentioned in a prior comment, the answer to the question is wrong!! Try runing this and you'll see a 2/1/09 value....
create table #a (InsertedOn datetime) insert into #a values ('20090131'); insert into #a values ('01/31/09 23:59:59.999'); insert into #a values ('01/31/09 12:59:59.999'); insert into #a values ('20090131'); insert into #a values ('20090131'); SELECT [InsertedOn] FROM #a WHERE [InsertedOn] BETWEEN '20090131' AND '20090131 23:59:59.999' drop table #a
Dennis Parks MCSE, MCDBA, MCSD, MCAD, MCTS
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 8:48 AM
Points: 313,
Visits: 165
|
|
in the question never showed an implicit date time conversion, therefore you can not require that condition as granted. Your question is bad formulated or you are trying to trick (fool) people.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 8:48 AM
Points: 313,
Visits: 165
|
|
in the question never showed an implicit date time conversion, therefore you can not require that condition as granted. Your question is bad formulated or you are trying to trick (fool) people.
|
|
|
|