Dwight Crevelt
2008-02-20 23:16:38 UTC
I am getting errors trying to access a stored procedure on a MSSQL server
using DBX tsqlstoredproc in D2007
Stored Procedure name sp_GetClientInfo, input param @plcard, outputs several
parameters Plfname, Pllname
The following gives an Index out of bounds error.
sqlstoredproc1.Close;
sqlstoredproc1.Params.CreateParam(ftstring,'@plcard',ptinput);
sqlstoredproc1.ParamByName('@plcard').asstring := edit1.Text;
sqlstoredproc1.ExecProc;
Removing the CreateParm line gives a Sqlstoredproc1 error parameter plcard
not found.
Removing the ParamByName line ALSO gives a MS SQL Server error
sp_GetClientInfo expecting parameter @plcard which was not provided.
using Open vs. ExecProc gives same results.
How do you get the SQLStoredProc in DBX to work?
using DBX tsqlstoredproc in D2007
Stored Procedure name sp_GetClientInfo, input param @plcard, outputs several
parameters Plfname, Pllname
The following gives an Index out of bounds error.
sqlstoredproc1.Close;
sqlstoredproc1.Params.CreateParam(ftstring,'@plcard',ptinput);
sqlstoredproc1.ParamByName('@plcard').asstring := edit1.Text;
sqlstoredproc1.ExecProc;
Removing the CreateParm line gives a Sqlstoredproc1 error parameter plcard
not found.
Removing the ParamByName line ALSO gives a MS SQL Server error
sp_GetClientInfo expecting parameter @plcard which was not provided.
using Open vs. ExecProc gives same results.
How do you get the SQLStoredProc in DBX to work?
--
Dwight Crevelt
Dwight Crevelt