Re: [firebird-support] Create view on external table

2020-01-06 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Eric, Yes, the optimizer can use an index with a WHERE on a VIEW, but only when the view is local, not when using EXECUTE STATEMENT on an external database. With regards, Martijn Tonies Upscene Productions http://www.upscene.com From: Eric Guéguiniat eric.gueguin...@gmail.com [firebird

Re: [firebird-support] Off-Topic: Firebird future

2019-10-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
I wonder, Lucas, what will you be publishing then? :) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB and Firebird. -Original Message- Am

Re: [firebird-support] Firebird vs. PostgreSQL

2018-11-08 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Triggers don't have code. Hope this helps. With regards, Martijn Tonies Upscene Productions http://www.upscene.com On 07.11.2018 19:27, 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support] wrote: > Yes, it's true and it's rather annoying when, for example,

Re: [firebird-support] Firebird vs. PostgreSQL

2018-11-07 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
r stored procedure with wrong list of >parameters, and it will give error only at the execution time? I'll let you know. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Regards, Alexey On 07.11.2018 19:27, 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [fi

Re: [firebird-support] Firebird vs. PostgreSQL

2018-11-07 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Yes, it's true and it's rather annoying when, for example, developing an interactive database development tool ;) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase

Re: [firebird-support] Firebird and Windows 10 update

2018-05-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi all, Could this be related to: https://blog.mertech.com/windows-10-version-1803-breaks-some-shared-folder-applications "This means that applications started from these environments can’t open a connection to a database server." With regards, Martijn Tonies Upscene Produc

Re: [firebird-support] Firebird 3 advanced plan output > how to use this with the API?

2018-02-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
mean? How to parse it, or how to get it? >> >> How to get it, without using isql. > >Vlad already answered that: > > > Pass isc_info_sql_explain_plan (value 26) into isc_dsql_info() >instead of isc_info_sql_get_plan (value 22) I missed that, thanks. With regards, Martijn Tonies Upscene Productions http://www.upscene.com

Re: [firebird-support] Firebird 3 advanced plan output > how to use this with the API?

2018-02-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
>On 23-2-2018 11:58, 'Martijn Tonies (Upscene Productions)' >m.ton...@upscene.com [firebird-support] wrote: >> I wonder, how can applications use this feature >> https://www.firebirdsql.org/file/documentation/release_notes/html/en/3_0/rnfb30-dml-planoutput.html > >What d

Re: [firebird-support] Firebird 3 advanced plan output > how to use this with the API?

2018-02-23 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Mark, How to get it, without using isql. With regards, Martijn Tonies Upscene Productions http://www.upscene.com -Original Message- From: Mark Rotteveel m...@lawinegevaar.nl [firebird-support] Sent: Friday, February 23, 2018 1:03 PM To: firebird-support@yahoogroups.com Subject

[firebird-support] Firebird 3 advanced plan output > how to use this with the API?

2018-02-23 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi, I wonder, how can applications use this feature https://www.firebirdsql.org/file/documentation/release_notes/html/en/3_0/rnfb30-dml-planoutput.html With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server

Re: [firebird-support] Insert error: count of column and variable list do not match

2017-12-29 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi, Remove the VALUES(( part There’s no need for a VALUES keyword if you use a SELECT to insert rows. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] FB 3 add description to table/ column

2017-04-03 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Michał, Firebird 3 uses the following syntax: COMMENT ON IS 'value' COMMENT ON COLUMN . IS 'value' With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] Re: Cursor FETCH in PSQL and ROW_COUNT/'fetch past last record' error

2017-03-29 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dmitry, >28.03.2017 10:06, Martijn Tonies wrote: >> >> So the first 'fetch' operation on a position that's invalid returns >> "rowcount=0", >> any additional fetch (which includes a move) returns an exception? > >Yes. Moving cursor from

Re: [firebird-support] Re: Cursor FETCH in PSQL and ROW_COUNT/'fetch past last record' error

2017-03-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dmitry, So the first 'fetch' operation on a position that's invalid returns "rowcount=0", any additional fetch (which includes a move) returns an exception? That seems to be the case. With regards, Martijn Tonies Upscene Productions http://www.upscene.com -Origin

