Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Limits in SQL query

Good day Group,

As a newbie to sql programming in vba I have run into problems.
By help from checking old posts in this group I have managed to
write codes that with a ADO connection and sql statement extracts
data from a closed workbook. I have data in a list in the source
workbook that is in abt 4000 rows and 60 columns, When runing
the code I will only have 1024 rows extracted. Some columns has
cells with up to 500 characters.

How to overide this row limit?

Brgds

CG Rosen



' this code gives only 1024 rows. Why?

szSQL = "SELECT * FROM [db_test1$]"

Set rsData = New ADODB.Recordset


rsData.Open szSQL, szConnect, adOpenStatic, adLockReadOnly

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Limits in SQL query

Haven't seen anything like it mysefl.
you can try switching drivers - e.g., if you use ODBC you can tray OLE
DB instead or SQL Natvie Client driver or any other that there are on
your machine - and then see if it makes any difference.
It might be some setting for the driver too - so, maybe you need to
change that setting as oppose to driver.

On Apr 30, 4:36*am, "CG Rosen" wrote:
Good day Group,

As a newbie to sql programming in vba I have run into problems.
By help from checking old posts in this group I have managed to
write codes that with a *ADO connection and sql statement extracts
data from a closed workbook. I have data in a list in the source
workbook that is in abt 4000 rows and 60 columns, When runing
the code *I will only have 1024 rows extracted. Some columns has
cells with up to 500 characters.

How to overide this row limit?

Brgds

CG Rosen

' this code gives only 1024 rows. Why?

szSQL = "SELECT * FROM [db_test1$]"

Set rsData = New ADODB.Recordset

rsData.Open szSQL, szConnect, adOpenStatic, adLockReadOnly


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Limits in SQL query

try this:
rsData.Open szSQL, szConnect,adOpenKeyset



"CG Rosen" wrote:

Good day Group,

As a newbie to sql programming in vba I have run into problems.
By help from checking old posts in this group I have managed to
write codes that with a ADO connection and sql statement extracts
data from a closed workbook. I have data in a list in the source
workbook that is in abt 4000 rows and 60 columns, When runing
the code I will only have 1024 rows extracted. Some columns has
cells with up to 500 characters.

How to overide this row limit?

Brgds

CG Rosen



' this code gives only 1024 rows. Why?

szSQL = "SELECT * FROM [db_test1$]"

Set rsData = New ADODB.Recordset


rsData.Open szSQL, szConnect, adOpenStatic, adLockReadOnly

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Limits in SQL query



thanks - worked perfect / CG Rosen






"Ralph" skrev i meddelandet
...
try this:
rsData.Open szSQL, szConnect,adOpenKeyset



"CG Rosen" wrote:

Good day Group,

As a newbie to sql programming in vba I have run into problems.
By help from checking old posts in this group I have managed to
write codes that with a ADO connection and sql statement extracts
data from a closed workbook. I have data in a list in the source
workbook that is in abt 4000 rows and 60 columns, When runing
the code I will only have 1024 rows extracted. Some columns has
cells with up to 500 characters.

How to overide this row limit?

Brgds

CG Rosen



' this code gives only 1024 rows. Why?

szSQL = "SELECT * FROM [db_test1$]"

Set rsData = New ADODB.Recordset


rsData.Open szSQL, szConnect, adOpenStatic, adLockReadOnly




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sum, ave with limits, help pls. Chris Excel Discussion (Misc queries) 6 November 3rd 08 12:53 PM
Sum with limits Chris Excel Discussion (Misc queries) 2 October 28th 08 05:00 PM
Name limits Alan Beban[_2_] Excel Programming 7 December 16th 07 05:45 PM
MS Query: Looking for a work-around to 2-table limits for outer jo Jim Excel Discussion (Misc queries) 0 December 27th 06 07:41 PM
Row Limits jv Excel Worksheet Functions 1 March 17th 06 04:43 PM


All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"