This it´s the correct code: using (TransactionScope ts = new TransactionScope()) {
using (FbConnection cn = CreaConexion()) { cn.Open(); using (FbCommand cmd = cn.CreateCommand()) { cmd.CommandText = "update ArticulosAlmacen set ExistReales= 1 where CodArticulo = @Cod"; cmd.Parameters.Add(new FbParameter("@Cod", "MBPECOMAZ060")); cmd.ExecuteNonQuery(); } } } But the same problem Thanks -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jiri Cincura Enviado el: miércoles, 13 de agosto de 2008 12:42 Para: For users and developers of the Firebird .NET providers Asunto: Re: [Firebird-net-provider] Transactio As far as I'm looking at the code (even if there's try without catch or finally), I see ts.Complete() commented out. -- Jiri {x2} Cincura (CTO x2develop.com) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider