[Info-ingres] RE: returning a single value from a database procedure in .NET
- From: "Thole, David J" <David.Thole@xxxxxx>
- Date: Thu, 21 Jul 2005 16:27:01 -0400
Make sure you are using release 3.0.2.105 or later. Bugs were fixed.
Use ExecuteNonQuery, not ExecuteScalar. The latter is used for
result-sets that have one row and one column.
Try using the escape sequence form of calling the procedure and use
parameter markers:
testCMD = new IngresCommand(
"{? = call usr_logon_rtn (?, ?)}",
conn);
testCMD.CommandType = CommandType.Text;
<add parameters with ReturnValue parm first>
testCMD.ExecuteNonQuery();
Hope this helps,
Dave
.
- Prev by Date: returning a single value efficiently from a database procedure to .net in ingres (using IngresParameter.ReturnValue and ExecuteScalar)
- Next by Date: INGRES SREPORT Problem
- Previous by thread: returning a single value efficiently from a database procedure to .net in ingres (using IngresParameter.ReturnValue and ExecuteScalar)
- Next by thread: [Info-ingres] RE: returning a single value from a database procedure in .NET
- Index(es):
Relevant Pages
|