Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 text date and text time field

Author  Topic 

icw
Constraint Violating Yak Guru

378 Posts

Posted - 2010-08-04 : 09:03:05
Hi
I know how to cast (textdate as datetime)
but I now have a text date field and a text time field

textadte = 2010-08-02 texttime = 13:44:05

I need to convert them together to a single datetime field

icw
Constraint Violating Yak Guru

378 Posts

Posted - 2010-08-04 : 09:11:52
just figured it out

select cast ([textdate]+' '+[texttime] as datetime)
Go to Top of Page
   

- Advertisement -