Answers for "connect to snowflake from python"

1

python code for snowflake connection

import snowflake.connector

# Connectio string
conn = snowflake.connector.connect(
                user='snuser',
                password='password@123',
                account='xyz12345.us-east-2',
                #warehouse='COMPUTE_WH',
                database='DEMO_DB',
                schema='public'
                )

# Create cursor
cur = conn.cursor()

# Execute SQL statement
cur.execute("select current_date;")

# Fetch result
print cur.fetchone()[0]
Posted by: Guest on June-23-2021
0

connect snowflake with python

pip install -r https://raw.githubusercontent.com/snowflakedb/snowflake-connector-python/v2.3.8/tested_requirements/requirements_36.reqs
Posted by: Guest on January-24-2021

Code answers related to "connect to snowflake from python"

Python Answers by Framework

Browse Popular Code Answers by Language