Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Mattastic #1
Converting Datatypes
Hi,
I need to change a varchar field in my DB to a small date/time field. The
problem is I don't want to lose the data, as I have quite a lot of records. Is
there a way I can convert the varchar into a date?
TIA
Mattastic Guest
-
Complex DataTypes
Ok, I created a Web Service using PHP5 SOAP extension. I created the WSDL and I can serve and consume that service in PHP. Now I am trying to... -
Service with 'shared' datatypes
Hello NG, I need to write a factory where I be able to switch between webservice support and normal dll support. So I wrote a small test... -
sql=access=datatypes?
What would be the corresponding data types for the following existing Access data types: Autonumber = (UniqueIdentifier?) Number =... -
complex datatypes and methods
Hi, I created a custom container class in order to return values from web method calls and this works fine, but my problem is that I added some... -
Datatypes in Informix
Hi, I am trying to obtain an extract of my Informix database into a formatted spreadsheet. The information of the fields in a table is... -
mxstu #2
Re: Converting Datatypes
Assuming all of the values in the column can be cast as the new type
(datetime), most databases have a command that allows you to change a column's
type. (ex. ALTER COLUMN ...) . If not, you should be able to add a new
column, with the type "datetime", insert the values from the old column, drop
the old column and rename the new column.
Important - Always make a backup first before performing any changes!
mxstu Guest
-
Mattastic #3
Re: Converting Datatypes
Hi, Thanks for that, I have 60 records need changing and I'm using SQl server, do you know the format to which I can key in the dates by hand?
Mattastic Guest
-
mxstu #4
Re: Converting Datatypes
Why key dates by hand? If the values are all in 'mm/dd/yyyy' format, just use ALTER TABLE ... ALTER COLUMN ...
mxstu Guest
-
Mattastic #5
Re: Converting Datatypes
OK thanks, not sure how to do that though, can you do it in Enterprise Manager?
Mattastic Guest
-
mxstu #6
Re: Converting Datatypes
'ALTER TABLE ....' is a sql statement and would need to be executed through the query analyzer. If you're using the Enterprise Manager gui, I think you need to use the 'design table' option.
mxstu Guest



Reply With Quote

