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     [SOLVED] How do I write data direictly to SQL from a .fex

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How do I write data direictly to SQL from a .fex
 Login/Join
 
Member
posted
I have a fairly simple question (i hope)
In order to monitor the use of my reports, I want to create an INCLUDE file that writes the date, fexname, and user name to an Sql-table.
Can Anyone show me the syntax to wite to sql from a fex?

(i'm using WF 7.703)

Thanks

Hero

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 7.611
WebFocus 7.703
Windows, All Outputs
 
Posts: 6 | Registered: August 20, 2013Report This Post
Expert
posted Hide Post
Lots of examples and threads on this. Search on "sql update" in this forum for 12 pages of postings.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks Tony for your reply.
I looked at the threads, but frankly, I cannot make heads nor tails from all the posts.
I do not have much experience in WF, so general advice is of little use to me.

I am looking for a simple example I can use to send & values to my sql database.


WebFocus 7.611
WebFocus 7.703
Windows, All Outputs
 
Posts: 6 | Registered: August 20, 2013Report This Post
Expert
posted Hide Post
Hi Hero,

From the multitude of threads that there are, you should have found that you can use (what is known as) SQL Passthru.

The basis of this is that you can embed SQL syntax between the command "SQL SQLMSS" (for MSSQL) and a semi-colon. The SQL that you can use is generally most (if not all) of the SQL available via your adapter i.e. if you use the MSSQL adapter, you can use MS SQL, if you use the ODBC adapter to access MS SQL instances then your SQL is restricted (because ODBC is restrictive).

Using this you will understand that the following code could be used via an MS SQL adapter (without using WF synonyms) -
SQL SQLMSS
  update [your target table] T1
     set column4 = (select column1 | column2
	             from [your source table] S1
                     where T1.column1 | T1.column2 | T1.column3
                         = S1.column1)
;
END

... and similar code.

Alternatively you could use MAINTAIN (your licencing would need to be checked) or MODIFY - these languages would use the synonyms (*.mas and *.acx files) and they would need to be configured correctly (with permissions etc.) to enable you to write to your chosen SQL table.

Good luck.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks Tony,
This is usefull.
I'll give it a try


WebFocus 7.611
WebFocus 7.703
Windows, All Outputs
 
Posts: 6 | Registered: August 20, 2013Report 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     [SOLVED] How do I write data direictly to SQL from a .fex

Copyright © 1996-2020 Information Builders