Re: [firebird-support] Temporary directories in firebird.conf not being used

2013-05-11 Thread Milan Babuskov
firebird.conf? Also, make sure Firebird user has rwx privileges on the directory. Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] UTF8 problems

2013-05-06 Thread Milan Babuskov
the latest snapshot build of FlameRobin. Those are as stable as stable release, and have some important bug fixes. If none of this works, please ask further questions on flamerobin-devel mailing list. Regards, -- Milan Babuskov == The easiest way to import XML, CSV

Re: [firebird-support] Re: Hosting Firebird in cloud

2013-02-21 Thread Milan Babuskov
hrefofficemanager wrote: Costs range from $75 to $400+ per month, plus setup fees. ...in the USA. If you're in Europe, you can get a pretty decent server from Hetzner from 20 EUR upwards with 10TB of free traffic per month. Regards, -- Milan Babuskov

Re: [firebird-support] Error using fbcopy

2012-12-12 Thread Milan Babuskov
, column 22 FIELD1 Looks like Dialect1 problem. FBCopy only supports Dialect 3 databases. You can use gfix to switch the dialect to 3 and then do the copy: http://www.firebirdsql.org/manual/gfix-dialect.html Regards, -- Milan Babuskov == The easiest way to import

Re: [firebird-support] Tool that helps creating audit tables

2012-09-07 Thread Milan Babuskov
e-mail. Please let's continue further flamerobin-related discussion on FR mailing list (I'm cross-posting there as well). Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard

Re: [firebird-support] Tool that helps creating audit tables

2012-09-06 Thread Milan Babuskov
and select Generate code, and then Audit log trigger for table HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: execute statement

2012-08-10 Thread Milan Babuskov
and then Create change trigger for table. It will display a dialog to select the desired columns and it will generate to complete trigger code. HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Moving primary key to another column

2012-08-10 Thread Milan Babuskov
the new table to the old name? The server is FB 2.0.3; I have IBExpert and FlameRobin available. All explained here: http://firebirdfaq.org/faq380 Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http

Re: [firebird-support] 2 BDs compair

2012-08-07 Thread Milan Babuskov
to compare, leave only those you want. Next run it with X parameter and supply the text file as input. More details in FBCopy manual: http://fbexport.sourceforge.net/fbcopy-manual.html#compare HTH -- Milan Babuskov == The easiest way to import XML, CSV

Re: [firebird-support] Moving primary key to another column

2012-08-06 Thread Milan Babuskov
of 2 ways to do it ;) -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard

Re: [firebird-support] Restoring backup from 2.5 to 2.1

2012-07-06 Thread Milan Babuskov
. And then I copied the data using FBCopy tool. To prepare a clean database, you can use something like isql -x to dump the database schema from 2.5, and then run that script on an empty database with Firebird 2.1. Good luck. -- Milan Babuskov == The easiest way

Re: [firebird-support] Re: Query a table within its trigger

2012-07-06 Thread Milan Babuskov
= NULL; ...before the SELECT query. HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Return key

2012-06-29 Thread Milan Babuskov
something like this: ?php $result= ibase_query(SELECT blob_value FROM table); $data = ibase_fetch_object($result); $blob_data = ibase_blob_info($data-BLOB_VALUE); $blob_hndl = ibase_blob_open($data-BLOB_VALUE); echo nl2br(ibase_blob_get($blob_hndl, $blob_data[0])); -- Milan Babuskov

Re: [firebird-support] Object in use

2012-06-29 Thread Milan Babuskov
arda wrote: Maybe the database can store the versions of stored procedures transparently? AFAICT, this already works that way, at least with Firebird Classic 2.1 on Linux which I mainly use in production. Which version of Firebird are you using? -- Milan Babuskov

Re: [firebird-support] Activity of the firebird-support group

2012-06-29 Thread Milan Babuskov
of the number of developers, as they do download a couple of copies and that's about it. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] SOLVED (brute force) -Re: cannot restore db (time and timestamp)

2012-06-28 Thread Milan Babuskov
to restore using 2.5. Does the restore work on 2.1? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] output from SQL

