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     trouble with SQL passthru

Read-Only Read-Only Topic
Go
Search
Notify
Tools
trouble with SQL passthru
 Login/Join
 
Member
posted
I have tried several ways to connect to my SQL db and retrieve records from a fairly simple table (12 columns). The db is 700+K rows, query runs in seconds on the SQL server but will hang and run indefinitly when trying to retrieve in WF. I've tried different methods (calling from stored proc, with MRNOEDIT and without, etc). If I request a record limit it will return data quickly...not sure why it's choking on the entire table. Any ideas are appreciated. Thanks.


-MRNOEDIT BEGIN
-*
ENGINE SQLMSS SET DEFAULT_CONNECTION CORP-DB-02
SQL SQLMSS

SELECT * FROM ShopperTrak.dbo.ShopperTrakData;

TABLEF FILE SQLOUT
PRINT *
END
-MRNOEDIT END
-EXIT
-RUN


WF7.7
WIN 08 SERVER SP2
EXL2K, HTML, PDF
 
Posts: 14 | Registered: July 18, 2011Report This Post
Expert
posted Hide Post
Has your query on SQL server returned all the rows or just the visble ones.

Have you looked at the WebFOCUS servers agent to see what is happening, if the query is finished and the records are being returned, then you will see the count going up.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Looks like you are simply missing an end statement:
ENGINE SQLMSS SET DEFAULT_CONNECTION CORP-DB-02
SQL SQLMSS

SELECT * FROM ShopperTrak.dbo.ShopperTrakData;
END <--
TABLEF FILE SQLOUT
PRINT *
END 


BTW, no need for MRNOEDIT


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Member
posted Hide Post
Thanks Waz and Guru - Yes, END was needed, silly me...however now when we run we can tell thru server agent all 700+K rows are being pulled but the webpage just runs blank then eventually dies, no results displayed. All rows return within 6 seconds when queried in SQL server. We've even tried reducing result set by WHERE clause in fex and still no luck. Frowner


WF7.7
WIN 08 SERVER SP2
EXL2K, HTML, PDF
 
Posts: 14 | Registered: July 18, 2011Report This Post
Expert
posted Hide Post
700,000 records to the screen???

TABLEF FILE SQLOUT
PRINT *
ON TABLE PCHOLD FORMAT EXL2K
END

OR

ENGINE SQLMSS SET DEFAULT_CONNECTION CORP-DB-02
SQL SQLMSS
SELECT TOP 1000 * FROM ShopperTrak.dbo.ShopperTrakData;
END
TABLEF FILE SQLOUT
PRINT *
ON TABLE PCHOLD FORMAT EXL2K
END


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
We need the entire result set returned from SQL passthru for data to be available from the fex variables defined by the user form. Its unlikely the users will need all 700K rows all at once (and we will discourage the request if they do) however we need to be able to retrieve whatever date, location etc ad-hoc. The query runs but crashes the browser when attempting to display results.


WF7.7
WIN 08 SERVER SP2
EXL2K, HTML, PDF
 
Posts: 14 | Registered: July 18, 2011Report This Post
Expert
posted Hide Post
Just a thought,

How long does it take to get the data and hold it, not PCHOLD it.

If its quick, then perahps you can copy the data to a central location, or zip and email, or something.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Thanks for the SQL Select tidbit...handy!
 
Posts: 22 | Location: Tulsa, OK | Registered: February 17, 2011Report This Post
Virtuoso
posted Hide Post
If you really need it in the browser, you could also take a look at the pagination possibility with ON TABLE SET WEBVIEWER ON.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 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     trouble with SQL passthru

Copyright © 1996-2020 Information Builders