Converting MsAccess to MySQL

Hi,

I converted my Access DB file to MySQL by exporting the tables. However, the tables exported, all fields are NULL enabled.

Is there a way I can force it to be NOT NULL for all fields or is there any tools available to do the conversion?

I tried changing 1 by 1, but sometimes an error prompted, "ALTER TABLE 'db1'.'table1' MODIFY COLUMN 'col1' VARCHAR(45) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '';

MySQL Error Number 1265
Data truncated for column 'team' at row 724.

And, if the fields are not set to NOT NULL will it cause any trouble when developing the website with asp.net?

Thank you very much.
[738 byte] By [ask4help] at [2007-11-20 5:01:38]
# 1 Re: Converting MsAccess to MySQL
I converted my Access DB file to MySQL by exporting the tables. However, the tables exported, all fields are NULL enabled.

Make sure that they are NOT null in source table (access).

Data truncated for column 'team' at row 724.
That means that your alter command will shrink column size. For example - column is VARCHAR(255) and U are shrinking it to VARCHAR(45). Rewrite ALTER commands to fit original column size.


And, if the fields are not set to NOT NULL will it cause any trouble when developing the website with asp.net?

No, but it is considered as a "bad programming".;)

Best regards,
Krzemo.
Krzemo at 2007-11-9 13:44:43 >
# 2 Re: Converting MsAccess to MySQL
Hi,

Thanks for the info, now I have succesfully converted all the required tables.
ask4help at 2007-11-9 13:45:44 >