'til now you answered my questions just fine so here's the next challenge
When setting the property UpdatingTable it seems that it has to match the way the table is declared in the query. This is rather unfortunate if you are using the current schema.
For example this works fine:
Code: Select all
qu.SQL.Text := 'SELECT * FROM DBO.[Table]';
qu.Open;
qu.UpdatingTable := 'dbo.Table';
Code: Select all
qu.SQL.Text := 'SELECT * FROM [Table]';
qu.Open;
qu.UpdatingTable := 'Table';
Code: Select all
qu.SQL.Text := 'SELECT * FROM DBO.[Table]';
qu.Open;
qu.UpdatingTable := 'Table';
Code: Select all
TAdoQuery.Recordset.Properties['Unique Table'].Value := UpdatingTable;
Code: Select all
if SchemaName <> '' then
Code: Select all
if (SchemaName <> '') and not SameText(SchemaName, DefaultSDACSchema) then