From: Sam M. <sam...@cl...> - 2004-04-16 13:50:25
|
This is with 1.5.2 According to the docs I should be able to set CommandTimeout but it raises the following exception when I try: A first chance exception of type 'System.NotSupportedException' occurred in firebirdsql.data.firebird.dll Additional information: Specified method is not supported. Here is my code: protected object ExecuteScalar(string command, bool transactional, bool free) { try { GetCmd(transactional); if (!command.EndsWith(";")) { command += ";"; } Cmd.CommandTimeout = 600; Cmd.CommandText = command; return Cmd.ExecuteScalar(); } finally { if (free) { FreeCmd(); } } } Keep-up the great work Carlos Thanks! Sam ______________________________________________ La llama de me llama se llama Nigel |