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     How to read the data from Sql server store procedure ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to read the data from Sql server store procedure ?
 Login/Join
 
Platinum Member
posted
Hi ,

Please help me to read the data from Sql server store procedue ... can anyone send the samlple code ....


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Member
posted Hide Post
ENGINE SQLMSS SET DEFAULT_CONNECTION CON1(Data Adapter Name)
SQL SQLMSS
EX SP1(Store Procedure Name) East,Jan,2007 (Parameter values);
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS SQLOUT
END
TABLE FILE SQLOUT
PRINT
Column1
Column2
Column3
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END


Moogi
-----------------------------------------------------------
Prod: WF 7.1.3 Platform Windows, databases: msSQL2000, msSQL2005
Test: WF 7.1.3 on the same platform and databases
 
Posts: 8 | Registered: January 12, 2006Report This Post
Platinum Member
posted Hide Post
Hi Moogi
in that code what is SP1


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
quote:
SP1(Store Procedure Name)


the answer is there already...

and please update your signature (profile update)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
You may want to try an 'END' on the line following the ex sp1 before you begin your table file sql...

Ira WF 5.3.6
 
Posts: 29 | Registered: March 30, 2007Report This Post
<Darron>
posted
I have found that if you run the stored procedure without the END statement it causes problems with the rest of process flow
 
Report This Post
Gold member
posted Hide Post
Additionaly, to
SQL SQLMSS
EXEC ...
END
I have found that WF have problems running SPs with #-tables in body.
E.g.
CREATE PROCEDURE sample_proc 
  @xtype char(2)
AS
SELECT id,name INTO #t FROM sysobjects
 WHERE
  xtype = @xtype
SELECT id, name FROM #t

(we have a lot of such procs written before)

You can create master-file for SP.

And run it with
TABLE FILE sample_proc
PRINT 
  ID
  NAME
WHERE @XTYPE EQ '&xtype'
END

With this kind of invokation - no problems with #-tables.

Also - there is possibility to create JOIN with such MFDs.
You can make JOIN table to SP and pass fields from table as params to SP.
(Quite cool for me)

Regards,
Alex


WF 7.6.2, WinNT/2K, MSSQL 2K, MSOLAP 2K, BID
 
Posts: 79 | Location: Moscow | Registered: April 27, 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     How to read the data from Sql server store procedure ?

Copyright © 1996-2020 Information Builders