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!
OracleCommand.CommandTimeout (for Mobile)
-
- Posts: 6
- Joined: Thu 31 Aug 2006 16:36