Focal Point
Stored procedure with parameters

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8041061551

February 20, 2006, 08:50 AM
Moogi
Stored procedure with parameters
Hi,

I am new to the WebFOCUS tool and I am using stored procedure in SQL Report to get the data using parameters from the database. I am getting following error.

The Error:

(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF) XOPEN: 22018
: Microsoft OLE DB Provider for SQL Server: [22018] Invalid character valu
: e for cast specification.
L (FOC1405) SQL PREPARE ERROR.

SQL Report code:

ENGINE SQLMSS SET DEFAULT_CONNECTION BMC
SQL SQLMSS
EX usr_collection_efficiency_history
@subscriber_key,@collateral_type_key,@peergroup_portfolio_key,@Peergroup_footprint_key,
@loan_origination_type_key;
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS SQLOUT
END

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


Moogi
-----------------------------------------------------------
Prod: WF 7.1.3 Platform Windows, databases: msSQL2000, msSQL2005
Test: WF 7.1.3 on the same platform and databases
February 20, 2006, 02:02 PM
dhagen
That error usually means that you are passing a character value for an integer, or char for date etc. Are you supplying the proper values for your arguments? Also, are the @ symbols suppose to be ampersands (&)?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
February 21, 2006, 01:12 AM
Moogi
quote:
dhagen


Thanks a lot for help. Actually I was passing the parameter names instead of values. Now it is working perfectly after passing values. But I need to change the values dynamically where I can assign my filter values to the parameters. Please let me know how do assign values dynamically.


Moogi
-----------------------------------------------------------
Prod: WF 7.1.3 Platform Windows, databases: msSQL2000, msSQL2005
Test: WF 7.1.3 on the same platform and databases
February 21, 2006, 05:03 PM
k.lane
Here's a previous posting of mine...

https://forums.informationbuilders.com/eve/forums/a/...051009331#1051009331


Prod - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE
Dev - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE
Databases: Oracle 10g, SQL Server 2000, DB2.