r/SQLServer • u/JonnyBravoII • Jul 21 '26
Question AWS Redshift ODBC 2.x drivers
AWS is deprecating the 1.x drivers. When we have configured the 2.x version for testing, we keep getting the error "no password supplied" even though the password is definitely in the setup and when we test from there, it works. A command like "SELECT * FROM OPENQUERY (REDSHIFTODBC, 'SELECT * FROM table')" returns the error. We're stumped. Any ideas?
1
Upvotes
•
u/AutoModerator Jul 21 '26
After your question has been solved /u/JonnyBravoII, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/alecc Jul 23 '26
That error is the driver sending no password at all, not a wrong one. The Test button in the ODBC admin works because you type the password into the dialog, so it proves the network path and nothing about the stored credential. Two things to check:
Either way, the setup that holds up is to keep the password out of the DSN and put it on the linked server itself: EXEC master.dbo.sp_addlinkedsrvlogin u/rmtsrvname = 'REDSHIFTODBC', u/useself = 'FALSE', u/rmtuser = 'your_redshift_user', u/rmtpassword = '...'. MSDASQL passes that through to the driver as UID/PWD, so the DSN no longer needs to hold a credential at all.