You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(55) |
Dec
(36) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(38) |
Feb
(108) |
Mar
(79) |
Apr
(95) |
May
(64) |
Jun
(130) |
Jul
(146) |
Aug
(121) |
Sep
(96) |
Oct
(149) |
Nov
(161) |
Dec
(113) |
2004 |
Jan
(113) |
Feb
(163) |
Mar
(248) |
Apr
(132) |
May
(157) |
Jun
(160) |
Jul
(236) |
Aug
(284) |
Sep
(293) |
Oct
(277) |
Nov
(257) |
Dec
(356) |
2005 |
Jan
(203) |
Feb
(190) |
Mar
(220) |
Apr
(165) |
May
(124) |
Jun
(160) |
Jul
(190) |
Aug
(142) |
Sep
(152) |
Oct
(189) |
Nov
(187) |
Dec
(159) |
2006 |
Jan
(170) |
Feb
(151) |
Mar
(212) |
Apr
(262) |
May
(226) |
Jun
(196) |
Jul
(223) |
Aug
(165) |
Sep
(163) |
Oct
(348) |
Nov
(225) |
Dec
(141) |
2007 |
Jan
(261) |
Feb
(161) |
Mar
(222) |
Apr
(193) |
May
(121) |
Jun
(157) |
Jul
(151) |
Aug
(159) |
Sep
(61) |
Oct
(123) |
Nov
(172) |
Dec
(96) |
2008 |
Jan
(104) |
Feb
(138) |
Mar
(131) |
Apr
(131) |
May
(74) |
Jun
(107) |
Jul
(89) |
Aug
(89) |
Sep
(172) |
Oct
(158) |
Nov
(119) |
Dec
(86) |
2009 |
Jan
(52) |
Feb
(84) |
Mar
(78) |
Apr
(83) |
May
(54) |
Jun
(79) |
Jul
(60) |
Aug
(62) |
Sep
(50) |
Oct
(147) |
Nov
(50) |
Dec
(70) |
2010 |
Jan
(135) |
Feb
(113) |
Mar
(74) |
Apr
(93) |
May
(35) |
Jun
(71) |
Jul
(33) |
Aug
(110) |
Sep
(47) |
Oct
(18) |
Nov
(61) |
Dec
(34) |
2011 |
Jan
(46) |
Feb
(47) |
Mar
(25) |
Apr
(24) |
May
(21) |
Jun
(22) |
Jul
(20) |
Aug
(51) |
Sep
(31) |
Oct
(42) |
Nov
(22) |
Dec
(22) |
2012 |
Jan
(31) |
Feb
(19) |
Mar
(25) |
Apr
(55) |
May
(16) |
Jun
(28) |
Jul
(33) |
Aug
(25) |
Sep
(32) |
Oct
(25) |
Nov
(52) |
Dec
(35) |
2013 |
Jan
(43) |
Feb
(18) |
Mar
(36) |
Apr
(45) |
May
(22) |
Jun
(13) |
Jul
(31) |
Aug
(24) |
Sep
(19) |
Oct
(59) |
Nov
(47) |
Dec
(25) |
2014 |
Jan
(27) |
Feb
(15) |
Mar
(38) |
Apr
(10) |
May
(15) |
Jun
(36) |
Jul
(24) |
Aug
(28) |
Sep
(16) |
Oct
(6) |
Nov
(44) |
Dec
(40) |
2015 |
Jan
(52) |
Feb
(22) |
Mar
(13) |
Apr
(17) |
May
(22) |
Jun
(36) |
Jul
(18) |
Aug
(41) |
Sep
(71) |
Oct
(60) |
Nov
(49) |
Dec
(43) |
2016 |
Jan
(60) |
Feb
(13) |
Mar
(21) |
Apr
(28) |
May
(23) |
Jun
(39) |
Jul
(17) |
Aug
(37) |
Sep
(33) |
Oct
(15) |
Nov
(22) |
Dec
(20) |
2017 |
Jan
(27) |
Feb
(40) |
Mar
(48) |
Apr
(19) |
May
(29) |
Jun
(2) |
Jul
(19) |
Aug
(36) |
Sep
(18) |
Oct
(10) |
Nov
(11) |
Dec
(5) |
2018 |
Jan
(5) |
Feb
(4) |
Mar
(5) |
Apr
(3) |
May
(4) |
Jun
(17) |
Jul
(7) |
Aug
(7) |
Sep
(12) |
Oct
(8) |
Nov
(2) |
Dec
|
2019 |
Jan
(8) |
Feb
(5) |
Mar
(3) |
Apr
(5) |
May
(3) |
Jun
(2) |
Jul
(8) |
Aug
(7) |
Sep
(3) |
Oct
(12) |
Nov
(7) |
Dec
(1) |
2020 |
Jan
(8) |
Feb
(3) |
Mar
(7) |
Apr
(1) |
May
(2) |
Jun
(1) |
Jul
(3) |
Aug
(25) |
Sep
(5) |
Oct
(3) |
Nov
(7) |
Dec
(16) |
2021 |
Jan
(11) |
Feb
(10) |
Mar
(16) |
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Riaan N. <ri...@ko...> - 2003-06-05 09:52:58
|
Hi, I've just downloaded the install, source and doc files of the Alpha 1.1 = version from SourceForge and have found that I cannot install, and am = getting the following message: "Invalid package size! Package "FirebirdNETProvider1.1-Alpha1.exe" has been corrupted, = installation impossible." Also, looking through the docs, I see a class "FbDatabasesInfo", but I'm = unable to find its source. I've tried in both the Source zip file for = this version and by checking out the latest version from CVS, but = neither of these methods seem to give me any file containing the = definition for this class. Thank you and keep up the good work. Best Regards, Riaan Nagel Software Engineer Korbitec - Research and Development |
From: Alan M. <al...@me...> - 2003-06-05 01:17:07
|
Hmmm, OK it's neither... Server= works Host does not (in help file) Datasource does not (in example code) Alan > -----Original Message----- > From: fir...@li... > [mailto:fir...@li...]On Behalf Of > Alan McDonald > Sent: Thursday, 5 June 2003 10:30 AM > To: fir...@li... > Subject: [Firebird-net-provider] Connection String parameters > > > The aspx example included in the install uses "Datasource" as > localhost. The > help file uses (lists) "Host" as the server source. Which is correct? > Alan > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider |
From: Alan M. <al...@me...> - 2003-06-05 00:30:12
|
The aspx example included in the install uses "Datasource" as localhost. The help file uses (lists) "Host" as the server source. Which is correct? Alan |
From: Alan M. <al...@me...> - 2003-06-04 23:50:15
|
Thanks Carlos, I have managed to track down the tokenkey... now I get an INGDS excep= tion (see below): Q1: Is the provider using fbclient.dll or gds32.dll by default? (GDSException infers gds32.dll is being used) Q2: The FbException mentions "localhost" - I have no such reference (= or to 127.0.0.1) in my connection string or the config file. Where is this localhost reference coming from? thanks Alan GDSException: Exception of type FirebirdSql.Data.INGDS.GDSException w= as thrown.] FirebirdSql.Data.Firebird.ConnectionPool.Create(String connectionS= tring) +72 FirebirdSql.Data.Firebird.ConnectionPool.CheckOut(String connectionString) +443 FirebirdSql.Data.Firebird.FbConnectionPool.GetConnection(String connectionString) +24 FirebirdSql.Data.Firebird.FbConnection.Open() +108 [FbException: Unable to complete network request to host "localhost". ] FirebirdSql.Data.Firebird.FbConnection.Open() +354 ASP.NewFile_aspx.Connection() in E:\Data\DOTNET\NewFile.aspx:28 ASP.NewFile_aspx.cmdConnect_Click(Object sender, EventArgs e) in E:\Data\DOTNET\NewFile.aspx:38 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +83 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.= RaisePo stBackEvent(String eventArgument) +58 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData= ) +33 System.Web.UI.Page.ProcessRequestMain() +1277 > -----Original Message----- > From: fir...@li... > [mailto:fir...@li...]On Behalf= Of > Carlos Guzman Alvarez > Sent: Thursday, 5 June 2003 12:13 AM > To: Alan McDonald > Cc: fir...@li... > Subject: Re: [Firebird-net-provider] Compilation Error > > > Hello: > > > what about the publickeytoken? Where does that come from? > > Huummmm .... try to see it in the Global Assembly cache ( i think y= ou > have installed the provider using the intallation existent on > sourceforge :) ) > > > > > -- > Best regards > > Carlos Guzm=E1n =C1lvarez > Vigo-Spain > > "No tengo dones especiales.S=F3lo soy apasionadamente curioso" > Albert Einstein, cient=EDfico. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The= best > thread debugger on the planet. Designed with thread debugging featu= res > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider |
From: Carlos G. A. <car...@te...> - 2003-06-04 20:10:34
|
Hello: > I think that provider don't need to release (dispose) commands in this case too. Client creates an instance of command and client must release this instance too. Huuummm i'm thinking i'm going only to dispose the FbStatment instance of FbCommand for allow freeing firebird server resources. -- Best regards Carlos Guzma'n A'lvarez Vigo-Spain "No tengo dones especiales.So'lo soy apasionadamente curioso" Albert Einstein, cienti'fico. |
From: Carlos G. A. <car...@te...> - 2003-06-04 14:29:34
|
Hello: > what about the publickeytoken? Where does that come from? Huummmm .... try to see it in the Global Assembly cache ( i think you have installed the provider using the intallation existent on sourceforge :) ) -- Best regards Carlos Guzmán Álvarez Vigo-Spain "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |
From: Alan M. <al...@me...> - 2003-06-04 13:40:27
|
I've updated the version number ot the one in the dll 1.0.1241.28320 this made on difference... what about the publickeytoken? Where does that come from? thanks Alan > -----Original Message----- > From: fir...@li... > [mailto:fir...@li...]On Behalf Of > Alan McDonald > Sent: Wednesday, 4 June 2003 11:38 PM > To: fir...@li... > Subject: RE: [Firebird-net-provider] Compilation Error > > > Hi, > Yes - now I am... :-) > but now I get dependenciy errors on this line > Line 23: <add assembly="FirebirdSql.Data.Firebird, > Version=1.0.1154.37639, Culture=neutral, > PublicKeyToken=a39b891b3af74145" /> > > Are my versions in sync? > thanks > Alan > > > > > -----Original Message----- > > From: fir...@li... > > [mailto:fir...@li...]On Behalf Of > > Carlos Guzman Alvarez > > Sent: Wednesday, 4 June 2003 11:26 PM > > To: Alan McDonald > > Cc: fir...@li... > > Subject: Re: [Firebird-net-provider] Compilation Error > > > > > > Hello: > > > > > I've just installed .NET Framework... > > > and ASP>NET Webmatrix (if anyone else has tried it) > > > I then installed then Firebird .NET Provider 1.0 > > > > Are you using a web.config file ?? you need one, see example in > > Examples\ASP.NET directory of the .NET provider installation > > > > > > <?xml version="1.0" encoding="UTF-8" ?> > > > > <configuration> > > > > <system.net> > > </system.net> > > > > <system.web> > > <compilation> > > <assemblies> > > <add assembly="FirebirdSql.Data.Firebird, > > Version=1.0.1154.37639, Culture=neutral, > > PublicKeyToken=a39b891b3af74145" /> > > </assemblies> > > </compilation> > > > > > > .................. > > .................. > > > > > > > > </system.web> > > > > </configuration> > > > > > > > > -- > > Best regards > > > > Carlos Guzmán Álvarez > > Vigo-Spain > > > > "No tengo dones especiales.Sólo soy apasionadamente curioso" > > Albert Einstein, científico. > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > > thread debugger on the planet. Designed with thread debugging features > > you've never dreamed of, try TotalView 6 free at www.etnus.com. > > _______________________________________________ > > Firebird-net-provider mailing list > > Fir...@li... > > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > |
From: Alan M. <al...@me...> - 2003-06-04 13:33:51
|
Hi, Yes - now I am... :-) but now I get dependenciy errors on this line Line 23: <add assembly="FirebirdSql.Data.Firebird, Version=1.0.1154.37639, Culture=neutral, PublicKeyToken=a39b891b3af74145" /> Are my versions in sync? thanks Alan > -----Original Message----- > From: fir...@li... > [mailto:fir...@li...]On Behalf Of > Carlos Guzman Alvarez > Sent: Wednesday, 4 June 2003 11:26 PM > To: Alan McDonald > Cc: fir...@li... > Subject: Re: [Firebird-net-provider] Compilation Error > > > Hello: > > > I've just installed .NET Framework... > > and ASP>NET Webmatrix (if anyone else has tried it) > > I then installed then Firebird .NET Provider 1.0 > > Are you using a web.config file ?? you need one, see example in > Examples\ASP.NET directory of the .NET provider installation > > > <?xml version="1.0" encoding="UTF-8" ?> > > <configuration> > > <system.net> > </system.net> > > <system.web> > <compilation> > <assemblies> > <add assembly="FirebirdSql.Data.Firebird, > Version=1.0.1154.37639, Culture=neutral, > PublicKeyToken=a39b891b3af74145" /> > </assemblies> > </compilation> > > > .................. > .................. > > > > </system.web> > > </configuration> > > > > -- > Best regards > > Carlos Guzmán Álvarez > Vigo-Spain > > "No tengo dones especiales.Sólo soy apasionadamente curioso" > Albert Einstein, científico. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > |
From: Carlos G. A. <car...@te...> - 2003-06-04 13:28:13
|
Hello: > I've just installed .NET Framework... > and ASP>NET Webmatrix (if anyone else has tried it) > I then installed then Firebird .NET Provider 1.0 Are you using a web.config file ?? you need one, see example in Examples\ASP.NET directory of the .NET provider installation <?xml version="1.0" encoding="UTF-8" ?> <configuration> <system.net> </system.net> <system.web> <compilation> <assemblies> <add assembly="FirebirdSql.Data.Firebird, Version=1.0.1154.37639, Culture=neutral, PublicKeyToken=a39b891b3af74145" /> </assemblies> </compilation> .................. .................. </system.web> </configuration> -- Best regards Carlos Guzmán Álvarez Vigo-Spain "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |
From: Alan M. <al...@me...> - 2003-06-04 13:21:10
|
Hi, I've just installed .NET Framework... and ASP>NET Webmatrix (if anyone else has tried it) I then installed then Firebird .NET Provider 1.0 Now in the class browser of Webmatrix, I can see the FirecordSQL.Data.Firebird class - it's in the same group as the System.Data classes.. Now I run the C# sample with this header <%@ Page Language="C#" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="FirebirdSql.Data.Firebird" %> <script runat="server"> etc etc. and I get an error: Compiler Error Message: CS0246: The type or namespace name 'FirebirdSql' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 1: <%@ Page Language="C#" %> Line 2: <%@ import Namespace="System.Data" %> Line 3: <%@ import Namespace="FirebirdSql.Data.Firebird" %> Line 4: <script runat="server"> Line 5: Can someone tell me what I might be missing? thanks Alan PS- I've tried copying the firebird dll to the framework directory just in case but it makes no difference. |
From: Ivan - <pre...@bk...> - 2003-06-04 08:05:58
|
I think that provider don't need to release (dispose) commands in this case too. Client creates an instance of command and client must release this instance too. > Ok i will try to review this tomorrow and release commands only when the > connection is disposed. |
From: Carlos G. A. <car...@te...> - 2003-06-03 18:59:46
|
Hello: > Yes I do. Ok i will try to review this tomorrow and release commands only when the connection is disposed. -- Best regards Carlos Guzma'n A'lvarez Vigo-Spain "No tengo dones especiales.So'lo soy apasionadamente curioso" Albert Einstein, cienti'fico. |
From: Ivan - <pre...@bk...> - 2003-06-03 18:12:03
|
Yes I do. > > Hello: > > > I've took a closer look at source code for provider, and found, that you're disposing all commands in FbConnection.Close method. > > So, we need to recreate every command (FbCommand) after FbConnection.Close() calling. It seems to be a bug in provide, cause MSSQL provider works good in this situation. > > Huummm are you using connection pooling or not ?? > > |
From: Carlos G. A. <car...@te...> - 2003-06-03 17:46:38
|
Hello: > I've took a closer look at source code for provider, and found, that you're disposing all commands in FbConnection.Close method. > So, we need to recreate every command (FbCommand) after FbConnection.Close() calling. It seems to be a bug in provide, cause MSSQL provider works good in this situation. Huummm are you using connection pooling or not ?? -- Best regards Carlos Guzma'n A'lvarez Vigo-Spain "No tengo dones especiales.So'lo soy apasionadamente curioso" Albert Einstein, cienti'fico. |
From: Ivan - <pre...@bk...> - 2003-06-03 16:36:01
|
It's not working again. Here's a full test code of my sample FbConnection con = new FbConnection(ConnectionString); con.Open(); FbTransaction tran = con.BeginTransaction(); FbDataAdapter ad = new FbDataAdapter(@"SELECT * FROM TBL", con); ad.SelectCommand.Transaction = tran; DataSet ds = new DataSet(); ad.Fill(ds, "TBL1001625"); con.Close(); con.Open(); tran = con.BeginTransaction(); ad.SelectCommand.Connection = con; ad.SelectCommand.Transaction = tran; DataSet ds1 = new DataSet(); ad.Fill(ds1, "TBL1001625"); // <--Exception here /* "Object reference not set to an instance of an object" source: FbCommand.cs - Prepare() statement = new FbStatement(Connection, Transaction, Parameters, commands[actualCommand], //commands is null, actualCommand == -1 CommandType); */ con.Close(); I've took a closer look at source code for provider, and found, that you're disposing all commands in FbConnection.Close method. So, we need to recreate every command (FbCommand) after FbConnection.Close() calling. It seems to be a bug in provide, cause MSSQL provider works good in this situation. > > Hello: > > Add this new line too and test please ( i can't test now ): > > tran = con.BeginTransaction(); > -----> ad.SelectCommand.Connection = con > ad.SelectCommand.Transaction = tran; > > > > > -- > Best regards > > Carlos Guzma'n A'lvarez > Vigo-Spain > > "No tengo dones especiales.So'lo soy apasionadamente curioso" > Albert Einstein, cienti'fico. > > |
From: Carlos G. A. <car...@te...> - 2003-06-03 14:56:39
|
HEllo: > I'm using Release of FB.NET 1.0 provider. Database - firebird 1.5 (RC3), Dialect 1. I'm using this code as test case and all is working as expected: FbConnection con = new FbConnection(connectionString); con.Open(); FbTransaction tran = con.BeginTransaction(); FbCommand command = new FbCommand(@"SELECT * FROM TEST_TABLE_01", con, tran); FbDataAdapter ad = new FbDataAdapter(command); DataSet ds = new DataSet(); ad.Fill(ds, "TBL"); FbCommandBuilder b = new FbCommandBuilder(ad); b.QuotePrefix = String.Empty; b.QuoteSuffix = String.Empty; ad.Update(ds, "TBL"); // <--- Exception goes here con.Close(); -- Best regards Carlos Guzma'n A'lvarez Vigo-Spain "No tengo dones especiales.So'lo soy apasionadamente curioso" Albert Einstein, cienti'fico. |
From: Ivan - <pre...@bk...> - 2003-06-03 14:27:09
|
I've forgot to write one line. After con.Close(); There should be con.Open(); And the problem is still there. |
From: Ivan - <pre...@bk...> - 2003-06-03 13:55:40
|
Is this behavior by-design or a bug ? FbConnection con = new FbConnection(cs); con.Open(); FbTransaction tran = con.BeginTransaction(); FbDataAdapter ad = new FbDataAdapter(@"SELECT * FROM TBL", con); DataSet ds = new DataSet(); ad.Fill(ds, "TBL"); con.Close(); tran = con.BeginTransaction(); ad.SelectCommand.Transaction = tran; FbCommandBuilder b = new FbCommandBuilder(ad); b.QuotePrefix = String.Empty; b.QuoteSuffix = String.Empty; ad.Update(ds, "TBL1001625"); // <--- Exception goes here /* "Object reference not set to an instance of an object" source: FbCommand.cs - Prepare() statement = new FbStatement(Connection, Transaction, Parameters, commands[actualCommand], //commands is null, actualCommand == -1 CommandType); */ actually, it's not a bug in FbCommandBuilder, because we can change last line to DataSet ds1 = new DataSet(); ad.Fill(ds1, "TBL"); and there will be an exception too. I'm using Release of FB.NET 1.0 provider. Database - firebird 1.5 (RC3), Dialect 1. |
From: Christopher W. <chr...@ad...> - 2003-05-29 17:52:20
|
I'll try that...Thanks! On Thu, 2003-05-29 at 13:47, Carlos Guzman Alvarez wrote: > Hello: > > > It doesn't seem that efficient, but I solved the problem by iterating > > over the byte[] contents in a loop and appending the result of > > (char)byte[i] to a StringBuilder instance. > > > Why do not try using Encoding.Default.GetString(...) ??? > > > > > FbDataReader reader = > > m_daSinks.SelectCommand.ExecuteReader(); > > > > byte[] buff1, buff2; > > while( reader.Read() ) > > { > > > > buff1 = ASCIIEncoding.Default.GetBytes( > > reader.GetString( 0 ) ); // Binary data is in first column > > > > buff2 = new byte[ reader.GetInt16( 1 )]; // > > Actual Length of the binary data > > > > Array.Copy( buff1, 0, buff2, 0, buff2.Length ); > > > > object[] vals = new Object[]{ reader.GetInt64(2), > > buff2, DateTime.Now, EventName }; > > ds.Tables["tb_sinks"].LoadDataRow( vals, true ); > > } > > > > reader.Close(); > > > Huummmm ... anything like this > > > int bufLen = 0; > byte[] buff1, buff2; > while( reader.Read() ) > { > buff1 = new byte[reader.GetInt16( 1 )] > // Use here the encoding you need > Endcoding.Default.GetBytes( > reader.GetString( 0 ), 0, buff1.Length, buff1, 0 ); > > object[] vals = new Object[]{ reader.GetInt64(2), > buff2, DateTime.Now, EventName }; > ds.Tables["tb_sinks"].LoadDataRow( vals, true ); > } > > > > |
From: Carlos G. A. <car...@te...> - 2003-05-29 17:37:29
|
Hello: > It doesn't seem that efficient, but I solved the problem by iterating > over the byte[] contents in a loop and appending the result of > (char)byte[i] to a StringBuilder instance. Why do not try using Encoding.Default.GetString(...) ??? > > FbDataReader reader = > m_daSinks.SelectCommand.ExecuteReader(); > > byte[] buff1, buff2; > while( reader.Read() ) > { > > buff1 = ASCIIEncoding.Default.GetBytes( > reader.GetString( 0 ) ); // Binary data is in first column > > buff2 = new byte[ reader.GetInt16( 1 )]; // > Actual Length of the binary data > > Array.Copy( buff1, 0, buff2, 0, buff2.Length ); > > object[] vals = new Object[]{ reader.GetInt64(2), > buff2, DateTime.Now, EventName }; > ds.Tables["tb_sinks"].LoadDataRow( vals, true ); > } > > reader.Close(); Huummmm ... anything like this int bufLen = 0; byte[] buff1, buff2; while( reader.Read() ) { buff1 = new byte[reader.GetInt16( 1 )] // Use here the encoding you need Endcoding.Default.GetBytes( reader.GetString( 0 ), 0, buff1.Length, buff1, 0 ); object[] vals = new Object[]{ reader.GetInt64(2), buff2, DateTime.Now, EventName }; ds.Tables["tb_sinks"].LoadDataRow( vals, true ); } -- Best regards Carlos Guzmán Álvarez Vigo-Spain "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |
From: Christopher W. <chr...@ad...> - 2003-05-29 17:25:57
|
Hi- FYI to anyone interested: It doesn't seem that efficient, but I solved the problem by iterating over the byte[] contents in a loop and appending the result of (char)byte[i] to a StringBuilder instance. I set the FBType of the parameter to Char and write the string to the database without a problem. I also write the actual length of the data to another column because it represents a serialized object and must be deserialized into an instance. The column that is defined as char(x) character set octets does allow the delete statement that uses it in the where clause to work properly. When I get the results of the select, I need to transform the string representing the binary data into the datatable column format of Base64Binary. That rules out dataAdapter.Fill( dateSet ). Instead I used the following code to load the data from the database table into the dataset: FbDataReader reader = m_daSinks.SelectCommand.ExecuteReader(); byte[] buff1, buff2; while( reader.Read() ) { buff1 = ASCIIEncoding.Default.GetBytes( reader.GetString( 0 ) ); // Binary data is in first column buff2 = new byte[ reader.GetInt16( 1 )]; // Actual Length of the binary data Array.Copy( buff1, 0, buff2, 0, buff2.Length ); object[] vals = new Object[]{ reader.GetInt64(2), buff2, DateTime.Now, EventName }; ds.Tables["tb_sinks"].LoadDataRow( vals, true ); } reader.Close(); Any suggestions for improving this approach would be greatly appreciated. Regards, Chris Whelan |
From: Christopher W. <chr...@ad...> - 2003-05-29 14:35:03
|
Hi- I also tried FbType of LongVarBinary which I had used successfully for the blob insertion and I still receive a Invalid Cast exception... Regards, Chris Whelan |
From: Christopher W. <chr...@ad...> - 2003-05-29 14:30:25
|
Hello, I am attempting to use the Firebird Net-Provider to store binary data that can be included in a where clause. I am modifying code that works on MS SQL Server where the column is varbinary with a length of 4096. If I use a blob subtype binary, NetProvider works fine on the insert, but I also want to be able to delete rows based on the value contained in the binary data. Someone please correct me if I am wrong, but the firebird blob seems only for storage and retrieval and it does not appear you can use it as a column in the where clause... I researched it a bit on the web and I have seen the recommendation to store binary data by using char(size) character set octets. Apparently, firebird won't perform any transliteration on the data and stores it in its native binary format. I have tried this solution using the Net-Provider two different ways and in both cases it throws an Invalid Cast exception. I tried setting the FbType of the parameter to Char and also setting it to Binary... I was also wondering if I should use C# to somehow transform the byte[] into a string representing the binary information... Any suggestions on how to solve this problem would be greatly appreciated. Regards, Chris Whelan |
From: Carlos G. A. <car...@te...> - 2003-05-28 20:06:37
|
Hello: I'm thinking on remove the logger classes from 1.1 source tree, how .NET framewowrk ships with a debugger and mono project has one in developement i think this will be no really needed any objection to this ?? -- Un saludo Carlos Guzmán Álvarez Vigo-España "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |
From: Carlos G. A. <car...@te...> - 2003-05-28 17:09:14
|
Hello: Firebird .NET Data Provider Release 1.0 for .NET Framework 1.0 available for download. You can download it here: http://prdownloads.sourceforge.net/firebird/FirebirdNetProvider-1.0-NF1.0.exe?download -- Best regards Carlos Guzmán Álvarez Vigo-Spain "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. |