[firebird-support] Cursor FETCH in PSQL and ROW_COUNT/'fetch past last record' error

2017-03-27 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
use: fetch absolute 11 from c into :p_out1; I wonder, should the first fetch next that returns no data, return row_count=0, or also the ‘fetch past record stream’ error? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, M

Re: [firebird-support] Read only transaccions and generators

2017-03-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Aldo, Generators are NOT influenced by transactions, so yes, that is correct. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB and Firebird

Re: [firebird-support] Fb 3: error code 336068898 when recreating package

2017-01-05 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dimitry, >05.01.2017 12:17, 'Martijn Tonies (Upscene Productions)' >m.ton...@upscene.com >[firebird-support] wrote: >> Any idea what this error code means? > > "Default values for parameters are allowed only in declaration of > packaged function @1.@2"

[firebird-support] Fb 3: error code 336068898 when recreating package

2017-01-05 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi all, Any idea what this error code means? RECREATE PACKAGE BODY PCK_TEST failed unknown ISC error 336068898 while executing: RECREATE PACKAGE BODY PCK_TEST AS begin ... code With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool

Re: [firebird-support] info

2017-01-05 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
on to preserving case, is to use double quotes around the object names. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB and Firebird.

Re: [firebird-support] info

2017-01-04 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Nico, If you want the case preserved, you have to use double quotes, always. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Database Workbench - developer tool for Oracle, MS SQL Server, PostgreSQL, SQL Anywhere, MySQL, InterBase, NexusDB and Firebird. We want

Re: [firebird-support] Re: gbak with -se switch?

2016-06-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
a host name to this command line. Ah, that's what I tried at first, but failed with the -se option included. I tried a connection string with host, but without -se now, and that works as well. Seems there's multiple ways of doing things. ;) With regards, Martijn Tonies Upscene Productions

Re: [firebird-support] Re: gbak with -se switch?

2016-06-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
>22.06.2016 12:14, 'Martijn Tonies (Upscene Productions)' >m.ton...@upscene.com >[firebird-support] wrote: >> When connected to the database from another application, here: >> C:\Program Files\Firebird\Firebird_3_0>gbak -b -m -t -v >> -user sysdba -pas

Re: [firebird-support] Re: gbak with -se switch?

2016-06-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
hus without >quotes)? No, cause the database name contains spaces ;) And it works fine using the services API (via a Delphi component). Could that be the cause of the multiple sources/destinations error? If so, I'll take it this is a parsing error in gbak? With regards, Martijn Tonies Upscene Productions http://www.upscene.com

Re: [firebird-support] Re: gbak with -se switch?

2016-06-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
le would be nice. ;) With regards, Martijn Tonies Upscene Productions

[firebird-support] gbak with -se switch?

2016-06-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
switch. But I can’t get it working, any clue? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] How to skip a trigger in the same trigger?

2016-04-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
old >row), >would then always have a single row assigned to be the default and avoids >the recursive trigger. Alternatively, make this part of the trigger only fire when ISDEFAULT = T, then you can safely set ISDEFAULT to 'F' from within the trigger. With regards, Martijn Tonies U

Re: [firebird-support] How to skip a trigger in the same trigger?

2016-04-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
single row assigned to be the default and avoids the recursive trigger. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL

Re: [firebird-support] How to skip a trigger in the same trigger?

2016-04-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi, First question: why do you have an UPDATE in a BEFORE UPDATE trigger on ? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! Hi All, I have a BEFORE

Re: [firebird-support] Why can't I have a SUSPEND or UPDATE in the same Stored Procedure?

2015-11-03 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
. In the SQL Editor, you can actively start a transaction by yourself and the commit/rollback buttons will always be enabled. Hope this helps, if not, feel free to write to me personally. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS

Re: [firebird-support] storing a sequence value in a trigger

2015-10-06 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
... ) values (:myassid, ... other columns ... ) /* other inserts */ insert into ... end or insert into assignments(... other columns ... ) values ( ... ) returning_values assid into :myassid; With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle

Re: [firebird-support] What is better: UPDATE or DELETE + INSERT?

2015-09-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
view, if you want to modify data, update it. Something else doesn't make sense. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Hex string literal, blob not supported for conversion?

