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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.