Page 1 of 1

OracleCommand.CommandTimeout (for Mobile)

Posted: Fri 13 Oct 2006 08:17
Hi,
i have a question about my OreDirect.NET Mobile 3.50. How can i set the OracleCommand.CommandTimeout?
This Example does not work. What is wrong?
----------------------------------------------------
long startTickValue = Environment.TickCount;
cmd.CommandText = "declare "+
" a number; "+
"begin "+
" a:= 0; "+
" while (a < 10000000) "+
" loop "+
" a:= a+1; "+
" end loop; "+
"end; ";
cmd.CommandTimeout = 10; //Timeout after 10 secound
cmd.ExecuteNonQuery();
MessageBox.Show( (((Environment.TickCount-startTickValue)/1000.0F)).ToString() );
--------------------------------------------------------
Thanks a lot!

Posted: Fri 13 Oct 2006 12:43
by Alexey
This property is not supported in OraDirect .NET Mobile.