Re: newbie: how convert nvchar to datetime?
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Sun, 23 Oct 2005 19:04:36 +0530
Hi,
USE ALTER TABLE with ALTER COLUMN
ALTER TABLE <table> ALTER COLUMN <Column_name> DATETIME
go
Thanks
Hari
SQL Server MVP
"Jim Muir" <jpmuirNoSpamPlease@xxxxxxxxx> wrote in message
news:%23ycuY781FHA.3256@xxxxxxxxxxxxxxxxxxxxxxx
>I have imported a table into msSQL (2000)
> One of the fields which was stored originally as a simple date field
> (05/05/05) was created as nvarchar(8).
>
> How to I alter this column to become a DateTime field type?
> I want to do this before I add any more records.
>
> The application will be sending a date like 10/23/2005 but without the
> time part.
.
- Follow-Ups:
- Re: newbie: how convert nvchar to datetime?
- From: Jim Muir
- Re: newbie: how convert nvchar to datetime?
- References:
- newbie: how convert nvchar to datetime?
- From: Jim Muir
- newbie: how convert nvchar to datetime?
- Prev by Date: newbie: how convert nvchar to datetime?
- Next by Date: Re: newbie: how convert nvchar to datetime?
- Previous by thread: newbie: how convert nvchar to datetime?
- Next by thread: Re: newbie: how convert nvchar to datetime?
- Index(es):
Relevant Pages
|
|