Quantcast
Channel: SCN: Message List - SAP PowerDesigner
Viewing all 2877 articles
Browse latest View live

Re: newsequentialid() default value

$
0
0

I finally figured it out. It was easy once you know.

 

I was creating a default object in the model instead of a default value for the dbms. Once I figured out how to delete the default object in the model it stopped showing up in the list to choose from. I was able to create the default value for the dbms as you described and assign it to the column. It is working fine now. I was able to add newsequentialid() and getutcdate() to the default value list.

 

Thanks for your help.


Re: need help for Reverse Engineering of Teradata Database

$
0
0

For info, PowerDesigner 16.5 SP03 (build 4284) supports Teradata V13 and V14. Teradata V2R6 is still provided but "as is".

I am running Teradata V13 and reverse is working fine. I highly recommend you update to 16.5 SP02 since the Teradata DBMS resource files have been improved a lot since the PD 16.5 release.

reverse engineering of MySQL ignores unique index clauses

$
0
0

I'm trying to reverse engineer my mysql DB, and I'm stuck on the unique index productions.

 

The script I'm using is correct as I'm currently using it in my production environment.

 

My original script had this syntax:

 

create table ACL {

     id varchar(255) not null,

     acl_id varchar(255) not null,

     priority integer not null,

     unique (acl_id, priority)

};

 

This created a column named 'unique' of type '(acl_id, priority)'.  Scratch that.

 

If I use this alter table syntax, the statement is silently ignored: (No indication on the console tab it was dropped)

    alter table ACL

        add unique index xxxx (acl_id, priority);

 

The UNIQUE keyword seems to be the troublesome bit here.  This statement is accepted:

    alter table ACL_ENTRY

        add index xxxx (acl_id, priority);

 

Thanks for any pointers.

-Evan-

Working with repository & target models

$
0
0

Hello,

 

    I am using PD 16.5 and am having a problem with links to target models being broken when I integratea a model from one branch to another in the repository.  Any recommendations or any best practices documents for working with the repository so links don't get broken?

 

Thanks,

 

Pete

Temporary protection on repository document

$
0
0

Hello,

 

     I'm getting an error when I try to lock or integrate a model across

branches.  "Error you can not get exclusive access to the document ..."

According to the manual a dialog box should show up where I can override this

