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     [CLOSED] SQL common table expression "With"

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SQL common table expression "With"
 Login/Join
 
Silver Member
posted
I have a problem where on one computer I can run a procedure in DevStudio that beings like

ENGINE SQLMSS SET CURSORS CLIENT
SQL SQLMSS PREPARE SQLOUT FOR
-DEFAULTH &te = '&te='
WITH CTE(AC, INTER, FEEDDIRECTION, FEEDFREQUENCY, etc etc etc

It runs beautifully

BUT THE Same procedure on my laptop will not run but both are using the same version of dev studio error is

FOC1400) SQLCODE IS 156 (HEX: 0000009C) XOPEN: 42000
: Microsoft OLE DB Provider for SQL Server: [42000] Incorrect syntax near
: the keyword 'WITH'. [42000] Incorrect syntax near the keyword 'with'. If
: this statement is a common table expression or an xmlnamespaces clause,
: the previous statement must be terminated with a semicolon. [42000] Sta
: tement(s) could not be prepared. [] Deferred prepare could not be comple
: ted.


Any Ideas? Must be something very subtle

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 37 | Registered: December 03, 2010Report This Post
Platinum Member
posted Hide Post
Well, since I for one avoid using SQL in a WebFOCUS application like the plague for just this kind of problem(s), I would look at the versioning of the SQL Server data sources, the SQL Server Clients running on the two machines and last but not least the configuraton of the iWay connectors to make sure all of those match.

You might have to dig down as far as the SQL Server User Permissions for the User ID associated with the Data Server.

And before I get pilloried for my SQL statement above, if you think Roy is having fun, try working for an Oracle based client one month, a DB2 the next, take 3 months off and then help a client with both SQL Server and AS400. Trust me, "ANSI Standard SQL" is NOT standard :-)


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005Report 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     [CLOSED] SQL common table expression "With"

Copyright © 1996-2020 Information Builders