SnowflakeConnection Constructor(String)
Initializes a new instance of the
SnowflakeConnection class when given a string containing the connection string.
The following example creates and opens a
SnowflakeConnection.
|
|---|
public void CreateSnowflakeConnection()
{
string myConnString =
"Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********";
SnowflakeConnection snowflakeConnection = new SnowflakeConnection(myConnString);
snowflakeConnection.Open();
//Do something
snowflakeConnection.Close();
} |
|
|---|
Public Sub CreateSnowflakeConnection()
Dim myConnString As String = _
"Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********"
Dim snowflakeConnection As New SnowflakeConnection(myConnString)
snowflakeConnection.Open()
'Do something
snowflakeConnection.Close()
End Sub |