Re: Really disconnect a recordset?



> Is there a way to completely disconnect a recordset so that it has no
> memory of its server origins?

Yes if opened client-sided. Not otherwise.

> I've got a recordset that comes from a query where some of the fields are
> derived and not actual table fields. On the client side, I want to be
> able to update those fields in the local recordset without ever doing an
> update back to SQL Server. Because of the underlying schema and dynamic
> properties, ADO is not allowing me to "update" the these fields.

It wouldn't be because it is server-sided?

> Basically, I want to take the data from this recordset and put it into
> another recordset with an identical "shallow" schema -- meaning same
> column names and column types but none of the other attributes that link
> it to the provider, so that I can manipulate it like a local-only
> recordset?

It is overkill.
Make it client-sided, make sure locktype is not readonly, disconnect the
connection and you should be okay.

Stephen Howe


.



Relevant Pages

  • Re: DCOM and ADODB.RecordSet
    ... I have a client EXE on a user's PC connecting to a variety ... of DLLs running on a separate server using DCOM. ... Since you are marshaling the Recordset cross-process you must pass it ByVal. ...
    (microsoft.public.vb.com)
  • RE: TransferText from a table with a selection-parameter
    ... > temporary table where I store the recordset inside because there may be ... Each of your users can use separate temp tables in your SQL Server database. ...
    (microsoft.public.access.modulesdaovba)
  • Re: cancel ADO2.8 asynchron queries over WAN, takes long time
    ... > the .open method first creates the recordset at the server. ... I use clientside cursor to minimalize the traffic... ... client because they generate all sorts of activity between client and ...
    (microsoft.public.data.ado)
  • Re: cancel ADO2.8 asynchron queries over WAN, takes long time
    ... > the .open method first creates the recordset at the server. ... I use clientside cursor to minimalize the traffic... ... client because they generate all sorts of activity between client and ...
    (microsoft.public.sqlserver.programming)
  • Re: cancel ADO2.8 asynchron queries over WAN, takes long time
    ... > the .open method first creates the recordset at the server. ... I use clientside cursor to minimalize the traffic... ... client because they generate all sorts of activity between client and ...
    (microsoft.public.vb.database.ado)