This question is locked. New answers and comments are not allowed.
In the following code, the last two parameters, forwarder code and password, are marked as OUTPUT in the stored procedure. Also, the sproc returns a -1 or a 0 depending on success. Yet, if I look at the "res" variable right before it is returned, its "OutParameter" property is NULL. So how can I get at the output parameters and the return val?
public static IQueryResult RetrieveAttributes(IObjectScope scope, string edireceiveretrieveattributesspUserName, string edireceiveretrieveattributesspforwardercode, string edireceiveretrieveattributesspPassword) |
{ |
IQuery query = scope.GetSqlQuery("edi_receive_retrieve_attributes_sp ?,?,?", null, "VARCHAR edi_receive_retrieve_attributes_sp_UserName,VARCHAR edi_receive_retrieve_attributes_sp_forwarder_code,VARCHAR edi_receive_retrieve_attributes_sp_Password"); |
IQueryResult res = query.Execute(new object[] { edireceiveretrieveattributesspUserName, edireceiveretrieveattributesspforwardercode, edireceiveretrieveattributesspPassword }); |
int a = res.Count;//Actually executes the query |
return res; |
} |