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: David G. <li...@za...> - 2003-11-28 05:09:06
|
(Cc-ing to the docs list). Pierre Arnaud wrote: > You mean that after every DDL statement, I have to do a commit also > on my own. This seems pretty weird. This is also one of my first traps in Firebird :) I hope this makes it to a prominent place in the FAQ. -- dave |
From: Pierre A. <pie...@op...> - 2003-11-27 20:48:15
|
Carlos Guzm=E1n =C1lvarez wrote: >> Just to compare, in .NET 1.1, there are : >> >> System.Data.Odbc >> System.Data.OleDb >> System.Data.OracleClient >> System.Data.SqlClient > > But all these providers are included in the .NET core. > > Microsoft recommentdation for namespace is : > > CompanyName.TechnologyName Yes, you are right. Microsoft wants to avoid possible name collisions with the namespaces. If only I could do some sort of magic "typedef" on the namespaces and rename the FirebirdSql base into System :-) OK, so let's live with the current name ! Pierre |
From: Pierre A. <pie...@op...> - 2003-11-27 15:55:59
|
Carlos Guzm=E1n =C1lvarez wrote: > If you have firebird installed you have isql too, just see in the > firebird bin directory ( isql.exe ). Oh. Thanks ! I was not aware of that. >> So how can I do what I want, namely create a table and fill it >> in, then rollback the table creation ? > > But you don't want to mantain the table created after have it filled ?? > In that case, Why not ?? :) Well, I wanted to create a few tables and fill them and make it look like an atomic operation to other processes; either the tables would be there with their content, or they would not. So in fact what was of interest here was really the fact that the transaction was hiding the tables until the COMMIT. > If you want to mantain it created after have it filled, and drop it if > you get an error, at this moment you can do: > > (1) Start transaction. > (2) Create table. > (3) Commit transaction (using Commit method) > (4) Start transaction. > (5) Fill the Table > (6) Commit transaction (using Commit method) > > if you get an error when filling: > > (1) Rollback transaction. > (2) Drop the table. > > or: > > (1) Start transaction. > (2) Create table. > (3) Commit transction (using CommitRetaining method.) > (4) Fill the Table. > (5) Commit transaction (using Commit method.) > > if you get an error when filling: > > (1) Rollback transaction. > (2) Drop the table. Yes, I guess that this is what I will do, and I will have to add logic to handle the presence of empty tables, but this should not be too complicated. Thanks for your help. Pierre |
From:
<car...@te...> - 2003-11-27 15:32:04
|
Hello: > I don't have ISQL, but I believe what you tell me. It just seems > really strange. Adding the "SET AUTODLL OFF;" line in IBExpert > causes also IBExpert to generate an error on the INSERT statement. If you have firebird installed you have isql too, just see in the firebird bin directory ( isql.exe ). > So how can I do what I want, namely create a table and fill it > in, then rollback the table creation ? But you don't want to mantain the table created after have it filled ?? In that case, Why not ?? :) If you want to mantain it created after have it filled, and drop it if you get an error, at this moment you can do: (1) Start transaction. (2) Create table. (3) Commit transaction (using Commit method) (4) Start transaction. (5) Fill the Table (6) Commit transaction (using Commit method) if you get an error when filling: (1) Rollback transaction. (2) Drop the table. or: (1) Start transaction. (2) Create table. (3) Commit transction (using CommitRetaining method.) (4) Fill the Table. (5) Commit transaction (using Commit method.) if you get an error when filling: (1) Rollback transaction. (2) Drop the table. -- Best regards Carlos Guzmán Álvarez Vigo-Spain P.S.: I'm thinking on add to the FbCommand a new property called FbCommandType for allow to know which type of command is being executed, it will be possible to know it after have the statement prepared (GdsStatement has yet this information in the StatementType property), comments are wellcome ;) |
From: Pierre A. <pie...@op...> - 2003-11-27 14:14:46
|
Carlos Guzm=E1n =C1lvarez wrote: >> CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); >> INSERT INTO X(A, B) VALUES (1,1); >> COMMIT WORK; > > I have tested it from the sql editor of ib expert, but just test this i= n > the script executive: > > CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); > > You are not going to get a message telling that there are uncommited > statements ( this message appears if you exec only the insert for > example ), i think that they are making an autocommit for DDL > statements, as ISQL makes by default. You mean that after every DDL statement, I have to do a commit also on my own. This seems pretty weird. But I have to agree with you: IBExpert seems to be committing its work automagically. > Has you tested the sample i have sent for ISQL ?? I don't have ISQL, but I believe what you tell me. It just seems really strange. Adding the "SET AUTODLL OFF;" line in IBExpert causes also IBExpert to generate an error on the INSERT statement. So how can I do what I want, namely create a table and fill it in, then rollback the table creation ? Thanks a lot. Pierre |
From:
<car...@te...> - 2003-11-27 13:49:25
|
Hello: > I just ran the following script in IBExpert's "Script Executive", > and it works just fine : > > CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); > INSERT INTO X(A, B) VALUES (1,1); > COMMIT WORK; I have tested it from the sql editor of ib expert, but just test this in the script executive: CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); You are not going to get a message telling that there are uncommited statements ( this message appears if you exec only the insert for example ), i think that they are making an autocommit for DDL statements, as ISQL makes by default. Has you tested the sample i have sent for ISQL ?? -- Best regards Carlos Guzmán álvarez Vigo-Spain |
From: Pierre A. <pie...@op...> - 2003-11-27 13:30:55
|
Carlos Guzm=E1n =C1lvarez wrote: >> Certainly not, transactions are conceptualy for making a serie of SQL >> command, and then commit (or rollback) all of them if ok (or not) >> >> (1) START TRANSACTION >> (2) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); >> (3) INSERT INTO X(A, B) VALUES (1,1); >> (4) COMMIT / END TRANSACTION > > I think it's working ok. > > The CREATE TABLE is a DDL command and i think that will be not possible > to make anything with the table until the transaction is commited. I just ran the following script in IBExpert's "Script Executive", and it works just fine : CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); INSERT INTO X(A, B) VALUES (1,1); COMMIT WORK; I don't see why the table creation should not be visible from within the transaction. This would be really silly !? > I have make the same test using IBExpert and raises the same error. See my example; does it raise an error in your IBExpert ? > If i'm wrong, please correct me :) I am no SQL guru, but the fact that a table is not visible unless the full transaction is commited does not make sense to me. Pierre |
From:
<car...@te...> - 2003-11-27 13:19:16
|
Hello: > Certainly not, transactions are conceptualy for making a serie of SQL > command, and then commit (or rollback) all of them if ok (or not) > > (1) START TRANSACTION > (2) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); > (3) INSERT INTO X(A, B) VALUES (1,1); > (4) COMMIT / END TRANSACTION I think it's working ok. The CREATE TABLE is a DDL command and i think that will be not possible to make anything with the table until the transaction is commited. I have make the same test using IBExpert and raises the same error. The same can be applied to isql, try this on it: SET AUTODDL OFF; CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); INSERT INTO X(A, B) VALUES (1,1); I get the same error. If i'm wrong, please correct me :) -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: Denis D. <fir...@De...> - 2003-11-27 12:48:56
|
Hi, about your replay to: > > - Created transaction with IsolationLevel.RepeatableRead. > > - Executed two commands using FbCommand, while keeping the > > same transaction active : > > > > (1) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); > > (2) INSERT INTO X(A, B) VALUES (1,1); > > I think it's working ok, as the first command is not committed yet. Certainly not, transactions are conceptualy for making a serie of SQL command, and then commit (or rollback) all of them if ok (or not) (1) START TRANSACTION (2) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); (3) INSERT INTO X(A, B) VALUES (1,1); (4) COMMIT / END TRANSACTION should work, without "commit" in the middle. Is'nt that true ? Best regard, -- Denis Dumoulin |
From:
<car...@te...> - 2003-11-27 11:55:44
|
Hello: > I have done following: > > - Created transaction with IsolationLevel.RepeatableRead. > - Executed two commands using FbCommand, while keeping the > same transaction active : > > (1) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); > (2) INSERT INTO X(A, B) VALUES (1,1); I think it's working ok, as the first command is not committed yet. -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-27 11:43:04
|
Hello: > I am using FirebirdSql.Data namespace since a few months now, and I > still don't feel at ease with the choice of the namespace. I'd be > glad to hear from others. > > Why isn't all the Firebird stuff just in the System.Data.Firebird > namespace ? It would make much more sense than having this separate > FirebirdSql namespace, don't you agree ? > > Just to compare, in .NET 1.1, there are : > > System.Data.Odbc > System.Data.OleDb > System.Data.OracleClient > System.Data.SqlClient But all these providers are included in the .NET core. Microsoft recommentdation for namespace is : CompanyName.TechnologyName This makes that the actual namespace is ok, i'm thinking in call the provider FbClient or FirebirdClient, just for give a name to the project, and use as namespace: FirebirdSql.Data.FbClient or FirebirdSql.Data.FirebirdClient Comments are wellcome arround this :) The Microsoft ODBC data provider for .NET 1.0 has as namespace : Microsoft.Data.Odbc Which matches too with the microsoft namespace recommedation -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-27 11:23:59
|
Hello: > I just tried to install the .net provider (released 26 may 2003) onto my > machine and got an error during the install process saying that > msvcr70.dll could not be found in a big list of paths. From the KNOWN.TXT file: Problem with MSVCR70.dll ------------------------ Solution from an answer of Andrew C. Goodall in the developement list: Do a file search on the pc/server where you installed .net framework The dll is there but it's in a temp folder and needs to be copied to the main .net folder. my msvcr70.dll was in C:\WINNT\SYSTEM32\URTTemp I copied it to C:\WINNT\Microsoft.NET\Framework\v1.0.3705 Then I re-installed Firebird .NET provider and all was well in the world. -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: Pierre A. <pie...@op...> - 2003-11-27 10:49:20
|
Hello, I have done following: - Created transaction with IsolationLevel.RepeatableRead. - Executed two commands using FbCommand, while keeping the same transaction active : (1) CREATE TABLE X(A INTEGER NOT NULL, B INTEGER); (2) INSERT INTO X(A, B) VALUES (1,1); When executing command (2), I get an error stating that I am referring to an unknown table named X (but it should exist !?) with SQL error code -204. I am using latest .NET provider 1.5 BETA (last update in CHANGELOG is from 2003-11-10), .NET 1.1, Firebird 1.5 RC7. Kind regards, Pierre |
From: Josauro S.J. <jo...@ca...> - 2003-11-27 10:37:40
|
I had the same error, than I found msvcr71.dll in windows directory, = put into system32 and rename to msvcr70.dll , work fine.... Josauro S.J. Diretor e-mail: jo...@ca... site: www.casasoft.inf.br Portal de im=F3veis www.IndicadorDeImoveis.com.br O =FAnico Portal de im=F3veis 100% on-line com as imobili=E1rias, = im=F3veis atualizados minuto a minuto a certeza de que o im=F3vel = anunciado realmente esta Dispon=EDvel. ----- Original Message -----=20 From: fir...@li...=20 To: fir...@li...=20 Sent: Thursday, November 27, 2003 2:04 AM Subject: Firebird-net-provider digest, Vol 1 #261 - 1 msg Send Firebird-net-provider mailing list submissions to fir...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/firebird-net-provider or, via email, send a message with subject or body 'help' to fir...@li... You can reach the person managing the list at fir...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Firebird-net-provider digest..." Today's Topics: 1. msvcr70.dll (Martin Catherall) --__--__-- Message: 1 Date: Thu, 27 Nov 2003 15:54:52 +1300 From: "Martin Catherall" <mc...@we...> To: <fir...@li...> Subject: [Firebird-net-provider] msvcr70.dll Hi, I just tried to install the .net provider (released 26 may 2003) onto = my machine and got an error during the install process saying that msvcr70.dll could not be found in a big list of paths. I then tried to install the lastest version, data provider for .net framework 1.1 (released 12 nov 2003) and got exactly the same error. I would like to ask for advice on the following. 1. What is the best course of action here in order to use the = provider?? Move msvcr70.dll into one of the dirs mentions in the error message = and re-register it from that location. 2 which version of the provider is the prefered version based on my curcumstances below Using firebird 1.0 Using .net 1.1 --- I have only ever had vs 2003 installed on my = machine. I appreciated any comments and help. Cheers Martin. Check out www.ubique.webscape.co.nz Ubique --> "Drives Your Business" W E B S C A P E PO Box 22571 25 Carlyle Street Christchurch http://www.webscape.co.nz Phone 03 964 4020 Fax 03 365 9115 Email mc...@we... = =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D = =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D (This e-mail has been scanned with MailMarshal) --__--__-- _______________________________________________ Firebird-net-provider mailing list Fir...@li... https://lists.sourceforge.net/lists/listinfo/firebird-net-provider End of Firebird-net-provider Digest |
From: Pierre A. <pie...@op...> - 2003-11-27 09:53:03
|
Hi all, I am using FirebirdSql.Data namespace since a few months now, and I still don't feel at ease with the choice of the namespace. I'd be glad to hear from others. Why isn't all the Firebird stuff just in the System.Data.Firebird namespace ? It would make much more sense than having this separate FirebirdSql namespace, don't you agree ? Just to compare, in .NET 1.1, there are : System.Data.Odbc System.Data.OleDb System.Data.OracleClient System.Data.SqlClient etc. Pierre |
From: Martin C. <mc...@we...> - 2003-11-27 02:55:05
|
Hi, I just tried to install the .net provider (released 26 may 2003) onto my machine and got an error during the install process saying that msvcr70.dll could not be found in a big list of paths. I then tried to install the lastest version, data provider for .net framework 1.1 (released 12 nov 2003) and got exactly the same error. I would like to ask for advice on the following. 1. What is the best course of action here in order to use the provider?? Move msvcr70.dll into one of the dirs mentions in the error message and re-register it from that location. 2 which version of the provider is the prefered version based on my curcumstances below Using firebird 1.0 Using .net 1.1 --- I have only ever had vs 2003 installed on my machine. I appreciated any comments and help. Cheers Martin. Check out www.ubique.webscape.co.nz Ubique --> "Drives Your Business" W E B S C A P E PO Box 22571 25 Carlyle Street Christchurch http://www.webscape.co.nz Phone 03 964 4020 Fax 03 365 9115 Email mc...@we... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D (This e-mail has been scanned with MailMarshal) |
From:
<car...@te...> - 2003-11-25 16:00:41
|
Hello: > Hi, > I am using Firebird .Net 1.4 beta4 net framework version 1.1. > The getbytes would not return a data for blob columns. > It look like have a bug in Getbytes procedure. Seems to be working for me, here is the source: [Test] public void ReaderGetBytes() { int id_value = System.DateTime.Now.Millisecond + 20000; string selectText = "SELECT blob_field FROM TEST WHERE int_field = " + id_value.ToString(); string insertText = "INSERT INTO TEST (int_field, blob_field) values(@int_field, @blob_field)"; Console.WriteLine("\r\n\r\nFbDataReader.GetBytes with Binary Blob Test"); Console.WriteLine("Generating an array of temp data"); // Generate an array of temp data byte[] insert_values = new byte[100000*4]; RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); rng.GetBytes(insert_values); Console.WriteLine("Executing insert command"); // Execute insert command FbTransaction transaction = Connection.BeginTransaction(); FbCommand insert = new FbCommand(insertText, Connection, transaction); insert.Parameters.Add("@int_field", FbDbType.Integer).Value = id_value; insert.Parameters.Add("@blob_field", FbDbType.Binary).Value = insert_values; insert.ExecuteNonQuery(); transaction.Commit(); Console.WriteLine("Checking inserted values"); // Check that inserted values are correct FbCommand select = new FbCommand(selectText, Connection); FbDataReader reader = select.ExecuteReader(); int index = 0; int segmentSize = 1000; byte[] select_values = new byte[100000*4]; while (reader.Read()) { while (index < 400000) { reader.GetBytes(0, index, select_values, index, segmentSize); index += segmentSize; } } for (int i = 0; i < insert_values.Length; i++) { if (insert_values[i] != select_values[i]) { throw new Exception("differences at index " + i.ToString()); } } } -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-25 13:19:46
|
Hello: > Hi, > I am using Firebird .Net 1.4 beta4 net framework version 1.1. > The getbytes would not return a data for blob columns. > It look like have a bug in Getbytes procedure. > Below is the source. I will try to review this later today, you can get blob value using GetValue too. -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: bcteh_98 <bct...@ya...> - 2003-11-25 13:11:15
|
Hi, I am using Firebird .Net 1.4 beta4 net framework version 1.1. The getbytes would not return a data for blob columns. It look like have a bug in Getbytes procedure. Below is the source. Pls Help .. Regards Teh Dim sql As String sql = "SELECT Picture FROM Categories WHERE categoryid=11" Dim cmd As New FbCommand(sql) Dim conn As New FbConnection(ConnectionStr) conn.Open() Dim tx As FbTransaction tx = conn.BeginTransaction cmd.Connection = conn cmd.Transaction = tx Dim PictureCol As Integer = 0 Dim dr As FbDataReader = cmd.ExecuteReader() Dim id As Integer dr.Read() ' id = dr.GetInt32(0) Dim b(dr.GetBytes(PictureCol, 0, Nothing, 0, Integer.MaxValue) - 1) As Byte ' Dim b(dr.GetValue(PictureCol)) dr.GetBytes(PictureCol, 0, b, 0, b.Length) dr.Close() conn.Close() Dim destfilepath As String = "d:\test15beta.jpg" Dim fs As New System.IO.FileStream(DestFilePath, IO.FileMode.Create, IO.FileAccess.Write) fs.Write(b, 0, b.Length) fs.Close() |
From: Josauro S.J. <jo...@ca...> - 2003-11-25 11:53:59
|
Ok, I found the problem than I don't put REC_VALOR_TAXA in select ;) and = than it return NULL . Thanks for all help. Josauro S.J. Diretor e-mail: jo...@ca... site: www.casasoft.inf.br Portal de im=F3veis www.IndicadorDeIm=F3veis.com.br O =FAnico Portal de im=F3veis 100% on-line com as imobili=E1rias, = im=F3veis atualizados minuto a minuto a certeza de que o im=F3vel = anunciado realmente esta Dispon=EDvel. ----- Original Message -----=20 From: Carlos Guzm=E1n =C1lvarez=20 To: Josauro S.J.=20 Cc: fir...@li...=20 Sent: Tuesday, November 25, 2003 9:23 AM Subject: Re: [Firebird-net-provider] = FirebirdSql.Data.INGDS.GDSException Hello: > Ok, it's work fine. > But other question... > Variable VR_VALOR_BRUTO and VR_VALOR_LIQUDO return nothing = values, do=20 > you know why ?=20 No, think in that i can't test it ;), just try to move the IF .. ENDIF = block: CREATE PROCEDURE GET_RECIBOS ( CLI_REFERENCIA VARCHAR(12)) RETURNS ( REC_CODIGO DOUBLE PRECISION, REC_CLIENTE DOUBLE PRECISION, REC_DATA DATE, REC_DATA_LIMITE DATE, REC_VALOR_ALUGUEL NUMERIC(15,2), REC_VALOR_TAXA NUMERIC(15,2), REC_VALOR_MULTA_DESCONTO NUMERIC(15,2), VR_VALOR_LIQUIDO NUMERIC(15,2), VR_VALOR_BRUTO NUMERIC(15,2), REC_DESCRICAO_PERIODO VARCHAR(40), REC_NUMERO_RECIBO INTEGER, REC_NUMERO_BANCARIO VARCHAR(15)) AS DECLARE VARIABLE VR_MULTA_DESCONTO CHAR(1); DECLARE VARIABLE VR_CLIENTE DOUBLE PRECISION; begin /* Procedure Text */ SELECT CODIGO FROM get_codigo_cliente(:CLI_REFERENCIA) INTO :VR_CLIENTE; FOR SELECT REC_CODIGO, REC_CLIENTE, REC_DATA, REC_DATA_LIMITE, REC_VALOR_ALUGUEL, REC_MULTA_DESCONTO, REC_VALOR_MULTA_DESCONTO, REC_DESCRICAO_PERIODO, REC_NUMERO_RECIBO, REC_NUMERO_BANCARIO FROM RECIBO WHERE REC_CLIENTE =3D :VR_CLIENTE INTO :REC_CODIGO, :REC_CLIENTE, :REC_DATA, :REC_DATA_LIMITE, :REC_VALOR_ALUGUEL, :VR_MULTA_DESCONTO, :REC_VALOR_MULTA_DESCONTO, :REC_DESCRICAO_PERIODO, :REC_NUMERO_RECIBO, :REC_NUMERO_BANCARIO DO BEGIN =20 SUSPEND; END IF (VR_MULTA_DESCONTO =3D 'D') THEN BEGIN VR_VALOR_BRUTO =3D :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA; VR_VALOR_LIQUIDO =3D VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END ELSE BEGIN VR_VALOR_BRUTO =3D :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA + :REC_VALOR_MULTA_DESCONTO; VR_VALOR_LIQUIDO =3D VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END END -- Best regards Carlos Guzm=E1n =E1lvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-25 11:26:47
|
Hello: > Ok, it's work fine. > But other question... > Variable VR_VALOR_BRUTO and VR_VALOR_LIQUDO return nothing values, do > you know why ? No, think in that i can't test it ;), just try to move the IF .. ENDIF block: CREATE PROCEDURE GET_RECIBOS ( CLI_REFERENCIA VARCHAR(12)) RETURNS ( REC_CODIGO DOUBLE PRECISION, REC_CLIENTE DOUBLE PRECISION, REC_DATA DATE, REC_DATA_LIMITE DATE, REC_VALOR_ALUGUEL NUMERIC(15,2), REC_VALOR_TAXA NUMERIC(15,2), REC_VALOR_MULTA_DESCONTO NUMERIC(15,2), VR_VALOR_LIQUIDO NUMERIC(15,2), VR_VALOR_BRUTO NUMERIC(15,2), REC_DESCRICAO_PERIODO VARCHAR(40), REC_NUMERO_RECIBO INTEGER, REC_NUMERO_BANCARIO VARCHAR(15)) AS DECLARE VARIABLE VR_MULTA_DESCONTO CHAR(1); DECLARE VARIABLE VR_CLIENTE DOUBLE PRECISION; begin /* Procedure Text */ SELECT CODIGO FROM get_codigo_cliente(:CLI_REFERENCIA) INTO :VR_CLIENTE; FOR SELECT REC_CODIGO, REC_CLIENTE, REC_DATA, REC_DATA_LIMITE, REC_VALOR_ALUGUEL, REC_MULTA_DESCONTO, REC_VALOR_MULTA_DESCONTO, REC_DESCRICAO_PERIODO, REC_NUMERO_RECIBO, REC_NUMERO_BANCARIO FROM RECIBO WHERE REC_CLIENTE = :VR_CLIENTE INTO :REC_CODIGO, :REC_CLIENTE, :REC_DATA, :REC_DATA_LIMITE, :REC_VALOR_ALUGUEL, :VR_MULTA_DESCONTO, :REC_VALOR_MULTA_DESCONTO, :REC_DESCRICAO_PERIODO, :REC_NUMERO_RECIBO, :REC_NUMERO_BANCARIO DO BEGIN SUSPEND; END IF (VR_MULTA_DESCONTO = 'D') THEN BEGIN VR_VALOR_BRUTO = :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA; VR_VALOR_LIQUIDO = VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END ELSE BEGIN VR_VALOR_BRUTO = :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA + :REC_VALOR_MULTA_DESCONTO; VR_VALOR_LIQUIDO = VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END END -- Best regards Carlos Guzmán álvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-25 11:10:57
|
Hello: > Can I change this behaviour and have the transaction not block ? Is > this something on the ADO.NET side or on the IBExpert side ? Review which Transaction Isolation are you using in the .NET Data provider ( and in IBExpert ) and see how it's configured. In the .NET Data provider : tpb.Append(GdsCodes.isc_tpb_version3); tpb.Append(GdsCodes.isc_tpb_write); tpb.Append(GdsCodes.isc_tpb_wait); /* Isolation level */ switch(this.isolationLevel) { case IsolationLevel.Serializable: tpb.Append(GdsCodes.isc_tpb_consistency); break; case IsolationLevel.RepeatableRead: tpb.Append(GdsCodes.isc_tpb_concurrency); break; case IsolationLevel.ReadUncommitted: tpb.Append(GdsCodes.isc_tpb_read_committed); tpb.Append(GdsCodes.isc_tpb_rec_version); break; case IsolationLevel.ReadCommitted: default: tpb.Append(GdsCodes.isc_tpb_read_committed); tpb.Append(GdsCodes.isc_tpb_no_rec_version); break; } -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: Josauro S.J. <jo...@ca...> - 2003-11-25 11:10:08
|
Ok, it's work fine. But other question...=20 Variable VR_VALOR_BRUTO and VR_VALOR_LIQUDO return nothing values, do = you know why ?=20 Josauro S.J. Diretor e-mail: jo...@ca... site: www.casasoft.inf.br Portal de im=F3veis www.IndicadorDeIm=F3veis.com.br O =FAnico Portal de im=F3veis 100% on-line com as imobili=E1rias, = im=F3veis atualizados minuto a minuto a certeza de que o im=F3vel = anunciado realmente esta Dispon=EDvel. ----- Original Message -----=20 From: Carlos Guzm=E1n =C1lvarez=20 To: Josauro S.J.=20 Cc: fir...@li...=20 Sent: Tuesday, November 25, 2003 9:00 AM Subject: Re: [Firebird-net-provider] = FirebirdSql.Data.INGDS.GDSException Hello: Try this: CREATE PROCEDURE GET_RECIBOS ( CLI_REFERENCIA VARCHAR(12)) RETURNS ( REC_CODIGO DOUBLE PRECISION, REC_CLIENTE DOUBLE PRECISION, REC_DATA DATE, REC_DATA_LIMITE DATE, REC_VALOR_ALUGUEL NUMERIC(15,2), REC_VALOR_TAXA NUMERIC(15,2), REC_VALOR_MULTA_DESCONTO NUMERIC(15,2), VR_VALOR_LIQUIDO NUMERIC(15,2), VR_VALOR_BRUTO NUMERIC(15,2), REC_DESCRICAO_PERIODO VARCHAR(40), REC_NUMERO_RECIBO INTEGER, REC_NUMERO_BANCARIO VARCHAR(15)) AS DECLARE VARIABLE VR_MULTA_DESCONTO CHAR(1); DECLARE VARIABLE VR_CLIENTE DOUBLE PRECISION; begin /* Procedure Text */ SELECT CODIGO FROM get_codigo_cliente(:CLI_REFERENCIA) INTO :VR_CLIENTE; FOR SELECT REC_CODIGO, REC_CLIENTE, REC_DATA, REC_DATA_LIMITE, REC_VALOR_ALUGUEL, REC_MULTA_DESCONTO, REC_VALOR_MULTA_DESCONTO, REC_DESCRICAO_PERIODO, REC_NUMERO_RECIBO, REC_NUMERO_BANCARIO FROM RECIBO WHERE REC_CLIENTE =3D :VR_CLIENTE INTO :REC_CODIGO, :REC_CLIENTE, :REC_DATA, :REC_DATA_LIMITE, :REC_VALOR_ALUGUEL, :VR_MULTA_DESCONTO, :REC_VALOR_MULTA_DESCONTO, :REC_DESCRICAO_PERIODO, :REC_NUMERO_RECIBO, :REC_NUMERO_BANCARIO do begin IF (VR_MULTA_DESCONTO =3D 'D') THEN BEGIN VR_VALOR_BRUTO =3D :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA; VR_VALOR_LIQUIDO =3D VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END ELSE BEGIN VR_VALOR_BRUTO =3D :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA + :REC_VALOR_MULTA_DESCONTO; VR_VALOR_LIQUIDO =3D VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END suspend; end end -- Best regards Carlos Guzm=E1n =C1lvarez Vigo-Spain |
From:
<car...@te...> - 2003-11-25 11:00:38
|
Hello: Try this: CREATE PROCEDURE GET_RECIBOS ( CLI_REFERENCIA VARCHAR(12)) RETURNS ( REC_CODIGO DOUBLE PRECISION, REC_CLIENTE DOUBLE PRECISION, REC_DATA DATE, REC_DATA_LIMITE DATE, REC_VALOR_ALUGUEL NUMERIC(15,2), REC_VALOR_TAXA NUMERIC(15,2), REC_VALOR_MULTA_DESCONTO NUMERIC(15,2), VR_VALOR_LIQUIDO NUMERIC(15,2), VR_VALOR_BRUTO NUMERIC(15,2), REC_DESCRICAO_PERIODO VARCHAR(40), REC_NUMERO_RECIBO INTEGER, REC_NUMERO_BANCARIO VARCHAR(15)) AS DECLARE VARIABLE VR_MULTA_DESCONTO CHAR(1); DECLARE VARIABLE VR_CLIENTE DOUBLE PRECISION; begin /* Procedure Text */ SELECT CODIGO FROM get_codigo_cliente(:CLI_REFERENCIA) INTO :VR_CLIENTE; FOR SELECT REC_CODIGO, REC_CLIENTE, REC_DATA, REC_DATA_LIMITE, REC_VALOR_ALUGUEL, REC_MULTA_DESCONTO, REC_VALOR_MULTA_DESCONTO, REC_DESCRICAO_PERIODO, REC_NUMERO_RECIBO, REC_NUMERO_BANCARIO FROM RECIBO WHERE REC_CLIENTE = :VR_CLIENTE INTO :REC_CODIGO, :REC_CLIENTE, :REC_DATA, :REC_DATA_LIMITE, :REC_VALOR_ALUGUEL, :VR_MULTA_DESCONTO, :REC_VALOR_MULTA_DESCONTO, :REC_DESCRICAO_PERIODO, :REC_NUMERO_RECIBO, :REC_NUMERO_BANCARIO do begin IF (VR_MULTA_DESCONTO = 'D') THEN BEGIN VR_VALOR_BRUTO = :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA; VR_VALOR_LIQUIDO = VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END ELSE BEGIN VR_VALOR_BRUTO = :REC_VALOR_ALUGUEL + :REC_VALOR_TAXA + :REC_VALOR_MULTA_DESCONTO; VR_VALOR_LIQUIDO = VR_VALOR_BRUTO - :REC_VALOR_MULTA_DESCONTO; END suspend; end end -- Best regards Carlos Guzmán Álvarez Vigo-Spain |
From: Josauro S.J. <jo...@ca...> - 2003-11-25 10:44:04
|
This is de version of last Provider ? 1.1.1266.28704 Josauro S.J. Diretor e-mail: jo...@ca... site: www.casasoft.inf.br Portal de im=F3veis www.IndicadorDeIm=F3veis.com.br O =FAnico Portal de im=F3veis 100% on-line com as imobili=E1rias, = im=F3veis atualizados minuto a minuto a certeza de que o im=F3vel = anunciado realmente esta Dispon=EDvel. ----- Original Message -----=20 From: Carlos Guzm=E1n =C1lvarez=20 To: Josauro S.J.=20 Cc: fir...@li...=20 Sent: Tuesday, November 25, 2003 7:50 AM Subject: Re: [Firebird-net-provider] = FirebirdSql.Data.INGDS.GDSException Hello: > Hello: > =20 > I change my code to ...("EXECUTE PROCEDURE=20 > GET_RECIBOS(@CLI_REFERENCIA)" )... > And the error not ocurrs, but other error about cant return = multiples=20 > row in singleton select.... SELECT * FROM GET_RECIBOS(@CLI_REFERENCIA) -- Best regards Carlos Guzm=E1n =C1lvarez Vigo-Spain |