Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
0tk
Regular Visitor

Connectivity to Redshift via Azure AD authentication

Has anyone had success connecting Power BI via ODBC to Redshift using the Azure AD plugin. Tried various options but keep getting the error "DataSource.Error: ODBC: ERROR [42703] [Amazon][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState 42703] ERROR: column "TABLE_TYPE" does not exist in svvp_all_tables"

 

Upon debugging, looks like the Redshift ODBC driver is sending queries in upper case and Redshift doesnt accept them. I can run the same query via DBeaver using lower case identifiers and changing settings on Redshift to be case insensitive did not help.

 

 

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @0tk ;

Is your problem solved? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @0tk ,

if you really have a camel case in you column name then you must wrap the column name with double quote.

SELECT return_part_i.CntrctTrmntnInd FROM return_part_i LIMIT 10;

vs

SELECT "CntrctTrmntnInd"  FROM return_part_i LIMIT 10;

PostgreSQL columns (object) name are case sensitive when specified with double quotes. Unquoted identifiers are automatically used as lowercase so the correct case sequence must be write with double quotes.

https://stackoverflow.com/questions/37418028/postgresql-error-column-does-not-exist-sql-state-42703

https://stackoverflow.com/questions/52007364/postgresql-column-doesnt-exist


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.