From: <vin...@pr...> - 2004-01-28 20:55:54
|
Hi all, I have to make a connection to an interbase 6.0 server from an C# application. I have no experience with interbase so you can treat me a a beginner :) I downloaded the FirebirdNETProvider1.5-RC3-NET1.1.exe file but it gives an error when I try to install. All help and sample code on the best way to connect to an interbase server from a .net application is welcome. Im have to get this program finished by friday so Im kinda doing a nightshift here :) Greets, Vincent Locquet Produmex |
From:
<car...@te...> - 2004-01-29 19:08:15
|
Hello: > I downloaded the FirebirdNETProvider1.5-RC3-NET1.1.exe file > but it gives an error when I try to install. What error ?? it's related to MSVCR70.dll ?? if yes probably the best option for you will be build the sources using nant ( nant.sourceforge.net ) > All help and sample code on the best way to connect to an > interbase server from a .net application is welcome. You can see the CHM file in the docs package and the ADO.NET documentation that ships with .net framework. -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: Matt <ma...@xp...> - 2004-01-30 20:49:58
|
You can also do a search for that file on your system (even if you don't have Visual Studio, it is still most likely on your system somewhere) = and copy it to the same folder as gac.exe. That worked for me when I had to install it on computers without VS.NET. ---Matt -----Original Message----- From: fir...@li... [mailto:fir...@li...] On Behalf Of Carlos Guzm=E1n =C1lvarez Sent: Wednesday, January 28, 2004 3:40 PM To: fir...@li... Subject: Re: [Firebird-net-provider] connection to interbase Hello: > I downloaded the FirebirdNETProvider1.5-RC3-NET1.1.exe file=20 > but it gives an error when I try to install. What error ?? it's related to MSVCR70.dll ?? if yes probably the best=20 option for you will be build the sources using nant ( = nant.sourceforge.net ) > All help and sample code on the best way to connect to an=20 > interbase server from a .net application is welcome. You can see the CHM file in the docs package and the ADO.NET=20 documentation that ships with .net framework. -- Best regards Carlos Guzm=E1n =C1lvarez Vigo-Spain ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Firebird-net-provider mailing list Fir...@li... https://lists.sourceforge.net/lists/listinfo/firebird-net-provider |
From: Vinnie <no...@sp...> - 2004-01-30 02:53:12
|
Hi, some updates on my progress so far... I installed the 1.0 version for .net framework 1.1 succesfully. I am able to make connection to the server. I get the string "open" back wen I ask th connection.state. So far so good but I can not run a command. I get the following error back: Command must have a valid transaction the sql statement is 100% correct.... See code below to see what Im doing. What could be wrong? IDbConnection cn = new FirebirdSql.Data.Firebird.FbConnection(conString) ; cn.Open() ; IDbCommand dbcmd = cn.CreateCommand() ; dbcmd.CommandText="select * from mcust" ; Console.WriteLine(cn.State.ToString()); // gives back OPEN dbcmd.ExecuteReader() ; // <---------- Here it crashes!!! error: Command must have a valid transaction <vin...@pr...> wrote in message news:200...@ms...... > Hi all, > > I have to make a connection to an interbase 6.0 server from > an C# application. I have no experience with interbase so > you can treat me a a beginner :) > > I downloaded the FirebirdNETProvider1.5-RC3-NET1.1.exe file > but it gives an error when I try to install. > > All help and sample code on the best way to connect to an > interbase server from a .net application is welcome. > > Im have to get this program finished by friday so Im kinda > doing a nightshift here :) > > > > Greets, > > > Vincent Locquet > Produmex > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > |
From: Abel E. P. <a1...@al...> - 2004-01-31 02:00:32
|
Greetings, > IDbConnection cn = new FirebirdSql.Data.Firebird.FbConnection(conString) ; > > cn.Open() ; > > IDbCommand dbcmd = cn.CreateCommand() ; > > dbcmd.CommandText="select * from mcust" ; > > Console.WriteLine(cn.State.ToString()); // gives back OPEN > > dbcmd.ExecuteReader() ; // <---------- Here it crashes!!! error: Command > must have a valid transaction From the documentation provided with Firebird .NET Data Provider: ... FbConnection connection = new FbConnection(connectionString); connection.Open(); -> FbTransaction transaction = connection.BeginTransaction(); string insertQuery = "INSERT INTO PROJECT(proj_id, proj_name, product) Values('FBNP', '.NET Provider', 'N/A')"; FbCommand command = new FbCommand(insertQuery, myConn, myTxn); command.ExecuteNonQuery(); transaction.Commit(); connection.Close(); ... You're simple missing a transaction for the command, check line 3 Regards, Abel Eduardo Pereira |
From:
<car...@te...> - 2004-01-31 12:35:01
|
Hello: > What could be wrong? 1.0 version has no support for implicit transactions , you need always a transaction for execute a command. -- Best regards Carlos Guzmán Álvarez Vigo-Spain |