2015-08-31 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
nversion supported, but an other, that looks the same to the user, fails? This is counter intuitive. (and yes, I do read between the lines you don't feel compelled to change it) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Hex string literal, blob not supported for conversion?

2015-08-31 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
do the same. That's confusing. Why would an external function require a field name as the "blob value"? It expects a blob value. From the user point of view, I see no reason why this can't be a temporary blob, or a just-converted-blob, like the SQL INSERT statement can. Wi

Re: [firebird-support] Re: Hex string literal, blob not supported for conversion?

2015-08-31 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
MP_BLOBS PRIMARY KEY (ID) ); insert into BMP_BLOBS values (-1, X'101010', 'test') How is the declared function any different? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

[firebird-support] Hex string literal, blob not supported for conversion?

2015-08-31 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
are not supported for conversion operation “ But as far as I can see, X’10’ returns a binary string, a blob? Firebird 2.5. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] Table Relationship Tools

2015-04-15 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Vishal, Is there any tool available which would show the relationship/linking between tables for Firebird database ? Our Database Workbench tool does that. http://www.upscene.com/documentation/dbw5/dia_pdm_reverse_engineering.htm With regards, Martijn Tonies Upscene Productions http

[firebird-support] Plan question, what is a stream and what isn't?

2015-04-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
( T T L NATURAL ), L INDEX (TICKETLABELID) ) And how about the final INDEX specifier? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Scope of uniqueness constraint?

2015-04-01 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
values by 1) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! If there's some code which says if there isn't an EXXON then create one, and there's

Re: [firebird-support] Distributing/deploying Stored Procedures

2015-03-12 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
. Or extract a script for all procedures that does these create-with-empty-body-and-then-alter-cycle. Hope this helps. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] Trouble with a Firebird query

2015-03-09 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi, Text values go inside single quotes: WHERE mycol = ‘value’ With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! I am having trouble writing a query

Re: [firebird-support] Charset in ISQL: How to show special characters

2015-02-19 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hi, Looks like ISQL is right and EMS SQL Manager is wrong. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support@yahoogroups.com

Re: AW: [firebird-support] Charset in ISQL: How to show special characters

2015-02-19 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
that the presentation of the same data (= varchar with special characters) would change in isql if I switch charset. What application is show ö and what isn't? And is that valid? With regards, Martijn Tonies Upscene Productions Von: firebird-support@yahoogroups.com [mailto:firebird-support

Re: [firebird-support] How do load a BLOB file using an Update query

2015-02-11 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
qryUpdateManifestBLOB.ExecSQL; which Firebird did not like because LoadToFile is an unknown function. See above. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-29 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
When executing the procedure, UTF8/WIN1251/WIN1250 connected, I get: exception 1 TEST 1ТЕСТ НА БЪЛГАРСКИ At procedure 'TEST' line: 4, col: 3 This -could- be my error, but how do I verify? When I try in isql, I get the same. With regards, Martijn Tonies Upscene Productions http

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-29 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dmitry, I'm still puzzled. 29.01.2015 19:15, Martijn Tonies wrote: 2) Create SP with EXCEPTION ERROR 'some Cyrillic string'; Done. In the source, I see the following: begin exception test _utf8 X'31D0A2D095D0A1D0A220D09DD09020D091D0AAD09BD093D090D0A0D0A1D09AD098'; end You

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-27 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
this won't work either? Or at least, not in my test? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
string. But this doesn't seem to work either? Does this work at all with Exceptions? AFAIU, your trick (exception parameter) should work. Hmm, I'm puzzled then, cause it doesn't seem to work at first sight. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-21 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
with Exceptions? AFAIU, your trick (exception parameter) should work. Hmm, I'm puzzled then, cause it doesn't seem to work at first sight. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL

[firebird-support] Unicode text in Exception?

2015-01-21 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
idea how to do this? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Unicode text in Exception?

2015-01-21 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
string here'; When I look at RDB$PROCEDURES.RDB$PROCEDURE_SOURCE I can see the text is inserted as a hex string. But this doesn't seem to work either? Does this work at all with Exceptions? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench

Re: [firebird-support] Firebird 3.0 Development Admin Tools

2015-01-15 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Christoph, Database Workbench supports some of the new features in Firebird 3 – for example, the packages. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] Re: How do you write dynamic sql in Firebird

2014-12-15 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dmitry, 12.12.2014 23:08, 'Martijn Tonies wrote: But using ROWS instead of FIRST makes using a parameter possible FIRST (:CNT) does the trick as well. Oh, good one, let's see if I can remember. ;) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download

Re: [firebird-support] How do you write dynamic sql in Firebird

2014-12-12 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
‘; But using ROWS instead of FIRST makes using a parameter possible, so it seems: IN (SELECT ... FROM ... ROWS :CNT) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] RDB$GET_CONTEXT()

2014-12-12 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
$GET_CONTEXT message. What am I doing wrong? Well, I'm getting: Invalid namespace name system passed to RDB$GET_CONTEXT But at least the function works. In Database Workbench, if you expand the UDFs node after establishing a database connection, is RDB$GET_CONTEXT listed? With regards, Martijn

Re: [firebird-support] How do you write dynamic sql in Firebird

2014-12-12 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Dixon, Is this using the ROWS on your UPDATE or on your SELECT? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support

Re: [firebird-support] RDB$GET_CONTEXT()

2014-12-12 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
, is this the same when you create a new database? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support@yahoogroups.com Sent: Friday

Re: [firebird-support] Migration from Firebird 32 1.5.6 to Firebird 64 2.5.3

2014-10-29 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Create a backup with Firebird 1.5, restore it with 2.5. Make sure to keep a copy. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird

Re: [firebird-support] How do I count the number of duplicate rows in a table?

2014-10-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
select count(case_number) as counted, case_number from ACCT_CASE_COURT group by case_number ? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From

Re: [firebird-support] How do I count the number of duplicate rows in a table?

2014-10-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Mike, select count(CASE_NUMBER), CASE_NUMBER from ACCT_CASE_COURT group by CASE_NUMBER having count(CASE_NUMBER) 1 With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase

Re: [firebird-support] How do I return an accurate COUNT(*) when a JOIN is involved?

2014-10-14 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Good morning SET. ;) I thought of the concatenation trick, but found it ugly as a solution, your second query is cleaner, I think. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL

Re: [firebird-support] How do I return an accurate COUNT(*) when a JOIN is involved?

2014-10-13 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Mike, In the second query, you’re counting records and then do the DISTINCT, so the result is 32, and if you “distinct” that result, there’s only 1 record, with a value of 32. What you seem to want, is to COUNT(DISTINCT(...)) With regards, Martijn Tonies Upscene Productions http

Re: [firebird-support] How do I return an accurate COUNT(*) when a JOIN is involved?

2014-10-13 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! - Original Message - From: mailto:m.ton...@upscene.com [firebird-support] To: firebird-support

Re: [firebird-support] How do I return an accurate COUNT(*) when a JOIN is involved?

2014-10-13 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
table, but these are available in Firebird 2 onward. The alternative is to create a VIEW for the DISTINCT query and COUNT on that. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase

Re: [firebird-support] How do I return an accurate COUNT(*) when a JOIN is involved?

2014-10-13 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
of these or what combination are unique with regard to each ACCT_CASE? If none, you would need a derived table, but these are available in Firebird 2 onward. The alternative is to create a VIEW for the DISTINCT query and COUNT on that. With regards, Martijn Tonies Upscene

[firebird-support] wait vs nowait on meta data statements

2014-10-02 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
”, the problem goes away. Is it safe to always use “wait” on such transactions? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

[firebird-support] Setting blob values to a binary hex literal returns strange results (PSQL)

2014-09-25 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
! I’ve verified this in Database Workbench, BLOB Editor for hex values, returned is: 3634 And using f_blobsize function in FreeAdhocUDF, which returns a size of “2”. Any clue why this happens? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench

Re: [firebird-support] Re: How to populate a new table column with a INTEGER sequence?

2014-09-22 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Wouldn’t leaving out the “temp trigger” and “foo” and simply doing: update sometable set id = gen_id(some_table_id_gen, 1); have the same result? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
I think this needs a GROUP BY a.Project_PK With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support@yahoogroups.com Sent: Tuesday

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
It did, but my fingers were quicker. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support@yahoogroups.com Sent: Tuesday

