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] Calling SQLMSS stored procedure to load files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calling SQLMSS stored procedure to load files
 Login/Join
 
Platinum Member
posted
I have a report that requires no variables. You just run it and it delivers all the correct rows to the browser. All the column names match the field names in the MSSQL DB I want to send these rows to.

Here is the sql set up information:
ENGINE SQLMSS SET DEFAULT_CONNECTION wfdata_dev
SET SQLENGINE = SQLMSS
SQL SQLMSS EXEC WFData_dev.dbo.Load_Labor_Records ‘&Job_Title’, &Pay_Grade, ‘&FT_Job_Nbr’, ‘&PT_Job_Nbr’, &Company, &Emp_Status, ‘&Company_Name’, &Business_Unit, ‘&Period_DT’, &Emp_Count;
-RUN
TABLE FILE SQLOUT
PRINT *
WHERE RECORDLIMIT EQ 2000;
END


My report is underneath:

[CODE]
JOIN
.
.
WHERE
.
.
BY
BY
..
ON TABLE HOLD SQLOUT
END
-RUN
[CODE]

When I run it the browser prompts me for all 10 of the column names listed after the stored procedure name as if they were amper variables.

I want it to grab this 1400 or so rows and add them to the database.

This message has been edited. Last edited by: <Kathryn Henning>,


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
<Kathryn Henning>
posted
Hi Greg,

Please remove the ampersand character from the beginning of each name and ensure that all of them are enclosed in single tick marks.

Thanks and regards,

Kathryn
 
Report This Post
Platinum Member
posted Hide Post
quote:
‘&Job_Title’

Alternate approach is you need to send the "&" to SQL server you can escape them with the vertical bar e. g. ‘&|Job_Title’


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Report This Post
Guru
posted Hide Post
quote:
‘&|Job_Title

It think this does the trick, if the SQL Server Stored procedure expects a String input "&Job_Title"

Else where Modify your Stored Proc to accept strings without & and just pass "Job_Title".

Thanks..


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report 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] Calling SQLMSS stored procedure to load files

Copyright © 1996-2020 Information Builders