Page 1 of 1
Unified SQL
Posted: Mon 09 Nov 2009 12:10
by oz8hp
I am trying to figure out a method of distributing updates to my endusers database and think I have to look at the unified SQL in UniDAC to get it working. But I miss some samples on how it works/can be made.
Or if there is a much better way of doing the job please let me know.
Posted: Tue 10 Nov 2009 08:54
by Plash
Please describe in more details what you mean by distributing updates.
You can find the description of Unified SQL in the UniDAC help (Using UniDAC / Unified SQL).
Posted: Tue 10 Nov 2009 09:14
by oz8hp
Distributing updates:
Customer have version 1.0.0 of application and db
I develop version 1.1.1 which uses 4 new fields and a new table in the db.
In order for customer to use the new 1.1.1 version his db needs to be upgraded and it is theese updates/upgrades I need to distribute with the new application so that customer can run an update the fixes his db.
Posted: Wed 11 Nov 2009 08:55
by Plash
You can use Unified SQL to write an update script, if this script has some differences for different DBMS.
Posted: Thu 12 Nov 2009 10:00
by oz8hp
That was my plan - I just need some 'reallife' samples to look at

Posted: Thu 12 Nov 2009 11:58
by eduardosic
oz8hp wrote:That was my plan - I just need some 'reallife' samples to look at

with UniQueryUpdate do begin
SQL.Clear;
SQL.Add( ' {if Oracle} ' );
SQL.Add( ' alter table dept add xxxxxxx ' );
SQL.Add( ' {else} ' );
SQL.Add( ' alter table test.dept add xxxxxxx ' );
SQL.Add( ' {endif} ' );
Execute
end;
Unidac will be execute the statment accordint with provider.
Unified SQL tecnology is a Big feature of Unidac.. good Devart!!