Re: [firebird-support] DROP CONSTRAINT only shows effect after commit?

2014-08-28 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Patrick, Yes, that is correct, meta data changes need to be committed as well. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From

Re: [firebird-support] Extracting check values from domain

2014-08-08 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Alan, The domain check constraint is available, however, it is a custom written check constraint, like for example: CREATE DOMAIN ... CHECK ( VALUE IN ('Y', 'N') ) This source can be found in the system tables, table RDB$FIELDS column RDB$VALIDATION_SOURCE With regards, Martijn Tonies

Re: [firebird-support] remove constraint

2014-07-07 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Wolfgang, ALTER TABLE tablename DROP CONSTRAINT INTEG_485 That should do the trick. Or find the constraint and simply click Drop in Database Workbench. ;) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server

Re: [firebird-support] Get check constraints info

2014-06-05 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
Hello Maxi, Check constraints are table based, not column based. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: mailto:firebird-support

Re: [firebird-support] non us characters in comments fail

2014-04-25 Thread Martijn Tonies (Upscene Productions)
this issue with recent versions of Database Workbench? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] non us characters in comments fail

2014-04-25 Thread Martijn Tonies (Upscene Productions)
Hello Tim, Hmm, if Firebird allows you to store such characters, I would expect Database Workbench to support it. ;) If you can find a reproducible case, let me know. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL

Re: [firebird-support] how to connect server from client

2014-04-15 Thread Martijn Tonies (Upscene Productions)
Hi, This might help: http://www.connectionstrings.com/firebird/ On the client, you need to install the Firebird client, on the server, you need to have Firebird running. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL

Re: [firebird-support] how to connect server from client

2014-04-15 Thread Martijn Tonies (Upscene Productions)
Hi, If you have the Firebird installer, it has an option to install the client only, this is all the client machine requires. With regard to the server, either superserver/classic (which is an architecture thingy), both are fine. With regards, Martijn Tonies Upscene Productions http

Re: [firebird-support] how to connect server from client

2014-04-15 Thread Martijn Tonies (Upscene Productions)
Hi, I know next to nothing about VB. So, what type of driver are you using? And don’t forget, “didn’t work” tells us exactly nothing. Any error message? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL

Re: [firebird-support] Getting access without password

2014-03-28 Thread Martijn Tonies (Upscene Productions)
a copy of Database Workbench ( www.upscene.com/go/?go=dbw ) so you can access both Firebird and MS SQL Server and use it to transfer the data (and/or meta data). With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server

Re: [firebird-support] stored procedure for a computed field?

2014-03-27 Thread Martijn Tonies (Upscene Productions)
(ORDERID) ); As you can see, the COMPUTED BY clause has a double set of parenthesis, allowing you to use the procedure. Hope this helps. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL

Re: [firebird-support] Concatenate integer and string in SQL

2014-03-20 Thread Martijn Tonies (Upscene Productions)
Hi, Use the “double pipe”: || With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! From: dres...@tbinc.com Sent: Thursday, March 20, 2014 6:51 PM

[firebird-support] Timestamp value with time part of 24:00:00.0000

2014-01-13 Thread Martijn Tonies (Upscene Productions)
Hi, I’ve got a database from a customer with a timestamp value with a time part of 24:00:00.. It this supposed to be possible on Firebird 2.5.2? isql reports an error when selecting the value: “ value exceeds the range for valid timestamps “ Any clue? With regards, Martijn Tonies Upscene

Re: [firebird-support] Timestamp value with time part of 24:00:00.0000

2014-01-13 Thread Martijn Tonies (Upscene Productions)
incorrect. This query returns the value as 24:00: select T_DATACZAS, cast(T_DATACZAS as char(24)) from BATCH_DOBOWE where D_IDPOMIARU=97 The results: DATACZAS CAST 2014-01-04 2014-01-03 24:00:00. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database

[firebird-support] ANN: Database Workbench 4.4.3, the multi-DBMS IDE now available!

2013-11-27 Thread Martijn Tonies (Upscene Productions)
supports: - Borland InterBase ( 6.x and up ) - Firebird ( 1.x and up ) - MS SQL Server/MSDE ( 7 and up ) - MySQL 4.x and up - Oracle Database ( 8i and up ) - Sybase SQL Anywhere ( 9 and up ) - NexusDB ( 3.0 and up ) Thank you for your support, Martijn Tonies Database Workbench - the database

