Is there a workaround for the maximum length of an ODBCConnection.CommandText string in VBA?
- 阅读更多 关于 Is there a workaround for the maximum length of an ODBCConnection.CommandText string in VBA?
问题 I have a VBA script that generates a query string for a SAP HANA ODBC Connection in Excel. The query is determined by user inputs and can vary greatly in length. The query itself uses many versions of a similar query appended to one another using UNION ALL syntax. The script sometimes throws a runtime error when trying to refresh. From my research, it has become clear that the reason for this is that the CommandText string exceeds a maximum allowed length of 32,767 (https://ask