Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Query size error
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 04/02/2013 :  13:08:10  Show Profile  Reply with Quote
I want to do a select from a single table, but if I load more then 1,500,000 registers ADODB trigger an error.

When i do the same query in query analizer everything is ok. I think is my recordset configuration.

This is my recordset declaration

Set Sal = New ADODB.Recordset
Sal.CursorType = adOpenStatic
Sal.CursorLocation = adUseClient
Sal.LockType = adLockBatchOptimistic
If Not IsMissing(PageSize) Then
If IsNumeric(PageSize) Then
Sal.PageSize = PageSize
Sal.Properties("Initial Fetch Size") = PageSize
End If
End If
Sal.Open QueryS, CNN, 0, adLockOptimistic

Does anybody has a solution ?

By the way this is VB6 Code
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000