dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeConnection Class / SnowflakeConnection Constructor / SnowflakeConnection Constructor(String)
The connection used to connect to Snowflake.
Example

On this page
    SnowflakeConnection Constructor(String)
    On this page
    Initializes a new instance of the SnowflakeConnection class when given a string containing the connection string.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connectionString As String _
    )
    public SnowflakeConnection( 
       string connectionString
    )

    Parameters

    connectionString
    The connection used to connect to Snowflake.
    Remarks
    When a new instance of SnowflakeConnection is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the ConnectionString property.
    Example
    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
    See Also