Re: Updateable ADO-Recordset from SProc(WithParameters) on SQLServer ?
From: Werner (zo_at_nospam.mbbm.de)
Date: 03/09/04
- Next message: Werner: "Re: Recordset Update using a Command object"
- Previous message: Peter Plumber: "Re: adodb.recordset.save and back"
- In reply to: Stephen Howe: "Re: Updateable ADO-Recordset from SProc(WithParameters) on SQLServer ?"
- Next in thread: mark: "Re: Updateable ADO-Recordset from SProc(WithParameters) on SQLServer ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Mar 2004 10:32:04 +0100
Thank you a lot, Stephen: this was the solution of my problem!
Actually I had overlooked, that there is someting like
"Recordset.Open(Command)"!
In addition to be able to set .CursorLocation, .LockType ... this also
allows me to set Recordset.Properties("Unique Table") = "ThisTable" to
restrict the updateability to the columns which emerge from ThisTable!
This helped me really very much!!!
Werner
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> schrieb im Newsbeitrag
news:Oj3AUzUBEHA.2800@tk2msftngp13.phx.gbl...
> > - If the SProc I am using has parameters, and I create the Recordset
> using
> > an ADO Command object, I get any recordset I want and I pass any
> parameters
> > I want back and forth BUT: the Recordset just refuses to be updateable!
> >
> > Has anybody ever created an updateable recordset using a
> > SProc(WithParameters) ?
>
> Yes. But first things first:
>
> All default Recordsets returned by a Command object will be
>
> (i) Forward-only and Read-only if the default Connection location is
> server-sided
> (ii) Static and Read-only if the default Connection location is
client-sided
>
> and therefore not updateable.
>
> To get a non-default Recordset, you need to setup the Recordset properties
> (but not ActiveConnection) and then do Recordset Open() passing as the
> Source parameter, the Command object (which does have the Connection
setup).
> This will get you what you want.
>
> Stephen Howe
>
>
>
- Next message: Werner: "Re: Recordset Update using a Command object"
- Previous message: Peter Plumber: "Re: adodb.recordset.save and back"
- In reply to: Stephen Howe: "Re: Updateable ADO-Recordset from SProc(WithParameters) on SQLServer ?"
- Next in thread: mark: "Re: Updateable ADO-Recordset from SProc(WithParameters) on SQLServer ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|