Focal Point
[SOLVED] Creating Synonms in Batch

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6127096966

March 18, 2014, 11:49 AM
FOCdeveloper
[SOLVED] Creating Synonms in Batch
Hi, After looking at the previous posts.. I found the code by Francis to generate synonms in batch but It does not work in our environment (SYSCAT_TABLES mfd not found)

We have Development environment which is working fine.
Test envinoment is not setup properly.. Get errors on MFDS not found etc..Synonms are not created for several tables..

How can I just take the Development environment Databases/Tables and create synonms for these in the Test Enviornment in Batch

We have SQL server 2005 Adapetr

I looked at the current Data Adapter section, I dont see "sys tables".. It lists different databases and under each database, tables are defined..
Do I need to run this batch fex for each and every datbase or there is a way, I can find the "system tables" and use it to create amper based code to generate synonms for all tables

This batch file/fex needs to be run from where (Server side or MRE domain)

Any help would be appreciated.

This message has been edited. Last edited by: <Kathryn Henning>,


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
March 18, 2014, 02:24 PM
Francis Mariani
quote:
SYSCAT_TABLES


If I remember correctly, SYSCAT_TABLES is a DB2 system table for which I created a master using the reporting server console.

For SQL Server 2005, you probably can use the system table called "tables". Please read SQL Server 2005 System Tables and Views.

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 18, 2014, 05:58 PM
FOCdeveloper
Thank you Francis..
It's INFORMATION_SCHEMA.TABLES in SQL Server 2005


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7