Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible to connect SQL Server 2005 with Serverside cursor?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Data Objects Support
View previous topic :: View next topic  
Author Message
temilson



Joined: 18 Nov 2006
Posts: 4

PostPosted: Sat Nov 18, 2006 7:03 am    Post subject: Possible to connect SQL Server 2005 with Serverside cursor? Reply with quote

Is it possible to connect to a SQL Server table using:

ADODB.CursorLocationEnum.adUseServer

When I try I get an error about the provider not supporting recordcount.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Nov 18, 2006 10:12 pm    Post subject: Reply with quote

You can use server side cursors with SQL server (our licensing product database uses them with an SQL backend). You should ensure that the VirtualConnection.CursorType is set to adOpenKeyset.

SQL server does not support birectional cursors for some queries however - in particular those using "GROUP" clauses. For these queries you have to use a client side cursor. The solution in this case is to create a separate VirtualConnection (that can use the same underlying connection) for these type queries.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Data Objects Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group