Differences between UpdateSQL component and Query.ExecSQL

Differences between UpdateSQL component and Query.ExecSQL

Post by Ernik » Wed, 12 Sep 2001 01:35:47



Hi all,
please explain me differences between UpdateSQL component and
SQL line which I wrote in Query and execute by my own.
I need to know:
1. Differences between ApplyUpdates in UpdateSQL component and ExecSQL
in Query ?
2. Does UpdateSQL component do additional operation when collecting
and applying data ?
3. When better use UpdateSQL component and when Query.ExecSQL ?
4. Good and bad thing in UpdateSQL component and Query.ExecSQL ?
5. ...
Thanks.
Ernikas
 
 
 

Differences between UpdateSQL component and Query.ExecSQL

Post by M.H. Avegaar » Wed, 12 Sep 2001 15:38:05


1. ApplyUpdates automatically fills in old and new values and executes the
query. With a separate query you have to fill in the data yourself before
you call ExecSQL. So the result is the same, but the query approach is more
work.

2. UpdateSQL does the same as a normal ExecSQL.

3. Use an UpdateSQL if the changes to a cached dataset can be applied with a
single SQL statement. If you need more than a single update or if you don't
want to use caching you should use a query (or a live dataset).

4. Good: very little work. Bad: changes are applied AFTER a post, so the
user can't have direct feedback if the post will be successful.


Quote:> Hi all,
> please explain me differences between UpdateSQL component and
> SQL line which I wrote in Query and execute by my own.
> I need to know:
> 1. Differences between ApplyUpdates in UpdateSQL component and ExecSQL
> in Query ?
> 2. Does UpdateSQL component do additional operation when collecting
> and applying data ?
> 3. When better use UpdateSQL component and when Query.ExecSQL ?
> 4. Good and bad thing in UpdateSQL component and Query.ExecSQL ?
> 5. ...
> Thanks.
> Ernikas


 
 
 

1. Setting up an UpdateSQL component at run-time

I know it is possible to manually set the DeleteSQL, InsertSQL and
ModifySQL properties at runtime. Is it possible to do a generate SQL at
run time like you can at design time, to automatically set the Delete,
Insert and ModifySQL properties.

--
Nice One! Sorted!

Sent via Deja.com http://www.deja.com/
Before you buy.

2. btireve access ddf?

3. Live Queries or UpdateSQL

4. VARCHAR2 vs. CHAR

5. What is differences between object and component?

6. Seek - Index. ADO 2.1

7. Difference between dynamic sql query and a normal query

8. CHANGETO query in OPAL - differences in result from an interactive query - suggestions for improvement wanted

9. Query Component query?

10. BCP query out executed by xp_cmdshell works fine from query analyzer but fails from VB Component

11. Using UpdateSQL for updating cached records

12. Problem - UpdateSQL with Paradox