1. Open PowerDesigner, set PowerDesigner's current database as access;
2, the new table structure (physical model) in PowerDesigner;
3, PowerDesigner Menu: Database--Generate database ... (shortcut key ctrl+g);
In the dialog box that pops up, set the directory and file name (with the DAT suffix) value of the database script that you want to generate.
In the pop-up dialog box, Format tab, set encoding to Simplified Chinese GB2312;
Finally click "OK" button to generate database script;
4, double hit Open <powerdesigner_directory>\tools\access.mdb, note: need to open macro;
5. Select "Generate Access database from PowerDesigner Script file"
6. Enter the target path of the database in "Select Databases", or use the button on the right to select the path;
7. Enter the path to the script file generated in the previous step in the "script file", or use the button on the right to select the path;
8, the last click "Create";
9, wait a moment, complete the script generated from PowerDesigner to create an Access database.
Original: http://wiflish.iteye.com/blog/973007
Note the point:
1, the length of the varchar2 can not exceed 255, otherwise there will be "type mismatch" and other error prompts,
Therefore, you need to modify the type of more than 255 length fields to text.
2. Access does not support the Numberic type and needs to be modified to number.
3. The <powerdesigner_directory>\tools\access.mdb file also features a reverse script generation from an Access database