Skip to main content
17-Peridot
November 19, 2019
Solved

How to determine from which table in the Database elements are taken?

  • November 19, 2019
  • 1 reply
  • 5296 views

Hello everyone, please tell me how to determine from which table in the Database the elements are taken to build a table on the site Windchill? I have full access to the files and the Database.

Best answer by DmitryC

Hi VladiSlav,

 

As far as I know, there is no clear documentation supplied by PTC about the database schema. You may find some bits and pieces in different parts of Query Builder, JavaDocs, Windchill help and here in the Community (maps created by users).

 

Personally, I would recommend you to start with Query builder.

It will allow you to visually build the required objects and their relationships:

Query Builder Classes.PNG

 

Define all the fields you want to get from those objects:

Query Builder Constrains.PNG

 

And then have a peek at the SQL query that builds the resulting table:

Query Builder SQL.PNG

 

That should give you a good start.

 

 

Kind Regards,

Dmitry.

1 reply

23-Emerald III
November 19, 2019

Your question is too generic to try to answer.

Please give an example of what you are trying to do.

How are you programming your access to the DB?

What DB are you using, SQLServer or Oracle?

What version and build of Windchill are you using?

 

VladiSlav17-PeridotAuthor
17-Peridot
November 19, 2019

 

ello, I am using MS SQL and Windchill_11.1, I want to learn how to determine which table in the database the items were taken from. For example, for the table " Promotion Request"
DmitryC14-AlexandriteAnswer
14-Alexandrite
November 19, 2019

Hi VladiSlav,

 

As far as I know, there is no clear documentation supplied by PTC about the database schema. You may find some bits and pieces in different parts of Query Builder, JavaDocs, Windchill help and here in the Community (maps created by users).

 

Personally, I would recommend you to start with Query builder.

It will allow you to visually build the required objects and their relationships:

Query Builder Classes.PNG

 

Define all the fields you want to get from those objects:

Query Builder Constrains.PNG

 

And then have a peek at the SQL query that builds the resulting table:

Query Builder SQL.PNG

 

That should give you a good start.

 

 

Kind Regards,

Dmitry.