Focal Point
[SOLVED] WebFOCUS SQL Script Option

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

January 20, 2020, 05:38 PM
Dan Brooke
[SOLVED] WebFOCUS SQL Script Option
Hi all,

In WebFOCUS (8205) we have the ability to create a new text file with an SQL extension (or to upload a .sql file). I'm wondering if there's any way to leverage these files when running a fex file.

Obviously, we'd need to provide an adapter and connection but since we use SQL pass thru is there a way to basically point at the .sql file when a report runs?

This is specifically looking at the SQL Script option in the WebFOCUS repository (not Reporting Server).

Thanks!

This message has been edited. Last edited by: Dan Brooke,


Dan B.
WebFocus 8205M
January 20, 2020, 06:10 PM
Waz
Have you tried to -INCLUDE the .sql file ?


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!

January 21, 2020, 08:19 AM
Dan Brooke
Waz, that worked! I had tried it before posting but I'm pretty sure I had a syntax error. Thank you!

As a follwup, is there a way to reference this from InfoAssist? My goal is to allow end users to upload .sql files and leverage them to create content in InfoAssist.

I imagine I can get the SQL written to a hold file and create content against that hold file but the hold file wouldn't update to pull new data.

Thanks for the help so far!

Dan


Dan B.
WebFocus 8205M
January 21, 2020, 10:04 AM
Tony A
Investigate the SQL_SCRIPT format - it might help you some, but would probably depend upon what level of security you give to your groups and roles.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 23, 2020, 10:36 AM
Dan Brooke
Tony, thanks for the reply!

I think we'll be able to leverage SQL_SCRIPT to help us with this. Thanks!


Dan B.
WebFocus 8205M