> CREATE TABLE HartGraph (
> IDNumb int NOT NULL default 0,
> HorizMark int NOT NULL default 0,
> )
>
the above CREATE TABLE statement will also create you a couple of
default contraints, using automatically generated names. In effect the
above query was run as:
CREATE TABLE HartGraph (
IDNumb int NOT NULL default 0,
HorizMark int NOT NULL CONSTRAINT
DF__HartGrap__Horiz__123EB7A3 default 0,
)
You are going to have to drop the contraint before you can change the column:
ALTER TABLE HartGraph DROP CONSTRAINT DF__HartGrap__Horiz__123EB7A3
You should then be able to run your alter column statement
ALTER TABLE HartGraph
ALTER COLUMN HorizMark VARCHAR( 20 ) NULL
HTH
Bert
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194024
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54