Starting in Strategy 2021 Update 2, parameterized query is enabled by default for transaction reports. When executing a query to insert a large number of rows (for example, 500 rows) into an Azure Synapse table, you may encounter a Query Engine error.
Sample query:
insert into tx_customer(customer_id,cust_last_name,cust_first_name,gender_id,cust_birthdate,email,address,zipcode,customer_long,customer_lat) VALUES (#0, #1,#2, #3 , #4,#5,#6,#7,#8,#9);
(QueryEngine encountered error: OdbcParameterizedQuery::ExecQuery failed. Disconnected. Error type: Odbc error. Odbc operation attempted: SQLExecute. [08S01:0: on SQLHANDLE] [Strategy][ODBC SQL Server Wire Protocol driver]Socket closed.
This is a SQL server driver issue.
Change the
EncryptionMethodoption of Azure Synapse DSN from
0to
1.
Change the
EncryptionMethodoption via ODBC Data Source Administrator.


Change the
EncryptionMethodoption via the
odbc.inifile.
[WH_T26.AzureSynapseAnalytics] Description=Strategy ODBC Driver for SQL Server Wire Protocol DoubleToStringPrecision=17 CryptoProtocolVersion=TLSv1.2 Driver=/iserver-install/BIN/Linux/lib/MYsqlsXX.so EncryptionMethod=1 TrustStore= ValidateServerCertificate=0 Database=F9458_2 EnableQuotedIdentifiers=1 IANAAppCodePage=106 PortNumber=1433 HostNameInCertificate= AnsiNPW=1 HostName=dbcert.datab
Disable parameterize query via the Database Instance dialog. This issue does not exist when parameterized query is off.

