Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Calling stored proc in .FEX
Go
New
Search
Notify
Tools
Reply
  
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, 2003Reply With QuoteReport 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, 2004Reply With QuoteReport 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, 2003Reply With QuoteReport 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, 2003Reply With QuoteReport 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, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Calling stored proc in .FEX

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.