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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Snowflake Connection with SQL query

I'm trying to work around and find the solution how to bring relevant data to pbi from Snowflake DB.

 

I have a connection to Snowflake DB, but it is huge and I can't load it all, to reduce size I need to use SQL query to inner join two tables and filter it.

When I connect to Snowflake I add SQL in this box:

Snowflake.PNG

However it gives me this error:

Snowflake_error.PNG

 

Is there a way I can have dynamic connection to Snowflake Database with SQL query? 

 

TIA

1 ACCEPTED SOLUTION

Try removing the semicolon at the end of the SQL. Also, try removing the quotes from the database, schema, and table names.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
DataInsights
Super User
Super User

@Anonymous,

 

Custom SQL requires that you populate the Database field:

 

DataInsights_0-1661173791063.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

When I typed in this box "LIGHCAST"."UK""POSTING_SKILLS" it gives me the same error.

 

Enter only the database name LIGHTCAST.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Thank you fro your answer, now it gives this errorSNowflake_error_2.PNG

Try removing the semicolon at the end of the SQL. Also, try removing the quotes from the database, schema, and table names.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I'm having this same issue, but I didn't have the table names in "" and no semicolon in my sql. I've noticed that if a hard code the connection into the query editor I have no issue pulling in my data - but this is a bit of a faff. I've tested with a very simple sql expression:

select count(*) from [warehouse].[schema].[table] but literally any sql in the UI will cause this error for me. 

Like I say, I have a viable workaround but would like to know what's causing this issue in case I need to trouble shoot again in the future.

Anonymous
Not applicable

Thank you so much, it works!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors