Is ODBC / Win7 64-bit / Excel 2010 64-bit limited to 255 columns?
-
10-02-2021 - |
Domanda
I'm using ODBC to write to an XLSB file. Am I limited to 255 columns (or somewhere close to that)? When I try to write 500 columns I get the following error:
HY001 -1040 [Microsoft][ODBC Excel Driver] Too many fields defined.
Perhaps I have the wrong drivers? Here's my connection string:
"Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};Dbq=PATH_TO_XLSB_HERE;DefaultDir=OUTPUT_FOLDER_HERE;"
Soluzione
Excel 2010 itself supports 16,384 columns:
You probably need to switch to the ACE.OLEDB ODBC provider to take advantage of them, though.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow