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     Calling stored proc in .FEX

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calling stored proc in .FEX
 Login/Join
 
Gold member
posted
I am trying to call my stored proc in SQL server in .fex
I am getting following error
"Microsoft OLE DB Provider for SQL Server: [08004] Could not locate entry
: in sysdatabases for database 'KasiTest'. No entry found with that
: name. Make sure that the name is entered correctly"

But the database name and stored proc name are correct.
If anyone can help me with the steps to be followed, it would be great.
 
Posts: 71 | Registered: November 20, 2003Report This Post
Platinum Member
posted Hide Post
I have yet to use SQL with Focus but from my old SQL server days I do remember that depending on your server settings the DB name can be case sensitive, so I would check that first.
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Silver Member
posted Hide Post
This is the code I use and it works fine.

ENGINE SQLMSS
EX dbname.owner.tablename parameter, parameter;
TABLE FILE SQLOUT
PRINT *
END

We have several databases on SQL. WebFOCUS has db_datareader permissions only to certain databases. So the access file has to have the dbname also.

Example:
SEGNAME=ES_CATEGORY,
TABLENAME=EMPLOYEESURVEY.dbo.CATEGORY,
CONNECTION=SQLPROD,
KEYS=1
,$

Hope this helps.

Raelene
 
Posts: 31 | Location: Oklahoma City, OK | Registered: September 11, 2003Report This Post
Gold member
posted Hide Post
Hi,
Can you advise me whether I need to create the Master file the stored proc before using that in my report.

I tried to create the master file but i hope i can create the master file out of only Table and View only right???
 
Posts: 71 | Registered: November 20, 2003Report This Post
Guru
posted Hide Post
you don't need a master file for running a stored procedure, here's another sample of code;
CHANGE yourserver to your server
Change STOREDPROC to the name of your stored procedure

This example passes 2 variables to the stored procedure. Lastly, results get put in a file named SQLOUT, which you can only make one pass at. For this reason, I always create another hold file from the results of SQLOUT.
Good Luck, Carol

SQL SQLMSS SET SERVER yourserver
SET SQLENGINE = SQLMSS
SQL SQLMSS EX STOREDPROC '&STARTDATE','&ENDDATE' ;
TABLE FILE SQLOUT
PRINT STARTDATE ENDDATE
ON TABLE HOLD AS YOURFILE
END
-RUN
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report 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     Calling stored proc in .FEX

Copyright © 1996-2020 Information Builders