An Azure service for ingesting, preparing, and transforming data at scale.
Thanks for the question and using MS Q&A platform.
In addition to Pinaki Ghatak,
The error message "Connection string exceeds maximum allowed length of 1024" occurs because the maximum length of the connection string that can be passed to an ODBC driver is limited to 1024 characters. To resolve this issue, you can try the following workaround:
- Store the connection string in an Azure Key Vault: Store the connection string in Azure Key Vault and retrieve it in your Azure Data Factory pipeline using Key Vault references. This way, you can pass a reference to the Key Vault secret in your pipeline instead of the actual connection string, which could be longer.
- Use a Data Source Profile: Instead of passing the connection string directly, you can create a Data Source Profile in Azure Data Factory that contains the connection string information. Then, you can reference the Data Source Profile in your pipeline, which would allow you to use a much longer connection string without hitting the 1024-character limit.
- Shorten the connection string: If neither of the above options is feasible, you may try to shorten the connection string by removing any unnecessary parameters or by using a DSN (Data Source Name) instead of a DSN-less connection string.
Please refer to the below links for more details.
https://learn.microsoft.com/en-us/azure/data-factory/store-credentials-in-key-vault
Hope this helps! Let me know if you have any further questions.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.