Ask a Question related to Coldfusion Database Access, Design and Development.
-
Fordian-Slip #1
Alter Table / Changing field types in SQL
Hi Folks -
I was wondering if anybody knows of some way to convert a field within a MS
SQL table from varchar to Numeric.
A table was set up with a field initially set to varchar(20). And I need to
update the field type to Numeric.
I use the following statement:
alter table q_quotes_tbl
alter column bound_premium numeric(20,2)
And I get the following error message:
Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
The statement has been terminated.
Any and all help would be appreciated.
Thanks,
Doug
Fordian-Slip Guest
-
alter field type
Hi Guys, I'm using SQL server 2000. How do I alter column/field from type int (with Identity = Yes Not For Replication) to just normail int... -
ASP Code to generate the schema of an SQL Table (field name, Data types , Size)
Anyone has this SQL STATEMENT to traverse the User defined tables? I just need the Select Statement to get this info the rest I can handle. I... -
Quest Central allows you to alter ANYTHING in a table including column types
I recently downloaded Quest Central for DB2....it's a life saver. I LOVE IT! IBM's Java tools are lacking and slow. Here's a quick list of some... -
Changing image type to ntext via ALTER TABLE
Hi Is there any way that we can change the data type of a column from 'image' type to 'ntext' via the ALTER TABLE command? Thanks -
alter table/tables
UPDATE Cust SET CustID = (SELECT NewCustID FROM NewCust WHERE NewCust.CustID = Cust.CustID To generate a script that will update all the tables... -
Dan Bracuk #2
Re: Alter Table / Changing field types in SQL
If your db allows it,
add a new column
populate from the old column
drop the old column
rename the new one
Dan Bracuk Guest
-
Fordian-Slip #3
Re: Alter Table / Changing field types in SQL
Hi Dan -
That's what I was thinking about doing if I couldn't get my Alter Table command to work properly.
Thanks,
Doug
Fordian-Slip Guest



Reply With Quote

