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] MS SQL Server SQL Passthrough

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] MS SQL Server SQL Passthrough
 Login/Join
 
Platinum Member
posted
Hi,

We are using MSSQL Server for our reporting, I added new adapter on the server and tested, everything looks good. But when I try to some SQL pass through for a report I`m receiving following error message
" (FOC1671) CONNECTION MSSQL_MPS2 IS NOT DECLARED FOR INTERFACE SQLMSS"

My Code:

 SQL SQLMSS SET SERVER MSSQL_MPS2
SQL SQLMSS SET CONVERSION LONGCHAR ALPHA
SQL SQLMSS SET VARCHAR OFF
SQL SQLMSS EX bimps2.dbo.procedure 'paay','CYPQ','T','9050';



Please let me know what is the issue.

Thanks

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Virtuoso
posted Hide Post
Add this to your code and see what you get:
SQL SQLMSS ?

If you have multiple connections defined, the connection named in the first SET
CONNECTION_ATTRIBUTES command serves as the default connection. You can override
this default using the SET DEFAULT_CONNECTION command.

ENGINE SQLMSS SET DEFAULT_CONNECTION connection_name

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


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
 An error has occurred
Detail:
(FOC1450) CURRENT SQLMSS   INTERFACE SETTINGS ARE :

(FOC1758) CURRENT ISOLATION LEVEL IS          -  : RC
(FOC1496) AUTODISCONNECT OPTION IS            -  : ON FIN
(FOC1499) AUTOCOMMIT OPTION IS                -  : ON COMMAND
(FOC1491) FETCH BUFFERING FACTOR              -  : 100
(FOC1755) CURSORS TYPE IS                     -  : NOT SET
(FOC1723) TRANSACTION MODE IS                 -  : LOCAL
(FOC1441) WRITE FUNCTIONALITY IS              -  : ON
(FOC1445) OPTIMIZATION OPTION IS              -  : ON
(FOC1763) IF-THEN-ELSE OPTIMIZATION IS        -  : ON
(FOC1709) NCHAR OPTION IS                     -  : SBCS
(FOC1671) CONNECTION MSSQL_MPS2 IS NOT DECLARED FOR INTERFACE SQLMSS
(FOC1671) CONNECTION MSSQL_MPS2 IS NOT DECLARED FOR INTERFACE SQLMSS
(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF)
(FOC1500)  :  SQL OLE DB Interface: Could not find the default Connection: No SET
(FOC1500)  :  CONNECTION_ATTRIBUTES or SET USER Command has been entered.
L    (FOC1405) SQL PREPARE ERROR.
ERROR AT OR NEAR LINE     12  IN PROCEDURE ADHOCRQ
(FOC305) SPECIFIED LABEL NOT FOUND: ERROR 

This is the message I received from APP Studio

when I test Adapter on the server, it was success
 Microsoft SQL Server Adapter Test: Successful ( MSSQL_MPS2 ) 

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Virtuoso
posted Hide Post
I don't see a Default Server name. Try the syntax I provided above for setting a default connection.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
I added as bellow, still same error

 SQL SQLMSS ?
ENGINE SQLMSS SET DEFAULT_CONNECTION MSSQL_MPS2
-*SQL SQLMSS SET SERVER MSSQL_MPS2
SQL SQLMSS SET CONVERSION LONGCHAR ALPHA
SQL SQLMSS SET VARCHAR OFF
SQL SQLMSS EX dbo.sp_report_customersetup 'paay','CYPQ','T','9050'; 

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Virtuoso
posted Hide Post
On the reporting server right click MSSQL_MPS2 and click test. What do you see?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
It is successful
This is the message I received.
Microsoft SQL Server Adapter Test: Successful ( MSSQL_MPS2)  


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Virtuoso
posted Hide Post
Krishna

I found this on techsupport. It sounds like your adapter is configured under SQLODBC not SQLMSS

Diagnostics

Applications using ENGINE SQLMSS result in an error: FOC1671 MSSQL IS NOT DECLARED
Case: 190826028 Product: Reporting Server Release: 82 8204 Primary OS: Windows Date: 2019-08-27
Case information refers to the Product, Release, and OS for which this question was asked. The solution may apply to other Products, Releases, and Operating Systems.

Symptom

(FOC1671) CONNECTION MSSQL IS NOT DECLARED FOR INTERFACE SQLMSS

Problem

Applications that use the following command result in the error message above.

ENGINE SQLMSS SET DEFAULT_CONNECTION MSSQL

Solution

The issue is the use of the wrong SQL Server Adapter engine specified by SQLMSS. SQLMSS is the OLEDB version of the adapter, but the ODBC adapter is configured which uses an engine of MSODBC. Specifying the MSODBC engine resolved the issue.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Thank you Chuck,

That fixed my issue.

Thanks,
Krishna...


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report 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] MS SQL Server SQL Passthrough

Copyright © 1996-2020 Information Builders