How does ADO 2 update a SQL stored procedure recordset?
- From: "David Rueter" <nospam_drueter@xxxxxxxxxx>
- Date: Thu, 29 Dec 2005 16:39:36 -0800
Generally when I want to use ADO 2 to update a recordset based on a MSSQL
stored procedure I will handle the OnWillChangeRecord event, and explicitly
call a second stored procedure to perform the update.
If I don't handle the OnWillChangeRecord event (and permissions are set
properly, etc.) ADO will "magically" update the SQL tables for me. How does
this actually work?
Suppose a stored procedure joins two or more tables: how does ADO figure
out which tables are to be updated, when all it would seem ADO has to work
with is the resultset returned by the stored procedure?
(To clarify, I know that it DOES work, I would just like to understand HOW.)
A related question: other than the obvious differences in permission
requirements and ability to perform additional tasks in the update stored
procedure, are there differences between these two approaches? Is one
preferred (in terms of security, performance, stability, etc.)?
Thanks in advance for any light you can shed.
David Rueter
drueter@xxxxxxxxxx
.
- Prev by Date: Re: Problem with adding new rows to dataset
- Next by Date: Re: Add new record to a Paradox table using ADO and Jet 4.0
- Previous by thread: Re: Problem with adding new rows to dataset
- Next by thread: Re: Add new record to a Paradox table using ADO and Jet 4.0
- Index(es):
Relevant Pages
|
|