Forum Discussion
aqAnt
14 years agoSmartBear Alumni (Retired)
Hello Bill,
You need to create a parameter to work with. For example:
Please see the Call an SQL Stored Procedure article for more information.
You need to create a parameter to work with. For example:
function Test_GetMachineConfiguration(instanceNumber) {
var qry = ADO.CreateADOStoredProc();
qry.ConnectionString = ConnectionString.ConnectionString();
qry.ProcedureName = "dbo.STUV_GetMachineConfiguration";
qry.Parameters.CreateParameter("return_value", adInteger, adParamReturnValue, 0, null);
qry.Parameters.CreateParameter("InstanceNumber", adInteger, adParamInput, 0, instanceNumber);
qry.ExecProc();
return qry.Parameters.ParamByName("return_value").Value;
}
Please see the Call an SQL Stored Procedure article for more information.
Related Content
- 2 years ago
Recent Discussions
- 13 hours ago