TUniUpdateSQL - usage areas

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ertank
Posts: 172
Joined: Wed 13 Jan 2016 16:00

TUniUpdateSQL - usage areas

Post by ertank » Mon 21 Nov 2016 17:32

Hi,

I have never used this component for my needs, so far. I simply do not know what it is for, and how to use it. I could not find some detailed explanation in UniDAC documents.

Since usage may vary on database system, my main database servers currently are MS-SQL Server, FirebirdSQL, SQLite.

I appreciate any help.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: TUniUpdateSQL - usage areas

Post by azyk » Thu 24 Nov 2016 11:08

You can find the TUniUpdateSQL component description in our online documentation: https://www.devart.com/unidac/docs/?dev ... atesql.htm . You can see a sample of using TUniUpdateSQL in UniDACDemo demo project. The UniDACDemo project is in the folder "Demos\UniDacDemo\" relatively the path where UniDAC demo projects were installed.

ertank
Posts: 172
Joined: Wed 13 Jan 2016 16:00

Re: TUniUpdateSQL - usage areas

Post by ertank » Fri 25 Nov 2016 07:30

Thank you for the link. I see in the document that "You may prefer to use directly SQLInsert, SQLUpdate, and SQLDelete properties of the TCustomDADataSet descendants."

I know that TUniQuery is a TCustomDADataSet descendant. So, question is; Is there any specific/preferred use area for TUniUpdateSQL over TUniQuery?

Thanks.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: TUniUpdateSQL - usage areas

Post by azyk » Tue 29 Nov 2016 12:13

The TUniQuery->TUniUpdateSQL components binding was used in Delphi versions for compatibility with BDE projects (the TQuery->TUpdateSQL components).

TUniUpdateSQL does not have some advantages comparing with the TUniQuery dataset properties SQLInsert, SQLUpdate... There might be some difference/usability when using specific application business-logic, objects/components structure organization, etc.

Post Reply