Re: number to datetime
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 01/15/05
- Next message: Aaron [SQL Server MVP]: "Re: "<> null" vs. "is not null""
- Previous message: Rob Meade: "Re: Missing something obvious?"
- In reply to: Gert-Jan Strik: "Re: number to datetime"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 15 Jan 2005 11:19:43 -0500
Gert-Jan Strik wrote:
> You missed one cast. Try
>
> select cast(cast(@int as char(8)) as datetime)
>
Yeah, I know. That's what I get for not testing.
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
- Next message: Aaron [SQL Server MVP]: "Re: "<> null" vs. "is not null""
- Previous message: Rob Meade: "Re: Missing something obvious?"
- In reply to: Gert-Jan Strik: "Re: number to datetime"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|