Skip to main content
12-Amethyst
May 17, 2019
Solved

SQL custom meta

  • May 17, 2019
  • 1 reply
  • 4526 views

In what SQL table is the custom meta stored. For example, we have custom Objects types & attributes. I'd like to query the SQL database but I don't know in what table this information is stored? Any ideas?

Best answer by abhishekarya

Yes, So if these are global attributes, they would be located under following tables:

 

If they are string type attributes:

StringDefinition and StringValue

Boolean:

BooleanDefinition and BooleanValue

Timestamp

Timestampdefinition and Timestampvalue

Integer

IntegerDefinition and IntegerValue

 

Definition tables will have attribute name details whereas StringValue will have the value, the connection to EPMDocument will be in StringValue table, A sample query is as follows:

 

select C.Documentnumber EPMDocNUMBER, A.value2 "attributevalue" from StringValue A,StringDefinition A1, EPMDocument B,EPMDocumentMaster C
where A.ida3a4(+)=B.ida2a2 and B.ida3masterreference=C.ida2a2 and A.ida3a6=A1.ida2a2 and A1.name='attributename'
and B.latestiterationinfo=1;

 

1 reply

14-Alexandrite
May 17, 2019

hello,

 

you mean you created IBAs and Soft Types or you created Custom Hard Model types?

1-Visitor
May 17, 2019

it would the 'more attributes' tab in the document information (we renamed to say Metadata)

(see attached screen shot from windchill document i )

which sql table stores this information?