|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to change data type ?
Hi,
I have a column A with data type "datetime". I want to change the data type to "date". As all the records are coming like that "2004-08-01 00:00:00.000". I only need to assign date in records. When I try to do so, I get an error message there is no available data type "date". I am using MS-SQL 2000. |
|
#2
|
||||
|
||||
|
you are getting that error because sql server does not support date datatypes, only datetime
|
|
#3
|
|||
|
|||
|
Any Idea ?
Any idea how to cater this problem ?
|
|
#4
|
||||
|
||||
|
yes, store your dates into your datetime column and use CONVERT to display them without the times
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > How to change data type ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|