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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
matter
Regular Visitor

Snowflake Connector - Parameterized Query

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

2 REPLIES 2
amitchandak
Super User
Super User

@matter , I doubt that is supported yet. I was also looking for the same.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak have you been able to accomplish something similar via other methods?  (like the standard ODBC connector?)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors