Welcome to the Alteryx Knowledge Base
Created/Edited -
When connecting to an OleDB Datasource using the either the Input Tool or the In-DB Tools, users can encounter the below error message :
Error opening connect string: Microsoft SQL Server Native Client 11.0: Login failed for user 'user1'.\28000 = 18456
- Alteryx Designer
- Drivers :
- OleDB Providers for Microsoft SQL Server
Diagnosis
Usually, when testing the Data Connection through the OleDB "Data Link Properties" window they are able to successfully test the connection :
However the error message will persist from the canvas.
Potential Causes
A) When mentioning a username/password combination in a connection string, they need to be extracted in the program calling for it. The 'persist' parameter will need to be set and added to the string so windowsremembers the credentials and they can be extracted in program.
B) For SSPI, when using a service account in a multi node environment: The Worker's RunAs user may not have sufficient access or the incorrect Service account is being used on the worker.
Solution A
- Open the Driver's configuration "Data Link Properties" window
- Go to the "All" tab
- Identify the Persist Security Infoparameter - at this time it should be set to False
- Double-click and on this parameter and set it to True
- Apply all the changes
- Run the Tool on Designer again
Solution B
For SSPI, when using a service account in a multi node environment, where the connection is successful on other nodes. Verify the RunAs user entered on both a successful worker node and the failing node for comparison. The RunAs user/domain entered into Alteryx System Settings > Worker > Run As is likely not the same, and the failing user has insufficient access to the data source: