dbTalk Databases Forums  

append only recordset

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss append only recordset in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rulkin Guy
 
Posts: n/a

Default append only recordset - 06-30-2003 , 05:09 AM






i have one big table with many records. I want to use one "append only"
recordset with the oledbprovider. When i open the recordset, this take long
time. Have someone information to open the recordset in append only mode ?
With jet ole db, throught one link in access database, it's work fine but i
want to use the oledb provider.


'in access, the Mvt.Properties("Append-Only Rowset") = True work fine but
not with the sqloledb provider
Set DB = New ADODB.Connection
DB.Open "provider=sqloledb;Connect Timeout=15;Persist Security
Info=False;database=mar;server=guy\visual", "sa", ""
Set Mvt = New ADODB.Recordset
Mvt.ActiveConnection = DB
' Mvt.Properties("Append-Only Rowset") = True
Mvt.Open "mvtstock", , adOpenKeyset, adLockPessimistic



Reply With Quote
  #2  
Old   
BlueGI
 
Posts: n/a

Default Re: append only recordset - 07-01-2003 , 08:37 AM






Why would you need to open it? Just issue insert/update/delete statements.
The only reason to open it would be to display something to the user, or
gather some information for some other process. If that's the case, then
only issue a select statement to gather the minimum number of records you
need. Opening it and accessing it means the server has to send the result
set to the client machine.

"rulkin Guy" <rulkin.g (AT) visualconcept (DOT) be> wrote

Quote:
i have one big table with many records. I want to use one "append only"
recordset with the oledbprovider. When i open the recordset, this take
long
time. Have someone information to open the recordset in append only mode
?
With jet ole db, throught one link in access database, it's work fine but
i
want to use the oledb provider.


'in access, the Mvt.Properties("Append-Only Rowset") = True work fine but
not with the sqloledb provider
Set DB = New ADODB.Connection
DB.Open "provider=sqloledb;Connect Timeout=15;Persist Security
Info=False;database=mar;server=guy\visual", "sa", ""
Set Mvt = New ADODB.Recordset
Mvt.ActiveConnection = DB
' Mvt.Properties("Append-Only Rowset") = True
Mvt.Open "mvtstock", , adOpenKeyset, adLockPessimistic





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.