Querying Main Database |
You can query Main database to obtain meta IDs that you need when working with iService methods.
The following table lists the queries you need to run to obtain meta IDs:
To Get |
Run This Query |
---|---|
Object Details |
Select * from tblObject where tName ='<Object Name>' This query displays the following columns:
|
Tab Details |
Select * from tblTab where tTabName = '<TabName>' This query displays the following columns:
|
Group Details |
Select * from tblFieldGroup where tGroupName ='<GroupName>' and nTabID = <TabID> This query displays the following columns:
Note: For default groups, leave the Group Name blank. |
Property Details |
Select * from view_ColumnMain where tDisplayName = <Property Name> This query displays the following columns:
|
User Details |
Select * from tblUser where tLoginName = '<Login Name>' This query displays the following columns:
|
Team Details |
Select * from tblTeam where tName = '<Team Name>' This query displays the following columns:
|
SIS Team |
select * from tblSISTeam
|
Enum Details |
Select * from tblEnum where nConstraintID in (Select nConstraintID from tblColumnConstraintMap inner join tblConstraint on aConstraintiD = nConstraintID where nColumnID = <PropertyID>) This query displays the following columns:
|
Media Details |
Select * from tblMedia. This query displays the following columns:
|
Alias Details |
Select * from tblGroupAlias This query displays the following columns:
|
row ID (Record List) |
To obtain the ID of a row in the RecordList Tab of an Object item, you must first query the database to find the name of the table which contains the details of RecordList Tabs. To do so, execute the following query: Select tBaseTable from tblColumnMain where tDisplayName = ‘<RecordList Tab Property name>’ where, <RecordList Tab Property name> is the name of the Property in the RecordList whose rowID you want to find. Note the name of the table that contains the details of the RecordList Tabs. To obtain the rowIDs of the RecordList Tab, execute the following query: Select * from <table name> where, <table name> is the name of the table obtained by executing the previous query. The nKeyID column displays the ID of each row in the RecordList Tab. |
Workspace Details |
select * from view_tblDesksForLang where tName LIKE '<Workspace Name>' AND nUserID= <Talisma User ID> From this query, retrieve the ID of the custom Workspace from the aDeskID column. |
Custom Workspace Pane Details |
Select tCompDataXML,* from tblDeskComponentData where nDeskID=<Workspace ID> From this query, retrieve the custom Workspace Pane ID from the tCompDataXML column. To obtain the name of the Workspace for a Filter, use the Pane ID obtained from the above query in the following query: Select * from tblWorkspace where aWorkspaceID=<Pane ID> In this query, tWorkspacename displays the name of the Workspace where the Filter is configured. |
Filter ID in a Custom Workspace Pane |
Select * from tblFilter where nCreateInRoom=<Pane ID> AND tName='<Filter name> From this query, retrieve the Filter ID from the aFilterID column for a given pane of a custom Workspace. |
To query Main Database Using Query Analyzer
-
From the Start menu, point to Programs, Microsoft SQL Server, SQL Server Management Studio.
The Connect to Server dialog box is displayed.
-
From the Server name list, select the computer on which Main database is installed.
-
In the Authentication field, select Windows Authentication or SQL Server Authentication to connect to Main database using your Windows login credentials.
The Microsoft SQL Server Management Studio window is displayed.
-
Click the New Query option, select tlMain from the Databases list and execute the required query.