views:

81

answers:

2

Hi,

If we increase the field width [say varchar(7) to varchar(20)] will it result in data loss? This is to be done in Firebird 1.5 database.

Thank you.

+2  A: 

No, as you are increasing the size of the column there will be no data loss.

Of course you should, if at all possible, first do this on a copy of your production database to ensure you are happy with the result.

William
+1 for the backup advice. Even for the most innocuous operation, if there's a shadow of a doubt, take a backup. Especially for data definition statements, which can't usually be rolled back in transactions.
Rob
+1  A: 

Not if you are increasing the size:

ALTER TABLE t1 ALTER c1 TYPE char(90);

Reducing is always the problem:

http://www.firebirdfaq.org/faq285/

You should look at using FlameRobin as an administrative tool to manage dependencies and simplify working with FireBird.

http://www.flamerobin.org/

Nissan Fan