command-text

Is there a workaround for the maximum length of an ODBCConnection.CommandText string in VBA?

亡梦爱人 提交于 2019-12-24 21:46:22
问题 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