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] SQLMSS Stored Procedure Syntax

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] SQLMSS Stored Procedure Syntax
 Login/Join
 
Guru
posted
Hi folks,

I have a SQLMSS Stored Procedure that works OK from the SQL Management Console but I am unable to create a Synonym for it nor can I call it in a procedure without errors.

The Synonym Editor gives me this...
(FOC1400) SQLCODE IS 156 (HEX: 0000009C) XOPEN: 42000 : Microsoft OLE DB Provider for SQL Server: [42000] Incorrect syntax near : the keyword 'AS'. [42000] Incorrect syntax near the keyword 'AS'. (FOC1405) SQL PREPARE ERROR.


Calling it from a fex gives me this...
(FOC1400) SQLCODE IS 208 (HEX: 000000D0) XOPEN: 42S02
 : Microsoft OLE DB Provider for SQL Server: [42S02] Invalid object name '#pivot_columns'.
 L    (FOC1405) SQL PREPARE ERROR.
 (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
 (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT
 BYPASSING TO END OF COMMAND


I'm trying to figure out how to get more detail about these errors. The documentation makes a reference to using the RAISERROR method to capture the errors but beyond that there isn't any instruction on how to use it.
Can you point me in the right direction to learn more about the RAISERROR method or some other method if you have one?

Thanks!

Dan

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


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Guru
posted Hide Post
I guess it's all in how you call the Stored Procedure.

This is the code that ended up working for me...
ENGINE SQLMSS SET DEFAULT_CONNECTION DATABASENAME
SQL SQLMSS SET NOCOUNT ON 
SQL SQLMSS SET ANSI_WARNINGS OFF
SQL SQLMSS EX [dbo].[storedProcedureName];
-RUN
TABLE FILE SQLOUT
PRINT *
END


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Silver Member
posted Hide Post
Dan
Thanks a million for this posting.This helped me resolve my problem of accessing/ passing an MDX query via WebFOCUS.
I am a bit sad that you cannot do a direct PASSTHROUGH query (with MDX queries)
However..
I am now able to interrogate my SQL Server data mining models and display the results within WebFOCUS.
regards Steve Simon

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


WebFOCUS 7.7.01 Windows, TSO 7.0
 
Posts: 43 | Registered: April 18, 2007Report This Post
Guru
posted Hide Post
Stefaans,

I'm glad to hear this information was useful to you!

Cheers!

Dan


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report 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] SQLMSS Stored Procedure Syntax

Copyright © 1996-2020 Information Builders