update table an progress

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lao
Posts: 71
Joined: Wed 10 Dec 2008 10:56

update table an progress

Post by lao » Tue 12 Nov 2013 11:20

Hi,
Is it possible tp have an event for update table with uniquery?
for example i have a big table to update and i want a progressbar to indicate the update progress, the sql request is like this (i use dblink and postgresql database:


update mytable set
mytable.id = myservertable.id,
mytable.name= myservertable.name,
mytable.surname= myservertable.surname
from dblink('host=myserver port=5432 user=myuser dbname=mydb password=mypassword',
'SELECT id,name,surname
FROM myservertable'
) as myservertable(
id INTEGER,
name VARCHAR(225),
surname VARCHAR(225)
)
where
mytable.id = myservertable.id
and
(
mytable.name is distinct from myservertable.name or
mytable.surname is distinct from myservertable.surname
)


regards,
Lao

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: update table an progress

Post by AlexP » Wed 13 Nov 2013 09:38

Hello,

When editing data in a local database, you can retrieve events using UniAlerter and by implementing a trigger, in which the NOTIFY command is executed. For work via dblink, such functionality is not supported

Post Reply