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     SQL Server Stored procedure VS webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL Server Stored procedure VS webfocus
 Login/Join
 
<cwang>
posted
Hi all,

My webfocus reports access SQL server database, In some of my repots I have to use a SQL server view which combined three other views and other two tables to generate reports. In my base tables, each table contains few millions repcords,I don't think this is a very good way to retrive information, but I really don't have any other better ideas to go. I am more concerned about the perfomance for the high volume and table,view join together,Is this possible I can use stored procedures to replace the views I used?
or any other good ideas?

Thanks
 
Report This Post
Gold member
posted Hide Post
Sure you can call Stored Procedures, I do that very often...

Ex:

SQL SQLMSS SET SERVER PROD
SET SQLENGINE = SQLMSS
SQL SQLMSS EX Scenarios..GetProjectRDIndirectCostsOverall '&KEY';
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS RESULT
END
 
Posts: 87 | Location: Montreal, QC, Canada | Registered: September 03, 2004Report This Post
Guru
posted Hide Post
If you're good with FOCUS, you can do it all without Stored Proces or views. There's an old post

Efficiencies : WebFOCUS with SQL

If you click on page 37 of this forum, it might be worth reading.

Of course, if you're more comfortable with Stored procs, then that should be your path.
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
<cwang>
posted
Thanks for the responses, I will certainly some both of the suggestions.
 
Report This Post
Platinum Member
posted Hide Post
In my experience, you will not get any significant performance improvements by using stored procedures. After all, if you look under the covers, the stored procedure is executing SQL calls against the same tables/views that you are already reporting against anyway.

That said, there will be occasional situations where it is more efficient to break up a single query into multiple calls. In this case you can use stored procedures and/or WebFOCUS logic to break up the calls and control the flow of the report.

As to which approach to take, it's a judgement call...

If there is even the slightest chance that your application may be ported/migrated to a different RDBMS (Oracle, DB2, MySQL, etc), then WebFOCUS is the obvious choice. Otherwise, it depends on your skill & comfort level. If you keep everything in WebFOCUS, your program logic is all in one place and your system should be easier to maintain & debug. However, if you are already comfortable working with stored procedures and you are under a tight deadline, then using stored procedures may work better for you.

EricH
 
Posts: 164 | Registered: March 26, 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     SQL Server Stored procedure VS webfocus

Copyright © 1996-2020 Information Builders