문제

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;"
도움이 되었습니까?

해결책

Excel 2010 itself supports 16,384 columns:

http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010342495.aspx?CTT=5&origin=HP005199291

You probably need to switch to the ACE.OLEDB ODBC provider to take advantage of them, though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top