Re: [firebird-support] Re: Threading using multiple connections

2013-08-06 Thread Martijn Tonies
is safe (as long as you follow thread per attachment rule). Hope it is clear now, Thanks, also calls to Services API and so on follow the same rules? Getting database info (pages/pagesize/etc)? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database

[firebird-support] Threading using multiple connections

2013-08-02 Thread Martijn Tonies
Hi all, Can someone let me know if the following is thread-safe: - a client library from Firebird version 1, 1.5, 2 or 2.1 - using a connection per thread - executing calls via multiple threads With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database

Re: [firebird-support] Re: Threading using multiple connections

2013-08-02 Thread Martijn Tonies
cannot be done while another thread is already waiting for the API to return, right? Regards, Vlad PS v2.5 client should be free from the limitations above, you surely know it :) Yes. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench

Re: [firebird-support] Computed field Dependencies

2013-04-09 Thread Martijn Tonies
to do that ? Hm, that is surprising. Newer versions of Firebird support altering the COMPUTED BY clause. What version of Firebird are you using? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL

Re: [firebird-support] Computed field Dependencies

2013-04-09 Thread Martijn Tonies
'); // drop temporary computed field ALTER TABLE DML_TEST1 DROP DBW$$TEMP; If this doesn't help for you, I'd be interested in a copy of the database to see what's going on. ;) Hope this helps. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench

Re: [firebird-support] Computed field Dependencies

2013-04-08 Thread Martijn Tonies
the computed by field and it will generate the required statements for you. Note: it's tricky, but has been proven as working. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB

Re: [firebird-support] Retrieve fieldnames AND types

2013-02-14 Thread Martijn Tonies
Hello Michael, I'll send you one of my old presentations about the system tables. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird! I have found the way

Re: [firebird-support] Retrieving Default Value of a Column

2013-02-01 Thread Martijn Tonies
Hi, Use RDB$DEFAULT_SOURCE With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] How to alter the check constraint of a domain definition?

2013-01-11 Thread Martijn Tonies
the default value. ALTER DOMAIN domainname DROP CONSTRAINT; ALTER DOMAIN domainname ADD CONSTRAINT CHECK (...); Or use a GUI tool like Database Workbench that does this for you. ;) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL

Re: [firebird-support] How to alter the check constraint of a domain definition?

2013-01-11 Thread Martijn Tonies
:-) Of course, but you could see the result without having to check the documentation. ;) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Do I need to recompile a stored procedure?

2013-01-11 Thread Martijn Tonies
when I must recompile of PROC_A because something in body of PROC_B has changed. Correct. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Need a little help with EXECUTE STATEMENT

2013-01-09 Thread Martijn Tonies
the problem? It becomes un-quoted... Try: WHERE D.CREATE_DATE = ''' || tsEndDate || INTO ... Where ''' = ' ' ' (with no spaces) and = ' ' ' ' (with no spaces) With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server

Re: [firebird-support] Moving data from one database to another

2013-01-08 Thread Martijn Tonies
I need to make a sync app to do the move? You can download a trial of Database Workbench at www.upscene.com and use the DataPump to do this, see: http://upscene.com/documentation/dbw4/tools_datapump.htm Hope this helps. With regards, Martijn Tonies Upscene Productions http://www.upscene.com

Re: [firebird-support] How to insert and see an image or photography?

2012-12-12 Thread Martijn Tonies
. As I said, Walter, with Database Workbench you can insert an image by using a user interface. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Re: Converting of an ISO8859_1 database to UTF8

2012-11-05 Thread Martijn Tonies
column you still want to use as text? With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench for Oracle, MS SQL Server, Sybase SQL Anywhere, MySQL, InterBase, NexusDB and Firebird!

Re: [firebird-support] Converting of an ISO8859_1 database to UTF8

2012-11-01 Thread Martijn Tonies
the content and then to save it in the new format. But depending on the choice of the way to go, this could be irrelevant. You are modifying the blob to BINARY, that doesn't sound right. With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download Database Workbench

  1   2   >