dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeConnection Class / SnowflakeConnection Constructor / SnowflakeConnection Constructor()
Example

On this page
    SnowflakeConnection Constructor()
    On this page
    Initializes a new instance of the SnowflakeConnection class.
    Syntax
    'Declaration
     
    Public Function New()
    public SnowflakeConnection()
    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()
    {
      SnowflakeConnection snowflakeConnection = new SnowflakeConnection();
      snowflakeConnection.ConnectionString = 
          "Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********";
      snowflakeConnection.Open();
      //Do something
      snowflakeConnection.Close();
    }
    Public Sub CreateSnowflakeConnection()
      Dim snowflakeConnection As New SnowflakeConnection()
      snowflakeConnection.ConnectionString = _ 
          "Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********"
      snowflakeConnection.Open()
      'Do something
      snowflakeConnection.Close()
    End Sub
    See Also