[firebird-support] detect if database has changed

2017-10-08 Thread Hamish Moffatt ham...@risingsoftware.com [firebird-support]
Is there an official way to detect if a database has changed?

I have some expensive reports and backups to run, but if I know that the 
database has not changed since I last ran them I can skip those.

fbstat (gstat) shows the next transaction number, but that changes even 
when only read-only transactions have run.

Currently I am looking at the timestamp of the .fdb file, which also 
changes when only read-only transactions run.

I would like to know if the data or schema actually changed, not just a 
transaction has run that didn't change anything.


Thanks

Hamish



[firebird-support] select column if it exists

2017-10-08 Thread Hamish Moffatt ham...@risingsoftware.com [firebird-support]
Is there a way to include a column in a SELECT but substitute a value if 
it doesn't? I need my code to work with different versions of my db schema.

eg I want to SELECT A, B, C, ... but C might not exist.

SELECT * would work of course, except it will fetch a bunch of columns I 
don't need.


thanks

Hamish



Re: [firebird-support] Connected databases to the Server

2017-10-08 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
07.10.2017 22:57, 'Walter R. Ojeda Valiente' sistemas2000profesio...@gmail.com 
[firebird-support] wrote:
> Which databases are connected, right now?

   Use MON$ATTACHMENTS with SYSDBA rights.


-- 
   WBR, SD.






++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 

++


Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/firebird-support/join
(Yahoo! ID required)

<*> To change settings via email:
firebird-support-dig...@yahoogroups.com 
firebird-support-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
firebird-support-unsubscr...@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/