Re: Is this the right method for opening recordsets in ADO ?
From: Oscar (oku_at_xs4all.nl)
Date: 03/21/04
- Next message: Oscar: "Re: VB-ADO-SQL Server : SQL Server performs logins after some queries"
- Previous message: syed nizami: "Re: Please Reply . It's Urgent."
- In reply to: Val Mazur: "Re: Is this the right method for opening recordsets in ADO ?"
- Next in thread: Veign: "Re: Is this the right method for opening recordsets in ADO ?"
- Reply: Veign: "Re: Is this the right method for opening recordsets in ADO ?"
- Reply: Val Mazur: "Re: Is this the right method for opening recordsets in ADO ?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 21 Mar 2004 14:50:57 +0100
Hi Val,
>
> My opinion is that best way to open recordset is to get it opened on a
> client side, disconnect and work with it.
What is the best way to disconnect recordsets ?
Public Function RST(strSQL As String) As Object
Set RST = New ADODB.Recordset
RST.CursorLocation = adUseClient
RST.Open strSQL, DB, adOpenForwardOnly, adLockReadOnly
End Function
dim rstQ as object
set rstQ=RST(strSQL)
Is this sufficient to have the client side recordset disconnected and work
with recordset rstQ ?
>Also it is always good
> idea to use explicit INSERT, UPDATE and DELETE SQL statement to manipulate
> records directly in a database, rather then to open recordset and
> delete/update/insert records there.
>
In what respect ? Performance, stability ?
regards,
Oscar
- Next message: Oscar: "Re: VB-ADO-SQL Server : SQL Server performs logins after some queries"
- Previous message: syed nizami: "Re: Please Reply . It's Urgent."
- In reply to: Val Mazur: "Re: Is this the right method for opening recordsets in ADO ?"
- Next in thread: Veign: "Re: Is this the right method for opening recordsets in ADO ?"
- Reply: Veign: "Re: Is this the right method for opening recordsets in ADO ?"
- Reply: Val Mazur: "Re: Is this the right method for opening recordsets in ADO ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|