cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

SQL custom meta

Darquise
12-Amethyst

SQL custom meta

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?

ACCEPTED SOLUTION

Accepted Solutions
abhishekarya
14-Alexandrite
(To:Darquise)

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;

 

View solution in original post

7 REPLIES 7
abhishekarya
14-Alexandrite
(To:Darquise)

hello,

 

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

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?

 

in Type & Attributes, I created sub-types under EPMDocument. I then created custom attributes which i added to my subtype. Does that make sense?

abhishekarya
14-Alexandrite
(To:Darquise)

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;

 

Getting close! Thank you 🙂

 

I'm getting an error at:

A.idA3A4(+) = B.idA2A2

Incorrect syntax near ')'

 

Darquise
12-Amethyst
(To:Darquise)

ohh, that's for Oracle right. In SQL, it would be something like this:

from StringValue A right outer join EPMDocument B on A.idA3A4 = B.idA2A2

 

abhishekarya
14-Alexandrite
(To:Darquise)

Yes sorry i assumed Oracle.

Announcements

Top Tags