Re: Calling Oracle stored procedure in C#???
- From: "Steve Howard" <stevedhoward@xxxxxxxxx>
- Date: 17 Jul 2006 12:25:32 -0700
taohuang.tamu@xxxxxxxxx wrote:
odbcCommand.CommandType = CommandType.StoredProcedure;
odbcCommand.CommandText = "BEGIN myProc(?, ?); END;";
odbcCommand.CommandTimeout = 0;
Hi Tao,
You may want to try using a CALL construct, rather than BEGIN/END, as I
could get this to work...
OdbcCommand odbcCommand = new OdbcCommand("CALL myProc(?,?)",con);
odbcCommand.CommandType = CommandType.StoredProcedure;
odbcCommand.CommandTimeout = 0;
Regards,
Steve
.
- Follow-Ups:
- Re: Calling Oracle stored procedure in C#???
- From: taohuang . tamu
- Re: Calling Oracle stored procedure in C#???
- References:
- Calling Oracle stored procedure in C#???
- From: taohuang . tamu
- Re: Calling Oracle stored procedure in C#???
- From: Steve Howard
- Re: Calling Oracle stored procedure in C#???
- From: taohuang . tamu
- Calling Oracle stored procedure in C#???
- Prev by Date: Re: random records OT
- Next by Date: Re: Alert File Errors
- Previous by thread: Re: Calling Oracle stored procedure in C#???
- Next by thread: Re: Calling Oracle stored procedure in C#???
- Index(es):