Good morning,
There are some views that call for the table TABLEIDTABLE. For example: VENDORINVOICECHARGESVIEW, and I need the view for a entity schema.
In order to export an entity schema on the lake, you need to be able to export the table. Since the new version was released we are able to export SQLDictionary, but that table will not give me the table name, just the ID, and the view (in this case, calls for the table name).
SELECT COUNT(RECID) FROM VENDINVOICEINFOSUBTABLE T4 WHERE T4.TABLEREFID = T1.TABLEREFID AND T4.DATAAREAID = T1.DATAAREAID) = 1
THEN (SELECT ID FROM TABLEIDTABLE T2 WHERE T2.NAME = 'VENDINVOICEINFOSUBTABLE')
ELSE (SELECT ID FROM TABLEIDTABLE T3 WHERE T3.NAME = 'VENDINVOICEINFOTABLE') END) AS TRANSRECID) AS NVARCHAR(10))) AS TRANSTABLEID FROM VENDINVOICEINFOTABLE T1
I have hardcoded the table ID, but if in production is different, it will be an issue.