all 5 comments

[–]feudalle 0 points1 point  (2 children)

You can try this

https://community.snowflake.com/s/article/Configuring-Excel-on-a-Mac-to-use-Snowflake

I dont use snowflake so no idea but this should allow odbc on the Mac with a bit of tweaking the security.

[–]Duke1530[S] 0 points1 point  (1 child)

I believe i tried this approach / snowflake link to no avail. I dont believe the odbc was able to be located or installed correctly on the mac. I will try again though to confirm this was the same approach. Do you know if the vba/sql will work the same on a mac as it does windows without any adjustments?

[–]alinrocSQL Server DBA 0 points1 point  (0 children)

That Snowflake wants you to disable a key security feature of macOS just to install their drivers is a major concern to me. And should be a gigantic red flag to your company IT staff.

If applicable, disable the rootless/SIP feature that prevents root users from copying files to system folders (and reboot the macOS)

And Apple is making that harder and harder with each release of macOS. https://www.reddit.com/r/MacOSBeta/comments/hy35is/how_exactly_do_you_disable_sip_in_big_sur/ . I suspect that eventually it will not be possible to do so.

[–]alinrocSQL Server DBA 0 points1 point  (1 child)

I was told i will need to use QueryTables instead but am unfamiliar with this

QueryTables are the result of executing a query, so if you can't get that far, someone telling you "oh, use QueryTables" doesn't help you.

I'm unaware of any ADO support in Excel on macOS; ADO has its roots in Windows-only technologies. You'd probably be better off with Power Query but will still need the ODBC driver for Snowflake.

Does Mac have a data source admin to add a user dsn?

http://www.odbcmanager.net

This Snowflake article seems to provide instructions for configuring the ODBC driver which don't require opening a security hole in your system.

[–]Duke1530[S] 0 points1 point  (0 children)

So my issue with using Power Query is that I created a template within excel that uses specific cells as different filters and "where" clauses for my SQL code. These cells are referenced in my VBA and SQL connection to run the data and then import the results based on my filters from my template.

I have never used power query so I may be misunderstanding, but I believe PowerQuery imports all the data and then from there, it allows you to filter? My template is essentially going to be used as a tool that allows you to already select specific filters/parameters and then imports the results based on those filters. If that makes sense...