OracleCommand.CommandTimeout (for Mobile)

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
[email protected]
Posts: 6
Joined: Thu 31 Aug 2006 16:36

OracleCommand.CommandTimeout (for Mobile)

Post by [email protected] » 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!

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Fri 13 Oct 2006 12:43

This property is not supported in OraDirect .NET Mobile.

Post Reply