Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Dynamic selectionof a SQL table?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic selectionof a SQL table?
 Login/Join
 
Member
posted
I am trying to read data from an MS-SQL database that contains multiple tables with identical columns. I would like to be able to select a specific table from within my procedure.

I know that there is syntax using ENGINE SQLMSS SET CONNECTION_ATTRIBUTES to select a connection dynamically without storing it in the .acx file.

Is there equivalent syntax (or some other mechanism) to set the 'tablename' as well, without having to create a separate synonym and separate .mas and .acx files for each table?
 
Posts: 1 | Registered: May 29, 2007Report This Post
Master
posted Hide Post
I do not believe that there is away out of the box. But, you could you dialog manager code with -WRITE to create a new ACX file in the users temporary directory with the real table name in it. But I would suggest creating seperate MAS and ACX files. It is much easier.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
That's a tough one. The table name is the link to the DBMS, so in order to get this you would have to have something inside of the DBMS that could handle this, which I don't think there is for MSSQL. I don't know what the reason is for NOT creating master and access files for the necessary tables, but you probably have one. We handle this by creating all the MFDs we would use and then using Dialogue Manager -SETs to populate an &TABLE variable. This allows us to dynamically determing which table should be accessed at run time based on whatever logic was used.

-SET &TABLE=insert logic here;
TABLE FILE &TABLE
.
.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Dynamic selectionof a SQL table?

Copyright © 1996-2020 Information Builders