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     calling param in SQL EX

Read-Only Read-Only Topic
Go
Search
Notify
Tools
calling param in SQL EX
 Login/Join
 
Platinum Member
posted
Hi,
I have a stored procedure with

TEST @var1= 1, @var2= 0,@var3 = 'a';

I want to run it thru webfocus.

SQL MSS
EX TEST 1,0,'a'


Is there a way to specify only 2 variables,
something like, but this is not working.

SQL MSS
EX TEST var1= 1,var3 = 'a'

What I am looking for is to pass variables using their SQL Name.

Any help is appreciated.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
quote:
EX TEST var1= 1,var3 = 'a'

Is that supported by the Adapter for MS SQL Server? What does the documentation say?

Check: DN# 4500931.1209 - Adapter Administration for UNIX, Windows, ... 7.6.11



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
I looked in the manual and there is only documentation for positional parameters i.e.,it has to be passed in the order of var1, var2 ,etc without specifying the variable name.
For Ex:
SQL MSS
EX TEST 1,0,'a'
But our requirement is that these stored procedures change and new variables might get added in the middle.., so we need to reference them using their name, so that we do not have to change the code.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Platinum Member
posted Hide Post
Can anyone suggest a solution for this.?


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
quote:
,it has to be passed in the order of var1, var2 ,etc without specifying the variable name.


Sadly there's your answer from a WF rule standpoint.

If you really want to pass just 2 or 3 parameters to your 10 parameter stored procedure, you may need to create a "helper" or wrapper stored procedure that *always* receives the 2 or 3 parameters you would pass from WebFOCUS. From within that procedure, you can then call your other stored procedure specifying only the parameters you want by name (not by position).

Of course, that means that if you envision having different WebFOCUS "ways" to call your stored procedure, then you'll need as many wrappers. Not optimal but it's the only way I can see to not be limited by the WebFOCUS syntax.

Let's hear from others suggesting something more workable and maintainable.

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



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
Thank you njsden for your suggestion. Does anyone have any more ideas?


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 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     calling param in SQL EX

Copyright © 1996-2020 Information Builders