Reverse Engineering of generating SQL statements and generating tables from SQL statements using powerdesigner

Source: Internet
Author: User

I,SQL issue generated by powerdesigner
The SQL generation method is database --> Generate database (CTRL + G), but the prompt is: cocould not load VBScript engine.
Check VBScript installation.

Generation aborted due to errors detected during the verification of the model.

After checking for a long time, I found that I can remove the check model! Where,

Whether one file on needs to generate multiple SQL statements according to the table (optional by default, that is, not required)
ODBC generation SQL is directly generated into the database
Automatic archive generates an SQL statement and generates an APM file at the same time.

Ii. Power Designer: reverse engineering to generate an erdiagram
1. in powerdesigner, choose file | reverse engineer | database .... the new physical data model dialog box, shown next, appears. choose Oracle 10 Gb for the DBMS and click "OK"

2. in the database reverse engineering window, click "using script files" and then click the "new" icon. A file selection dialog box is displayed, and the script file location is selected. then press "OK ".

3. Generate er digoal

Iii. Questions about how to use powerdesigner to export database ergraphs and PDM Diagrams,

This article is useful in the following two scenarios:

1. When the database instruction documents are synchronized with the actual database structure.
2. When a descriptive document is generated based on the existing database structure.

 

I usually generate the "database instruction document" as follows:

Method 1 (in SQL Server 2000)

Using this software "schematodoc with table annotator v2.8.8", it is easy to find its registration machine on the Internet, so it is very convenient to use, and the database instructions it generates are also very professional.

Unfortunately, I cannot use it to connect to SQL 2005 or Oracle 10 Gb;
Its Enterprise Edition "schematodocenterpriseinstall.exe" can be smoothly connected to SQL Server 2005 and Oracle 10g. However, because there is no registration code, only three objects can be exported at a time (the objects here include stored procdure, view, table, function, etc )......

 

Method 2

Use powerdesigner to export the PDM (Physical Data Model) graph from an existing database, analyze the PDM graph by using another tool pdmreader (which can be downloaded from http://www.pdmreader.com/), and then generate instructions.

The specific steps are as follows:

Part 1: Use powerdesigner to generate a PDM diagram.

1. Open powerdesigner, select "reverse engineer" from the "file" menu, and then select "Database ";
2. In the displayed dialog box, enter the name of the PDM file to be created, select the type of the database to be connected in the DBMS option, and click OK;

3. Select "using a data source" under the selection tab of the database reverse engineering options screen, select the data source used to connect to the target database, and click OK.

4. On the connect to a data source screen, select the data source name, enter the user ID and password to connect to the target database in the input box, click Connect, and then click OK.

5. If the previous configuration is correct, you can now view the data objects in the current database, such as tables and views. All objects are selected by default. If you only want to export a few tables, you can remove the check box before the object you do not want to export, and click OK. PD will generate the PDM diagram of the selected object for you.

6. Save the generated PDM diagram.

 

Part 2: Use pdmreader to generate instructions

1. After generating a PDM image, open it with pdmreader. Note that when opening a PDM image with pdmreader, make sure that the image is not opened in powerdesigner.
2. Click Create project. In the displayed dialog box, enter the project name and click OK;
3. Select the project name, click "Import Data Dictionary", select the generated PDM chart, and click "open;
4. Select the PDM graph Link under the project name. A link named "Export dictionary to Doc" will appear on the right. Click here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.