I am using Delphi XE7 and connecting to a SQL Server 2012 Express Database using TAdoQuery
and TAdoDataSet
to query a database.
The connection is made through a TADOConnection
object and a OLEDB UDL file (with the connection string of the TADOConnection
being the "File Name=[UDL file path]").
One of the tables in this database has over 300 columns of various datatypes and when we add sql.text such as select * from table
and make the TAdoQuery.Active
property true we receive an Out Of Memory error.
If I reduce the number of columns in the select part of the statement then it appears to work ok so that would suggest it has something to do with the number of fields selected but I can't find any documentation regarding this.
I would like to be able to select 300 fields without receiving an out of memory error.