Subject Re: How to update table structure with SQL?
Author neighbour.kerry
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@...> wrote:
>
> > > the standard approach offered by many admin tools is a database
> > structure comparison tool where the result is a script which updates
> > your target database.
> > > These tools exist for all major databases.

Still not possible, but it sounds like something to look at. If I can see what script they generate, it might be useful.

The problem is I do not have the customer's database. I have no idea what version they have either, since Firebird does not contain version information. I also use a few databases here - production, testing, etc. I cannot generate this difference script against all these databases.

The idea is run a script to update ANY database to the current version, no matter what the customer has.

I can do it if I know a certain object exists - ie can I check if a table or column exists in SQL?

Could I do something in a Procedure perhaps?