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.
I am using SQL passthru in the following format and it works:
SQL SQLMSS SET DEFAULT_CONNECTION conn1 SQL SQLMSS PREPARE SQLOUT FOR select * from db_name.dbo.table_name ; END TABLE FILE SQLOUT PRINT * END
But, when the report is ready to be run against a different connection and db, I have to rename all the connection names and db names.
Changing connection name - we can live with that.
But why do we need to prefix the db_name? If I dont prefix I get the following error -
(FOC1400) SQLCODE IS 208 (HEX: 000000D0) XOPEN: 42S02 : Microsoft OLE DB Provider for SQL Server: [42S02] Invalid object name 'table_name'. [42000] Statement(s) could not be prepared. [] Deferred pre : pare could not be completed. L (FOC1405) SQL PREPARE ERROR. (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT BYPASSING TO END OF COMMAND
Any help on this issue is very much appreciated.
Thanks.This message has been edited. Last edited by: BIGuru,
Have you tried using variables for both the connection and db_name? I used it at one job, it was their standard. What you do is set up a -include Names, which is a member in your procedure library, and depending on which db you are going against, you just -include the correct names.
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
I tried that and it works with the db_name prefix: -INCLUDE app/abc.fex SQL SQLMSS PREPARE SQLOUT FOR select * from db_name.dbo.table_name ; END TABLE FILE SQLOUT PRINT * END
However it does not work without the db_name prefix. That’s the big problem! This table exists in all the environments, so that should not be the problem.
--------------------------------- Prod - WebFOCUS 7.7.03/ MS-SQL Server 2005/ParAccel/Windows 2008 R2 64Bit Test - WebFOCUS 7.7.03/ MS-SQL Server 2005/ParAccel/Windows 2008 R2 64Bit Dev - WebFOCUS 7.7.03/ MS-SQL Server 2005/ParAccel/Windows 2008 R2 64Bit Output - PDF/HTML/AHTML/Excel