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

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

duverney1
Starting Member

Mexico
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  
 New 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.01 seconds. Powered By: Snitz Forums 2000