You don't committed the transacion.

try to execute

fbCommand1.Transaction.Commit();

After the fbCommand1.ExecuteNonQuery(); statement
*
*
*João Dias de Carvalho Neto*
*
*
*http://www.bjsoftware.com.br*
*Perfil Profissional* <http://www.bjsoftware.com.br/p/sobre-mim.html>

+55-(87)-8811-8945
j...@bjsoftware.com.br



2011/5/29 wiwian <wiw...@interia.pl>

> Hi
> Why this don't write nothing to the base in C# express 2010 &
> NetProvider 2.6?
>
>         private void button2_Click(object sender, EventArgs e)
>         t  {
>             fbConnection1.Open();
>             fbCommand1.Transaction = fbConnection1.BeginTransaction();
>             fbCommand1.CommandText = "INSERT INTO TEST (NUMER, TEKST,
> DATA) VALUES ('NUMER','TEKST','DATA')";
>             fbCommand1.ExecuteNonQuery();
>             fbConnection1.Close();
>         }
>
> Best Regards
> Piotr
>
>
>
>
> ----------------------------------------------------------------
> Najtansze samochody w Polsce!
> Odwiedz >> http://linkint.pl/f29ab
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to