View previous topic :: View next topic |
Author |
Message |
temilson
Joined: 18 Nov 2006 Posts: 4
|
Posted: Sat Nov 18, 2006 7:03 am Post subject: Possible to connect SQL Server 2005 with Serverside cursor? |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Nov 18, 2006 10:12 pm Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|