[firebird-support] Re: lock conflict on no wait transaction - finding the user

2012-02-09 Thread technisoft2005
--- In firebird-support@yahoogroups.com, Thomas Steinmaurer wrote: > > When you get: > > "lock conflict on no wait transaction deadlock update conflicts with > concurrent update concurrent transaction number is 7850179" I'll have to look deeper into my deadlock handling message code. It may b

Re: [firebird-support] Set generator in execute block

2012-02-09 Thread s1cart3r
This is strictly for embedded clients :-) Sent from my BlackBerry® wireless device -Original Message- From: Ann Harrison Sender: firebird-support@yahoogroups.com Date: Thu, 9 Feb 2012 17:09:43 To: Reply-To: firebird-support@yahoogroups.com Subject: Re: [firebird-support] Set generator i

Re: [firebird-support] Set generator in execute block

2012-02-09 Thread Ann Harrison
On Thu, Feb 9, 2012 at 4:05 PM, Si Carter wrote: > Worked a treat thankyou > If you plan to use this in a multi-user environment, do test it there too. Good luck, Ann >> >> EXECUTE BLOCK >> AS >> DECLARE VARIABLE vMaxID INTEGER; >> DECLARE VARIABLE Dummy INTEGER; >> BEGIN >> SELECT MAX(PK_TABL

Re: [firebird-support] Set generator in execute block

2012-02-09 Thread Si Carter
Worked a treat thankyou Si 2012/2/9 Svein Erling Tysvær > ** > Why not: > > EXECUTE BLOCK > AS > DECLARE VARIABLE vMaxID INTEGER; > DECLARE VARIABLE Dummy INTEGER; > BEGIN > SELECT MAX(PK_TABLE_B) FROM TABLE_B > INTO :vMaxID ; > DUMMY = GEN_ID(TABLE_B_GEN, :vMaxID - GEN_ID(TABLE_B_GEN, > -GEN_

Re: [firebird-support] Delays on reading database - Windows 2008 R2 - Firebird 2.0.5

2012-02-09 Thread Milan Babuskov
kelpiedave wrote: > It is a good spec IBM x3550, RAID 1 with 12 GB RAM. First you should isolate whether it is a problem with Firebird or the operating system. What is the overall system performance. For example, if you try to copy a big file, what speed in MB/s do you observer? > it seems ther

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Thomas Steinmaurer
>>> On 9 February 2012 13:33, Thomas Steinmaurer wrote: >>> ** >> Hi Nick, > I cut&pasted the line from the config file > > checked the permissions of /var/tmp, no problem there (777) > > I tried the tracker and didn't find anything, this seems the

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Nick Upson
Nick Upson On 9 February 2012 13:44, Thomas Steinmaurer wrote: > ** > > > > On 9 February 2012 13:33, Thomas Steinmaurer wrote: > > > >> ** > > >> > >> > >> Hi Nick, > >> > >> > >>> I cut&pasted the line from the config file > >>> > >>> checked the permissions of /var/tmp, no problem there (77

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Thomas Steinmaurer
> On 9 February 2012 13:33, Thomas Steinmaurer wrote: > >> ** >> >> >> Hi Nick, >> >> >>> I cut&pasted the line from the config file >>> >>> checked the permissions of /var/tmp, no problem there (777) >>> >>> I tried the tracker and didn't find anything, this seems the be the >> nearest >>> http:/

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Nick Upson
Nick Upson On 9 February 2012 13:33, Thomas Steinmaurer wrote: > ** > > > Hi Nick, > > > > I cut&pasted the line from the config file > > > > checked the permissions of /var/tmp, no problem there (777) > > > > I tried the tracker and didn't find anything, this seems the be the > nearest > > ht

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Thomas Steinmaurer
Hi Nick, > I cut&pasted the line from the config file > > checked the permissions of /var/tmp, no problem there (777) > > I tried the tracker and didn't find anything, this seems the be the nearest > http://tracker.firebirdsql.org/browse/CORE-2422 but doesn't appear to > relate to 2.1.4 I see iss

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Nick Upson
I cut&pasted the line from the config file checked the permissions of /var/tmp, no problem there (777) I tried the tracker and didn't find anything, this seems the be the nearest http://tracker.firebirdsql.org/browse/CORE-2422 but doesn't appear to relate to 2.1.4 Nick Upson On 9 February 20

Re: [firebird-support] TempDirectories setting ignored

2012-02-09 Thread Thomas Steinmaurer
Hi Nick, > (firebird 2.1, centos, classic) I have this in the firebird.conf file Which 2.1 version exactly? > TempDirectories = /tmp;/var/tmp Is this the real value, or are there spaces between the entries, size restrictions in bytes? > and yet, only /tmp was used and then the query quit wit

Re: [firebird-support] Re: Connection limit

2012-02-09 Thread Thomas Steinmaurer
> Thanks for the reply Thomas > > I forgot to mention that the 1000+ attachments we are expecting is over about > 60 databases, where the maximum attachments to a single database is about 50. > How will this affect the contention on the lock table? Ah, ok, thought 1000+ attachments on a single d

Re: [firebird-support] Re: lock conflict on no wait transaction - finding the user

2012-02-09 Thread Thomas Steinmaurer
> --- In firebird-support@yahoogroups.com, Thomas Steinmaurer wrote: >> >>> Is there something I can do to find out which user is locking a particular >>> record in a database? If I can use the transaction number to lookup the >>> user, then I may be able to simply ask that user to re-start his m

[firebird-support] TempDirectories setting ignored

2012-02-09 Thread Nick Upson
Hi, (firebird 2.1, centos, classic) I have this in the firebird.conf file TempDirectories = /tmp;/var/tmp and yet, only /tmp was used and then the query quit with and out-of-space message. Can anyone see what it wrong with it, or is this a bug? Nick Upson [Non-text portions of this message h

[firebird-support] variable substitute

2012-02-09 Thread Virna Constantin
Hi I have the following trigger ALTER TRIGGER PONT_LUNA_BA ACTIVE BEFORE INSERT OR UPDATE OR DELETE POSITION 5 AS   declare variable ii smallint;   declare variable cZiC char(8);   declare variable cVal char(5);   declare variable cPon char(3);   declare variable cSup char(1);   declare variable

[firebird-support] Re: lock conflict on no wait transaction - finding the user

2012-02-09 Thread technisoft2005
--- In firebird-support@yahoogroups.com, Thomas Steinmaurer wrote: > > > Is there something I can do to find out which user is locking a particular > > record in a database? If I can use the transaction number to lookup the > > user, then I may be able to simply ask that user to re-start his ma

[firebird-support] FreeBSD 9.0 - FB 2.5.1 - mutex lock

2012-02-09 Thread mailinglist
Dear List, i'm running Firebird SQL 2.5.1 on a 64bit FreeBSD 9.0 machine. We are using a .NET 2.0 based accounting application from two Windows machines on a LAN accessing a database no bigger than 10BM's. From time to time (after 30 minutes, or 5 hours) the clients disconnects from the db and can

[firebird-support] Re: Connection limit

2012-02-09 Thread thomas_kragh
Thanks for the reply Thomas I forgot to mention that the 1000+ attachments we are expecting is over about 60 databases, where the maximum attachments to a single database is about 50. How will this affect the contention on the lock table? --- In firebird-support@yahoogroups.com, Thomas Steinma

SV: [firebird-support] Delays on reading database - Windows 2008 R2 - Firebird 2.0.5

2012-02-09 Thread Poul Dige
Could it be Windows making a backup of the FDB-file every time you start accessing it? That has been a well known problem... Regards Poul Fra: firebird-support@yahoogroups.com [mailto:firebird-support@yahoogroups.com] På vegne af kelpiedave Sendt: 9. februar 2012 01:03 Til: firebird-support@yah

RE: [firebird-support] Set generator in execute block

2012-02-09 Thread Svein Erling Tysvær
>When trying to execute the following it produces an error: > >SET TERM ^ ; > >EXECUTE BLOCK >AS > DECLARE VARIABLE vMaxID BIGINT; >BEGIN > SELECT MAX(ID) FROM A_TABLE > INTO :vMaxID; > > SET GENERATOR GEN_A_TABLE_ID TO :vMaxID; >END > >SET TERM ; ^ > >the error being > >Engine Code: 335544

[firebird-support] Re: Trouble with select

2012-02-09 Thread raistware
Finally I created a store procedure that I call it with a string parameter "1,1,1,2,3,3,4" and creates what I need. I think is only way to get what I need. Thank you all for your time. --- In firebird-support@yahoogroups.com, "raistware" wrote: > > Hi > > Im trying a bit difficult select: >

RE: [firebird-support] Trouble with select

2012-02-09 Thread Svein Erling Tysvær
>Im trying a bit difficult select: > >select id, value >from MyTable >where id in (1, 1, 1, 2, 3, 3, 4) > >I want that for every value inside IN a row is output, so for example this >would result something like: >1 | 40 >1 | 40 >1 | 40 >2 | 21 >3 | 23 >3 | 23 >4 | 87 > >But now I don't take duplic