Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi there,
I'm trying to use the updated Snowflake Connector with support for Value.NativeQuery to execute a simple parameterized query and I'm wondering if its possible or just not supported yet. (I understand that I can change the actual SQL string and include the parameters, but I'd prefer to use the built-in parameterization for the sake of security and performance on the Snowflake side)
As a simplified example, I'd like to update this (which works):
Value.NativeQuery(DB, "select * from MATT_DEV.PUBLIC.USERS where ID=1", null, [EnableFolding=true])
To something like these (that don't work):
Value.NativeQuery(DB, "select * from MATT_DEV.PUBLIC.USERS where ID=?", {1}, [EnableFolding=true])
Value.NativeQuery(DB, "select * from MATT_DEV.PUBLIC.USERS where ID=:1", {1}, [EnableFolding=true])Value.NativeQuery(DB, "select * from MATT_DEV.PUBLIC.USERS where ID=@p1", [p1=1], [EnableFolding=true])
All of these parameterized examples result in the following error:
Expression.Error: Native queries aren't supported by this value.
Details: [Table]
I appreciate any help! Thank you!
Matt
@amitchandak have you been able to accomplish something similar via other methods? (like the standard ODBC connector?)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 33 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 30 | |
| 28 |