2012-06-22 Thread Milan Babuskov
solution for that. Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] How to improve update performance with millions records?

2012-06-14 Thread Milan Babuskov
be bad or not? what should i do? Any foreign keys, triggers, secondary indexes or check constraints involving computed fields? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] How to limit the number of concurrent users to a database

2012-06-14 Thread Milan Babuskov
Fulvio Senore wrote: Do you think that this a reasonable solution, or are there better ones? How about this: Create ON CONNECT database trigger and read number of connected users from MON$ATTACHMENTS. If it's larger than what you want, throw an exception. -- Milan Babuskov

Re: [firebird-support] How to limit the number of concurrent users to a database

2012-06-14 Thread Milan Babuskov
/faq161/ HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: gbak to a non existing directory - Email found in subject

2012-06-08 Thread Milan Babuskov
the directory as well at that point? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: gbak to a non existing directory - Email found in subject

2012-06-07 Thread Milan Babuskov
with --parents switch. Then set up privileges with chown and chmod. b) write small Linux UDF that creates directories, register it in some database (employee.fdb for example) and call it from code: db.Query(select createDir(/path/on/linux) from rdb$database); HTH -- Milan Babuskov

Re: [firebird-support] Re: Embedded Firebird leaves a lot of temp files behind

2012-06-07 Thread Milan Babuskov
IBPP library which has it's own logic of finding firebird client library (it searches the Registry, current directory, program files, etc., you can look into source code if you're really interested) -- Milan Babuskov == The easiest way to import XML, CSV

Re: [firebird-support] why the result is the number commas?

2012-06-05 Thread Milan Babuskov
and results of all intermediate operations are integers. So: integer * integer = ok integer + integer = ok integer - integer = ok integer / integer = could present problems Since _counting_ is only addition, it is safe to do even with double. -- Milan Babuskov

Re: AW: [firebird-support] statement and composite variable names

2012-05-30 Thread Milan Babuskov
Olaf Kluge wrote: How can I realize: Fiels_name = 'COLUMNNAME''? Fiels_name = ''COLUMNNAME' I have test all combinations from one ' to four. How about five ' ? ;) -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird

Re: [firebird-support] Libs on Linux

2012-05-30 Thread Milan Babuskov
. Seems that Linux isn't much better in this respect, eh?! Different religion - different kind of hell ;) Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard

Re: [firebird-support] There is a way to format datetime directly in SQL ?

2012-05-17 Thread Milan Babuskov
hamacker wrote: There is a way to format a datetime inside a query ? You can find some interesting ideas here, ranging from UDFs to SUBSTRING tricks: http://www.firebirdfaq.org/faq314 HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual

Re: [firebird-support] Is it possible to know if people are using any FDB (from command line?)

2012-04-18 Thread Milan Babuskov
than interactively, that is all the more better. Which operating system are you using? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Assign Double Precision value to a varchar field in Stored Procedure

2012-03-22 Thread Milan Babuskov
of MoneyInStr and myMoney. Can you show the DECLARE VARIABLE statements? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Backup and restore of users

2012-03-07 Thread Milan Babuskov
Aldo Caruso wrote: Which are the steps to follow to backup and restore database users and passwords ? I usually just stop the server and copy security2.fdb file. Unlike the databases, it is rarely written to. I mean, how often do you open new user accounts. -- Milan Babuskov

Re: [firebird-support] Re: Newbie questions regarding FB Embedded

2012-03-06 Thread Milan Babuskov
for Firebird 1.5, but it all still aplies (you just need to add ICU library files from classic server tarball). -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Importing from spreadsheet

2012-02-29 Thread Milan Babuskov
Mags Phangisa wrote: Is there a way I can import data from a spreadsheet into a table? Any help will be greatly appreciated. Save to CSV format and use XMLWizard: http://www.guacosoft.com/xmlwizard It can detect and suggest datatypes, table structure, etc. -- Milan Babuskov

Re: [firebird-support] what the most efficient way to do update or insert with value ?

2012-02-15 Thread Milan Babuskov
use EXECUTE BLOCK as explained in http://www.firebirdfaq.org/faq220/ -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] How reliable is the event feature of Firebird

