IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    sql passthru derived tables
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
In principle should WF5.3.6 handle derived tables in SQL passthru?
I keep getting
(FOC14006) SQL TRANSLATOR ERROR Invalid node/attribute

The valid query using derived tables is aganst MS SQL.
If each nested derived table query is run independently it is successful.
 
Posts: 2 | Registered: December 29, 2004Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
Maybe you need to issue a SQL SQL command instead in order to pass the SQL absolutely unchanged.

I assume that you have tested this already outside of WF and you know the derived table SQL is correct?
 
Posts: 41 | Registered: December 02, 2004Reply With QuoteEdit or Delete MessageReport This Post
<WFUser>
Posted
Chris is correct. The correct syntax is

SQL SQLMSS
select ....;
END

If you are getting a translator error, you may have

SQL
select ....;
END
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Yes, the full query runs fine in query analyzer.
Using SQL SQL before sql statement in focexecresults in failed db connection.

What does "(FOC14006) SQL TRANSLATOR ERROR Invalid node/attribute" indicate?
 
Posts: 2 | Registered: December 29, 2004Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
You have to use 'SQL SQLMSS' not 'SQL SQL'

Example:

SQL SQLMSS

SELECT acc_count
FROM (SELECT count(acc_name) AS acc_count
FROM t_account
WHERE acc_version_date='09/30/04') abc;


TABLE FILE SQLOUT
PRINT *
END
 
Posts: 106 | Location: Boston | Registered: April 23, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    sql passthru derived tables

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.