Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Flowing Fount of Yak Knowledge
Premature Yak Congratulator
quote:Originally posted by sateesh.sqldbaHello every one, i got problem conversion failed date time from character string when i was run query it is working fine but when i put it in stored procedure it is sending this error Set @EndDateString = Cast((@MonthNumber) as varchar) + ''/'' + Cast(@DayBackOneWeekforReport as varchar) + ''/'' + Cast((Year(@TodaysDate)-1) as varchar) + '' 23:59:59.000''--Print @EndDateStringSet @EndDate = cast(@EndDateString as datetime)Error:conversion failed datetime from charcterstringat line 75Thank you In Advancesateesh