Focal Point
[CLOSED] SQL Passthru code returnin different results

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/903108345

October 07, 2010, 04:13 PM
Laure
[CLOSED] SQL Passthru code returnin different results
I have embedded SQL in a fex. It is MS SQL Server. When I run the EXACT SQl is a TOAD editor agains the database I get different results than when running it from within FOCUS.

Oddly if I make my connect string UPPERCASE I get the same results as under TOAD.

Had anyone seen this, and know the root cause? I'm concerned that this is just a fluke as we have dozens of FOCUS scripts that run embedded code.

This message has been edited. Last edited by: Kerry,


Laure


Prod: WebFOCUS 7.7.03 - MRE, BID, - WindowsXP - Oracle 9i, SQLServer, DevStudio 7.7.3 - Apache Tomcat , Output: HTML, Excel 2013 and PDF
October 07, 2010, 04:50 PM
Francis Mariani
Laure,

The only thing I can suggest is, sometimes, it looks like the SQL is sent directly to the SQL engine (passthru), but instead, WebFOCUS is using the metadata. I would verify the SQL ENGINE connection and also turn SQL traces on - it might shine a light on what's going on. Why post some of your code, including the connection string?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 08, 2010, 01:41 AM
Dan Satchell
If your connection string command is failing due to improper case, etc., is the query using a default connection and database instead?


WebFOCUS 7.7.05