I am running below recordset code on 64 bit Windows machine with 32 bit excel and while data retrieval only 256 chars are getting retrieved.
This code is reading data from excel sheet "Test Plan" and it contains some column which contain data more then 256 char. Currently it is only retrieving 256 chars for those columns.
I need to retrieve whole data which any numbers of character in it.
I have tried below options for this problem:
I have tried by updating System Registry "TypeGuessRows" to 0, however it is not working on my machine.
I have changed column format to General.
Sconnect = "Provider=MSDASQL.1;DSN=Excel Files;DBQ=" & DBPath & ";HDR=Yes';IMEX=1" conn.Open Sconnect Query = "Select * from [Test Plan$] where [Optimized Scenario No] = '" + OptimizedScenarioNo + "' and [Type] = 'Today' order by [Seq]" rsOptimizedScenarioCreation.Open Query, conn
Actual Result:
This code is reading data from excel sheet "Test Plan" and it contains some column which contain data more then 256 char. Currently it is only retrieving 256 chars for those columns.
Expected Result
I need to retrieve whole data which any numbers of character in it.
To be clear:
This is just a workaround, as you use Excel as data source for Excel ...
You may filter and sort your data source worksheet according to your SQL statement and use the remaining visible range for further purposes, e. g. to copy it to another sheet: