Subject | Re: Change varcahr(40) to Varchar(100) |
---|---|
Author | Michael Vilhelmsen <Michael.Vilhelmsen@M |
Post date | 2003-02-27T11:57:11Z |
This I like.
Maybe I try this ;-)
Better save than sorry.
Michael
--- In ib-support@yahoogroups.com, "Bojidar Alexandrov"
<bojo_alex@y...> wrote:
Maybe I try this ;-)
Better save than sorry.
Michael
--- In ib-support@yahoogroups.com, "Bojidar Alexandrov"
<bojo_alex@y...> wrote:
> Andy Browne wrote:be sure
> > Hi Michael
> >
> > 1) Add a temp field varchar(100)
> > 2) copy data from field to temp field (check the copy)
> > 3) drop field Varchar(40)
> > 4) add field Varchar(100)
> > 5) copy from temp field to new field (check copy)
> > 6) drop temp field.
> >
> > If you have dependancies you will have to sort those out first.
> >
> > This is long winded but safe!
> >
> > Andy
>
> Make three backups of database, restore them, compare databases to
> Then save them on disks. One of them put in metal case at theoffice, other
> bury in the garden, and the third send at secure friend on theother side of
> the earth (in case of nuclear war)
> Then do: ALTER TABLE tablename ALTER columnname TYPE VarChar(100)
> And be happy :)
>
>
> --
> Bojidar Alexanrov
> Kodar Ltd.
> http://www.Kodar.net