Izu Posted April 23, 2019 Posted April 23, 2019 I would like to know how to retrieve the columns and datatypes of a table used in a report. I used the desc [Tablename] keyword in the Database Direct query window but nothing was retrieved.
Martyn Houghton Posted April 23, 2019 Posted April 23, 2019 @Izu The main Service Manager request table is documented in the wiki (https://wiki.hornbill.com/index.php/Table_Info:_Main_Request_Table ) but is a little bit out of date. You can use the SQL below in Database Direct to get information on the table object for a specified table. SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'h_itsm_requests' SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'h_itsm_requests' Example output. Cheers Martyn
James Ainsworth Posted April 23, 2019 Posted April 23, 2019 Hi @Izu There is also the Application Entity Viewer which can be found in Administration under Hornbill Service Manager tile. Once in the view you can select the Database Schema Viewer option and then select the table that you wish to look at. Hope that helps. Regards, James
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now