python code for snowflake connection

Solutions on MaxInterview for python code for snowflake connection by the best coders in the world

showing results for - "python code for snowflake connection"
Sofia
13 Sep 2016
1import snowflake.connector
2
3# Connectio string
4conn = snowflake.connector.connect(
5                user='snuser',
6                password='password@123',
7                account='xyz12345.us-east-2',
8                #warehouse='COMPUTE_WH',
9                database='DEMO_DB',
10                schema='public'
11                )
12
13# Create cursor
14cur = conn.cursor()
15
16# Execute SQL statement
17cur.execute("select current_date;")
18
19# Fetch result
20print cur.fetchone()[0]
Denny
15 Mar 2018
1pip install -r https://raw.githubusercontent.com/snowflakedb/snowflake-connector-python/v2.3.8/tested_requirements/requirements_36.reqs