We have two tables dbo.MONITOR
(Reg. table) & sum_file_folder
(documentum table)
dbo.MONITOR
- FILE_ID
- STATUS
sum_file_folder
- object_name
- file_status
where, FILE_ID & object_name are same fields in both tables.
So these Inner Join Queries are not working...
update dbo.MONITOR t1 objects set t1.STATUS = (select file_status from sum_file_folder t2 where t1.FILE_ID=t2.object_name)
UPDATE t1 OBJECTS SET t1.STATUS = t2.file_status from sum_file_folder t1 INNER JOIN dbo.MONITOR t2 ON t1.object_name = t2.FILE_ID
When you are using your own tables, you can safely do an update directly to database - no need for DQL (sum_file_folder must be a custom table - I haven't seen that before). If you are stuck with DQL you could do a EXECUTE exec_sql WITH QUERY 'your-sql-update-statement' Just be careful - this is auto-committed.