1

I've created PDM in PowerDesigner and I want to generate a database of it. When I choose Database -> Generate database option in main menu, pop-up dialog is shown where I need to configure database properties like data source, credentials and other.

When I check another options in dialog window, everything seems OK to me, and Create database section is selected, meaning the Create Database... code will be included in script. When I generate script using Direct generation (General settings) option, result code doesn't consist Create Database... code.

Am I doing something wrong?

pascal
  • 3,287
  • 1
  • 17
  • 35
veljasije
  • 6,722
  • 12
  • 48
  • 79
  • Which DBMS (Oracle, MS SQL Server, SAP SQL Anywhere...) is your PDM targetting? – pascal Jul 18 '16 at 14:36
  • My PDM targets MSSQL database. – veljasije Jul 18 '16 at 19:52
  • I did not understand the mention of "General settings"... What you see in the Preview tab, should be what will be written in the generated script, depending on the currrently selected Options. – pascal Apr 19 '17 at 09:45

1 Answers1

0

I think it is not very good explanation... Especially script related to direct generation... But if you really mean script (as title of your question says) then most likely you need to create database in your model.

To get it open model properties and press New button near database row:

PDM

When model created you need to set corresponding checkbox in Options tab during generation of model (create database, drop, open and so on).

Maxim
  • 13,029
  • 6
  • 30
  • 45