protection (due to netwok issues -I'm remote and connection dropped). However,

I see the message only in the output pane and in the general tab. 

 

   How can I get the dialog box to popuup so I can fix the problem?  I'm unable to

continue work on migrating my models from dev to qual. 

 

Thanks in advance,

 

Pete

 

 

 

p></p>

Re: Temporary protection on repository document

$
0
0

I found out the reason the dialog box wasn't appearing - I had the "Output" view selected (menu View/Output). The message went to the output pane, but the dialog box didn't appear. After closing the Output pane, the dialog box appeared and I was able to remove the temporary protection. Pete/p>

How to search for columns of a given data type

$
0
0

I'm trying to locate columns of any name by the data type varchar(8). I've tried using the "Find Objects" functionality but it doesn't return anything. I've tried specifying the "Code" of varchar(8) but that doesn't work. I've tried the Advanced tab and tried Data Type = varchar* but that doesn't return any results either. Can anyone help? I'm using PD 16.5.

 

Thanks,

Mark

Re: How to search for columns of a given data type

$
0
0

 

Highlight your model or package, then right click and choose "List of" and then choose Columns.  This will give you a list of your colunms where you can filter appropriatley.

 

Pete


Re: How to search for columns of a given data type

$
0
0

Hi Pete,


I figured out that "Length" was the property I needed for my search expression. Then I was able to find the columns using the Ctrl + F search feature. I wasn't aware of the filtering method you described. Thanks for the tip!

 

Mark

Problem for Arabic Font In Sybase Power Designer HTML Report

$
0
0

Hi, I have a problem when I generate Sybase Power Designer HTML Report for ERD with Description written by Arabic Font the Description in HTML viewed as (??????) I Changed Font's for Arabic Transparent and Tried to Change Node Font in Html itself but still doesn't work , I worked on Power Designer 12.5

The Problem viewed in Attachment

How to get rtf formatted text to Word by vbscript?

$
0
0

Hello,

 

I`m trying to export rtf formatted text from Descriptions and Annotations of PowerDesigner objects into MS Word document by vbscript. I cannot use Reports, that is not an option. The only way how to do this I`ve discovered so far, is to get the the plain text of the Description together with RTF tags (but not interpreted), write it to a new file and save it with the rtf extension. Then open this rtf file with MS Word (that will interpret rtf tags) and copy&paste this text alredy formatted text to the final MS Word document.

 

And I have to repeat this for each Description and Annotation that needs to be exported. This solution is definitely not nice, but the only one I`ve discovered so far. Any other advice how to do this more efficiently will be appreciated.

 

 

Thank you,

Ondrej Divis

How to add the same business rule constraint to multiple tables

$
0
0

I've created a business rule that is defined as a constraint to restrict the start date from being after the end date. I'd like to apply the same rule to several tables in the db that have these same two column names. The problem is when I run the generated sql created by PowerDesigner I get an error that the constraint already exists. The generated sql is trying to create the constraint for every table. It works for the first table but every subsequent table gets the error.

 

Here's the sql being generated...


create table a (

id uniqueidentifier not null default new sequentialid(),

start_dt datetime null,

end_dt datetime null,

[some more columns],

constraint Start_End_Date_Rule check (start_dt is null or end_dt is null or start_dt <= end_dt)

)

go

 

What am I doing wrong?

 

Thanks,

Mark

 

PD 16.5

Re: How to add the same business rule constraint to multiple tables

$
0
0

I figured it out. I needed to change the business rule type from "constraint" to "validation". That change creates the following sql...

 

create rule Start_End_Date_Rule as

      start_dt is null or end_dt is null or start_dt <= end_dt

go

 

 

Then the sql created generates a unique name for each table constraint using the constraint name rule that I've defined...

constraint ck_rule_loan_opt check (start_dt is null or end_dt is null or start_dt <= end_dt)

Re: How to get rtf formatted text to Word by vbscript?

$
0
0

Ondrej,

 

how about starting word as a com object in vb script and copy the description/annotation to a file managed by word = com object.

 

Kind regards

Klaus


Re: How to get rtf formatted text to Word by vbscript?

$
0
0

Hi Klaus,

 

I`m using these commands to create new Word document. And if I try to paste Description or Annotation into Word, it pastes only plaintext or RTF tagged text, but UNINTERPRETED. As you can try for yourself with the following code. Your activemodel just should be PDM with one Table and Description filled.

 

Set objWord = CreateObject("Word.Application")

objWord.Visible = True

Set objDocument = objWord.Documents.Add()

Set objSelection = objWord.Selection

For each t in activeModel.Tables

  objSelection.TypeText t.Description

Next

 

Can you please be more specific about how should I start the Word to be able to paste formatted text directly?

 

Thank you,

Ondrej


Re: reverse engineering of MySQL ignores unique index clauses

$
0
0


Hi Evan,

 

as  far as I know only outer create index statements are supported with the MySQL xdbs.

 

So you have to use two statments like

 

create table ACL
(
   id                   varchar(255) not null,
   acl_id               varchar(255) not null,
   priority             integer not null
);

 

create unique index xxxx on ACL
(
   acl_id,
   priority
);

 

 

 

Regarding the reverse of the unique index it seems to be an issue inside the xdb.

If i look at MYSQL50.XDB under Script\Objects\Index\Create I see

 

[.O:[create [%UNIQUE% ][%FullText%?fulltext ]index %INDEX% on [%QUALIFIER%]%TABLE%

(

   %CIDXLIST%

)][alter table [%QUALIFIER%]%TABLE% add index %INDEX%

(

   %CIDXLIST%

)]]

 

 

seems the [%UNIQUE% ] for alter is not supportet as well.

If I modify this to

 

....

)][alter table [%QUALIFIER%]%TABLE% add [%UNIQUE% ] index %INDEX%

....

 

I was able to reverse the unique index.

 

best regards

Stefan

Re: How to get rtf formatted text to Word by vbscript?

Re: need help for Reverse Engineering of Teradata Database

$
0
0

Don't think there is any documentation specific to Terradata with features, limitations etc.

You will find basic features in the PowerDesigner Help.

If you miss some database specific features you are able to customize PowerDesigner.

Take a look on the chapters "Customize and Extend PowerDesigner->PowerDesigner Resource Files" and "Customize and Extend PowerDesigner->DBMS Definition Files"

As Arnaud Laurent already recommended upgrade to the latest version before starting your tests.

PowerDesigner EA v15.3 end-of-life support date

$
0
0

hello - first time post.  i searched and no previous posts came up regarding PDv15.3 end of life support. The closest I found is this link: http://www.sybase.ca/detail?id=1098885 which isn't too clear.  thanks in advance.

Re: PowerDesigner EA v15.3 end-of-life support date

$
0
0

It is the official notice.

It means there will be no more bug fix provided by engineering for PowerDesigner 15.x releases. You can still contact SAP Product Support to create incident cases and support engineers will help you if there is an existing solution or workaround. But PowerDesigner engineering cannot be involved anymore for bug fixing or product enhancement about PowerDesigner 15.x.

 

I hope this makes things clearer. If not, do not hesitate to detail what you are looking for.

 

Thank you.

Viewing all 2877 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>