Focal Point
[SOLVED]Possible for Auto Generate synonym?

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

June 10, 2020, 04:24 AM
nox
[SOLVED]Possible for Auto Generate synonym?
Hi,

Let's say I have adopter connect to MS SQL DB Server, and there is over 100+ tables in there and increasing table amount frequently. Is there a way to automatically create those synonyms into an application directory?
(** Table name and fileds' name and amount of fields may be different from each table)

And instead of a DB, what if there is 100+ of .csv that need to be create synonyms automatically into an application directory?

This message has been edited. Last edited by: nox,


WebFOCUS v8.2.06 , Windows
June 10, 2020, 03:47 PM
Waz
For DB tables, there is a CREATE SYNONYM command.

For CSV, no, as its extremely difficult to determine the content of a field. Many assumptions would need to be made. Even the number of columns may be difficult if some rows have more columns than others.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 10, 2020, 10:37 PM
nox
Thanks Waz.

I'm reading these topics to try figure out how to use, thanks for the hint:

http://forums.informationbuild...71057331/m/956107535

http://forums.informationbuild...1057331/m/3241080881


WebFOCUS v8.2.06 , Windows