2012-02-07 Thread Milan Babuskov
on the events of Firebird, or if you have better ideas on how to do it. I'm running 100+ systems using events for more than 5 years, some of them 24/7 and I never lost a single event. -- Milan Babuskov == The easiest way to import XML, CSV and textual files

Re: [firebird-support] Create Log for tables change, which one is better via app or via firebird?

2012-01-26 Thread Milan Babuskov
it in application. If you have multiple applications accessing the database this really depends whether you need separate logging for each client or not. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com

Re: [firebird-support] How do I convert a timestamp to a string from within a stored procedure?

2012-01-26 Thread Milan Babuskov
there are UDF libraries (rfunc for example) that provide date format functions. So you could write something like: DateToStr(current_timestamp, '%d%m%Y%h%M%S') Still using Firebird 1.5.3 (Hope to convert down the road) In that case, use DateToStr or CASE. -- Milan Babuskov

Re: [firebird-support] Sizing conversion project

2012-01-21 Thread Milan Babuskov
one which has similar performance and feature set? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [Bulk] [firebird-support] Is Update or Insert more slower than an single Update (or insert)

2012-01-20 Thread Milan Babuskov
Vander Clock Stephane wrote: Thanks to my paranoia, i was thinking like everyone that Update or insert OR Insert Well, it is called UPDATE OR INSERT, and not INSERT OR UPDATE. As you can see, update comes first. -- Milan Babuskov == The easiest way

Re: [firebird-support] Migrating from MySQL to Firebird

2012-01-20 Thread Milan Babuskov
of transaction-less storage (MyISAM) which saves you from having to backup/restore periodically to reset transaction counters Note that 1. and 2. are related, MyISAM is much faster than Firebird just because it has no transaction overhead. -- Milan Babuskov == The easiest

Re: [firebird-support] Tools to migrate from MySQL to Firebird

2012-01-20 Thread Milan Babuskov
, but it's open source, so you can modify it to fit your needs. I also wrote a simple data-pump in PHP, let me know if your're interested, I can put it for download as well. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http

Re: [firebird-support] How to return only a few rows from select sql statement

2012-01-20 Thread Milan Babuskov
trskopo wrote: Suppose I have a sql statement : select * from table Is that possible to return only a few rows from that statement (not the whole result), just like MySQL? http://www.firebirdfaq.org/faq111 HTH -- Milan Babuskov == The easiest way

Re: [firebird-support] Re: How can I get a list of firebird db users?

2012-01-16 Thread Milan Babuskov
,ma.mon$remote_pid FROM MON$ATTACHMENTS MA WHERE ma.MON$ATTACHMENT_ID CURRENT_CONNECTION Those are only connected users. He wants to get a list of all user accounts on the server. -- Milan Babuskov == The easiest way to import XML, CSV and textual files

Re: [firebird-support] A query about foreign keys

2012-01-11 Thread Milan Babuskov
Marco Aurelio Castro wrote: What is the query that I inform the name of the Foreign Key and it returns the names of the tables and fields related to this foreign key? You need to join system tables RDB$RELATION_CONSTRAINTS, RDB$INDICES and RDB$INDEX_SEGMENTS. Regards, -- Milan Babuskov

Re: [firebird-support] UTF8 in firebird ?

2012-01-10 Thread Milan Babuskov
. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] ASCII OR ISO8859_1 to store UTF8 char ?

2012-01-10 Thread Milan Babuskov
Vander Clock Stephane wrote: juste one question, i thing both are the same but with is the best to store UTF8 code point ? ASCII or ISO8859_1 ? If you really do not care about collations, then OCTETS. Stuff like UPPER, ORDER BY, etc. would not work properly anyway, so why bother. -- Milan

Re: [firebird-support] Converting BLOB to long VARCHAR

2011-12-28 Thread Milan Babuskov
have to lose non-ASCII characters. If it's a binary blob (subtype 0) you can also try to dump the contents to a file (using FBExport or your code) and then import it back into a new subtype 1 blob. -- Milan Babuskov == The easiest way to import XML, CSV and textual

