Jeeez, 'abused' was quite the understatement, your step-through has really made an impression of how I will look at and (try to) create code in the future.
Hi George,
I thought my 'light' was starting to flicker abit, but its likely just a flashback. I see the structural similarities in code between this post and a recent question you answered for me as follows.
Declare @Temp Char(4)
Set @Temp = '1545'
Select Right(Convert(VarChar(20)...
Hi George,
and many thanks, I do need the leading zero(s) if any AND the AM/PM suffix as this is a mainframe data source that I need to duplicate for a future SQL2000 datamart database.
I tried your first method and got an error converting datetime from char string. Also note that my source...
Greetings,
I need to convert a char(4) source to time only datatype similar to what was discussed in this thread.
http://www.tek-tips.com/viewthread.cfm?qid=1353645
Although I have tried various combinations of these and other suggestions in this forum, I cant seem to find a solution...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.