Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ODBC connection string to Snowflake for Access Pass Thru Query

I am trying to create a connection string to get to Snowflake data from Access 2010 and above. I can create a database DSN and link to the tables I use, but I need to build DSN-less connection strings for distributed applications. Here's what I have so far, it fails with the message "ODBC connection to xxxx failed". Here's what I have so far:

ODBC;Driver={SnowflakeDSIIDriver}; Server=https://server name; Role=role name;Warehouse=warehouse name;Database=db name;Schema=schema name;UID=snowflake ID; PWD=snowflake password;

like image 253
BrianHtx Avatar asked Apr 30 '20 21:04

BrianHtx


People also ask

How do you connect snowflakes to access?

On the External Data tab in Access, click ODBC Database. Select the option to link to the data source. A linked table will enable you to read from and write data to the Products table. Select the CData Snowflake data source from the Machine Data Source tab.


1 Answers

I think you are on the right track. I have the same thing and it works.

ODBC;
driver={SnowflakeDSIIDriver};
server=accountname.snowflakecomputing.com;database=dbname;
schema=public;
warehouse=whname;
role=rlname;
Uid=userid;
Pwd=password;

Very odd that the DSN one works and your doesn't.

like image 65
Steven Segal Avatar answered Oct 13 '22 23:10

Steven Segal