Re: [firebird-support] Re: Firebird 2.5 64bit for Intel Proc

2011-12-27 Thread Milan Babuskov
message? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: comments/advices on database design change please

2011-12-27 Thread Milan Babuskov
at the Luxembourg conference was that keeping blobs in separate tables was (could be?) a good thing I fail to see any reason why? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Speed of an query with IN select

2011-12-27 Thread Milan Babuskov
STKCODE, COUNT(STKCODE) as COUNT1 from COUNT_SHEETS_DETAIL where code STARTING WITH 'TPL' GROUP BY STKCODE ) order by 2 HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Finding the differences

2011-12-25 Thread Milan Babuskov
HTML table showing both old and new values. Otherwise, do the inner join on key columns and use IS DISTINCT FROM on all non-key columns. HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: comments/advices on database design change please

2011-12-25 Thread Milan Babuskov
Vary, i.e. the above is my opinion, things may be different in your particular case. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] 1000 databases per server ?

2011-12-25 Thread Milan Babuskov
using different databases at the same time. Beside that, this could pose a problem for some filesystems if you stored them all in a single directory. I suggest you desing a hierarchy of subdirectories in such way that you do not have more than 100 database files in each. -- Milan Babuskov

Re: [firebird-support] Firebird 1.5 - Stored procedure error 335544348

2011-12-23 Thread Milan Babuskov
Nando wrote: ISC ERROR CODE:335544348 no current record for fetch operation. Use LEFT JOIN: http://www.firebirdfaq.org/faq144 -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Copy a database to a blank one

2011-12-16 Thread Milan Babuskov
Easiest way to do it with gbak: gbak -m database.fdb empty-backup.fbk gbak -c empty-backup.fbk empty-database.fdb If you already have a backup, you can use -m to only restore metadata. gbak -c -m some-backup.fbk empty-database.fdb -- Milan Babuskov == The easiest

Re: [firebird-support] XML Data type

2011-11-22 Thread Milan Babuskov
column. A useful tool to help you determine the structure is XMLWizard. It will suggest the table(s), columns and datatypes you should use: http://www.guacosoft.com/xmlwizard HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files

Re: SV: [firebird-support] Best Practice re null

2011-11-07 Thread Milan Babuskov
is only used if column is not specified in INSERT. If you run insert into t1 (field1, field2) values ('abc', NULL); You would still have NULL in the field. Therefore, it might be best to use COALESCE even if you have default set. HTH -- Milan Babuskov

Re: [firebird-support] Detecting default values

2011-11-04 Thread Milan Babuskov
. For example, if your field is normally char(3), you can increase it to char(4) and set '' as default. Restrict the data entry in application to only allow 3 characters. -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http

Re: [firebird-support] Importing with a Date type column

2011-10-31 Thread Milan Babuskov
: http://www.firebirdfaq.org/faq137 HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] How can you change the transaction level to READ_ONLY in SQL

2011-10-31 Thread Milan Babuskov
, in PHP it would be a parameter in ibase_prepare() function, and in C++ using IBPP library, it would be a parameter in TransactionFactory constructor. What programming language / data access layer are you using? -- Milan Babuskov == The easiest way to import XML

Re: [firebird-support] Re: How to insert only if a matching row does not exist?

2011-10-25 Thread Milan Babuskov
$DATABASE WHERE NOT EXISTS (SELECT 1 FROM T1 WHERE name = 'Z'); HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: granting persmissions

2011-09-20 Thread Milan Babuskov
or x.RDB$SYSTEM_FLAG = 0) You can write a similar one for procedures. Regards, -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: wierd gbak behavour

2011-09-01 Thread Milan Babuskov
lock managers running under different Linux user accounts. Try adding localhost: to ISQL as well and it should work fine. HTH -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==

Re: [firebird-support] Re: wierd gbak behavour

2011-08-31 Thread Milan Babuskov
localhost:/opt/unb/archive/tmp/110831130601.fdb Under which user account are you running gbak? -- Milan Babuskov == The easiest way to import XML, CSV and textual files into Firebird: http://www.guacosoft.com/xmlwizard ==