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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


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