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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.