[firebird-support] Re: Firebird on Raspberry Pi 2 : Problem to connect remotely

2015-12-03 Thread Christian Mereles chmere...@gmail.com [firebird-support]
openbsd-inetd: To accept remote connections. At least in Ubuntu. Greeting. Christian

[firebird-support] Re: High value of Writes from cache to disk, why?

2013-08-17 Thread Christian Mereles
Database Write Mode workstation and server? http://www.firebirdsql.org/manual/gfix-sync.html Regards. Christian Mereles. [Non-text portions of this message have been removed]

[firebird-support] Re: AGAIN (i know, but different) Max optimized... or not?

2013-04-16 Thread Christian Mereles
Ok, I understand. While the second table is not as complex but if you want to take the index optimally try something like: select first 1 n_orden from ordenes where year_orden = new.year_orden order by* year_orden desc, n_orden desc* into new.n_orden; Regards. Christian [Non-text portions of

[firebird-support] Re: AGAIN (i know, but different) Max optimized... or not?

2013-04-16 Thread Christian Mereles
Check the query, just read ONE REGISTER to return the MAX each year !!!. select first 1 n_orden + 1 from ordenes where year_orden = new.year_orden order by year_orden desc, n_orden desc into new.n_orden; /*---*/ The query that you use does

Re: [firebird-support] Re: AGAIN (i know, but different) Max optimized... or not?

2013-04-16 Thread Christian Mereles
Ok, some querys: 1 - No index: select coalesce(max(o.N_ORDEN), 0) + 1 from ORDENES O where O.EJER=2012 --into new.n_orden https://dl.dropboxusercontent.com/u/15932768/sin_indice.jpg 2 - With index, uses multiple records: create descending index ordenes_idx1 on ordenes (ejer,n_orden); select

[firebird-support] Re: Restoring database from 2.0 to 2.5 doesn't work even if -fix_fss_data is used

2013-03-26 Thread Christian Mereles
Hi, This has to work: gbak -c -v -t -rep fitxer.fbk fitxer.ib -user SYSDBA -password masterkey *-FIX_FSS_D ISO8859_1 -FIX_FSS_M ISO8859_1 * Regards. -- Christian. [Non-text portions of this message have been removed]

Re: [firebird-support] Re: Restoring database from 2.0 to 2.5 doesn't work even if -fix_fss_data is used

2013-03-26 Thread Christian Mereles
Hi Dmitry, You're right, in my restore script I have something like: #!/bin/bash FBK=$1 FDB=$2 gbak *-r -k -v *$FBK $FDB -FIX_FSS_D ISO8859_1 -FIX_FSS_M ISO8859_1 chown firebird.firebird $FDB I was just emphasizing the fix options: -FIX_FSS_D ISO8859_1 -FIX_FSS_M ISO8859_1 Thanks. --

[firebird-support] Re: For loop or while loop inside of a stored procedure?

2013-02-08 Thread Christian Mereles
Hi, Loop dates within a range: create or alter procedure SP_DATES ( INICIO date, FINAL date) returns ( FECHA date) as begin /* Procedure Text */ Fecha = inicio; while (Fecha final) do begin Fecha = Fecha + 1; suspend; end end Regards. -Christian- [Non-text

[firebird-support] Re: restore a firebird 2.1 gbk in firebird 2.5

2013-02-07 Thread Christian Mereles
Hi, View the following: http://paulbeachsblog.blogspot.com.ar/2011/07/firebird-v21-error-value-exceeds-range.html Regards. -Christian- [Non-text portions of this message have been removed]

[firebird-support] Re: restore a firebird 2.1 gbk in firebird 2.5

2013-02-07 Thread Christian Mereles
Hi, En la db del ejemplo http://sourceforge.net/mailarchive/message.php?msg_id=23092682 The messages table has several timestamp fields, but the field (expired) is generating the error. Database: cabrweb.fdb, User: sysdba SQL select expired from messages; EXPIRED

RE: [firebird-support] Dropping udf trim to use FB 2.1 internal function

2013-02-04 Thread Christian Mereles
Hello, You could also do: 1. Disable all triggers and procedures. IBExpert lets you do it all at once (Desactivate ALL Triggers/Store Procedures). 2. Delete or rename the UDF 2. Backup and Restore the DB. 3. Activate one by one and trigger procedures. Regards. PD: Sorry for my English :)

[firebird-support] Re: IIF bug?

2013-01-23 Thread Christian Mereles
and... SELECT '11'||IIF(12,'00', cast('' as varchar(1)))||'.22' FROM rdb$database Regards. [Non-text portions of this message have been removed]