Mitch Swetsky
asked on
SQL Server 2008 Problems altering data type to Date
I have a very large table [MasterFinal] and it includes a column that has a datetime type named CallDate
There is also a Calltime field so I would like to Alter the CallDate to type Date like 01/01/2011
Can someone help me?
There is also a Calltime field so I would like to Alter the CallDate to type Date like 01/01/2011
Can someone help me?
ASKER
I don't want to involve the Time column.
I was looking for a data type to cut the Datetime field down.
Is there a way to Alter Column?
I was looking for a data type to cut the Datetime field down.
Is there a way to Alter Column?
use alter column
ALTER TABLE TABLENAME
ALTER COLUMN CALLDATE DATE
ALTER TABLE TABLENAME
ALTER COLUMN CALLDATE DATE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
do you want to convert it to date only? and put time part into Calltime?
do you have values in CallTime now? or is it empty...
\can you give a sample and tell us what are you trying to do here...