Save Big on Cyber Monday! Up to 40% Off
ends in   {{days}}
Days
{{timeFormat.hours}}
:
{{timeFormat.minutes}}
:
{{timeFormat.seconds}}

Getting Started With dotConnect for Snowflake

Below are some resources to help you maximize your experience with dotConnect for Snowflake.

dotConnect for Snowflake is an ADO.NET data provider with ORM support that enables .NET applications to connect to Snowflake over HTTPS and work with its data using Snowflake SQL.

  • Entity Framework Core, Dapper, and NHibernate support
  • Basic, key-pair, and OAuth 2.0 authentication
  • Compatibility with .NET, .NET Core, and .NET Framework
  • Full compliance with ADO.NET
  • Integration with Visual Studio

Code examples

using Devart.Data.Snowflake;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=KeyPair;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Private Key=C:\\keys\\rsa_key.p8;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=OAuth2;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "Client Id=your_client_id;" +
      "Client Secret=your_client_secret;" +
      "Refresh Token=your_refresh_token;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=OAuth2Interactive;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "Client Id=your_client_id;" +
      "Client Secret=your_client_secret;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;
using System;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();

    using SnowflakeCommand cmd = new("SELECT id, name FROM orders", conn);
    using SnowflakeDataReader reader = cmd.ExecuteReader();
    while (reader.Read())
    {
      Console.WriteLine(reader["name"]);
    }
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;
using System;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();

    using SnowflakeCommand cmd = new("SELECT id, name FROM orders WHERE id = :id", conn);
    cmd.Parameters.Add(new SnowflakeParameter { ParameterName = "id", Value = 1 });
    using SnowflakeDataReader reader = cmd.ExecuteReader();
    while (reader.Read())
    {
      Console.WriteLine(reader["name"]);
    }
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;
using System.Data;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();

    using SnowflakeDataAdapter adapter = new("SELECT id, name FROM orders", conn);
    DataTable table = new();
    adapter.Fill(table);
  }
}
PM> Install-Package Devart.Data.Snowflake
using Devart.Data.Snowflake;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;

[Table("ORDERS")]
class Order
{
  [Column("ID")]
  public long Id { get; set; }
  [Column("NAME")]
  public string Name { get; set; }
}

class AppDbContext : DbContext
{
  public DbSet<Order> Orders { get; set; }

  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  {
    optionsBuilder.UseSnowflake(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
  }
}

class Program
{
  static void Main()
  {
    using AppDbContext db = new();
    var orders = db.Orders.Where(o => o.Id > 0).ToList();
  }
}
PM> Install-Package Devart.Data.Snowflake.EFCore
using Devart.Data.Snowflake;

class Program
{
  static void Main()
  {
    using SnowflakeConnection conn = new(
      "Authentication Type=Basic;" +
      "Domain=myaccount.snowflakecomputing.com;" +
      "User=your_username;" +
      "Password=your_password;" +
      "Database=your_database;" +
      "Warehouse=your_warehouse;" +
      "License Key=your_license_key");
    conn.Open();

    using SnowflakeInternalLoader loader = new("orders", conn);
    loader.Columns.Add("ID", SnowflakeType.Integer, 0, 38, 0);
    loader.Columns.Add("NAME", SnowflakeType.String, 100, 0, 0);
    loader.Open();
    for (int i = 1; i <= 3; i++)
    {
      loader.SetValue(0, i);
      loader.SetValue(1, "name " + i);
      loader.NextRow();
    }
    loader.Close();
  }
}
PM> Install-Package Devart.Data.Snowflake

Documentation

Licensing
A detailed technical reference on embedding license information - a required resource for applications built with dotConnect for Snowflake.
Deployment
A guide to deploying applications built with dotConnect for Snowflake, including the required runtime assemblies.
DataAdapter features
A guide to using the SnowflakeDataAdapter class for interacting with Snowflake data in a disconnected architecture.
SnowflakeInternalLoader
A reference for the SnowflakeInternalLoader class that loads data into Snowflake tables in bulk through the internal stage.

dotConnect Universal

Get universal access to data from a variety of sources, including SQL Server, Oracle, PostgreSQL, MySQL, SQLite, DB2, InterBase, Microsoft Access, and Firebird. Other servers can be accessed through their ADO.NET, OLE DB and ODBC providers.

FAQ

What is the trial period for dotConnect for Snowflake?
dotConnect for Snowflake offers a fully functional 30-day trial. During this period, you can use and evaluate all features without limitations. After the trial ends, you can purchase a license to keep using the product.
Can I use dotConnect for Snowflake in Visual Studio Code, JetBrains Rider, or other IDEs?

Yes. Add the Devart.Data.Snowflake NuGet package (and Devart.Data.Snowflake.EFCore for Entity Framework Core) to your project and specify the license key.

Design-time features, such as Server Explorer integration and component editors, are available only in Visual Studio.

Where should I apply my License Key?

Specify the key in the License Key connection string parameter. Alternatively, call the static SnowflakeConnection.LoadLicenseKey method before opening the first connection.

Do end users of my application need a Devart license, or do I have to pay additional fees for deploying my software?

End users of your application do not need a Devart license. Any dotConnect license allows deploying your application to an unlimited number of desktops, workstations, and non-production servers within your company. To deploy the application to a production server, you need a Server license for each server. To distribute the application to third parties, you need the OEM license.

According to the EULA, you're allowed to redistribute the following runtime assemblies with your application:

  • Devart.Data.Snowflake.dll
  • Devart.Data.SqlShim.dll
  • Devart.Data.dll
  • Devart.Data.Snowflake.EFCore.dll (for Entity Framework Core applications)

If you reference the provider via NuGet packages, these assemblies are copied to the output folder automatically.

There's no need for a full installation on the target machine, you can also use the "Minimal installation" option provided by the setup.

No other components of dotConnect may be distributed.

How can I update dotConnect for Snowflake to a new version?

Close all running IDEs and help collections, then run the installation package of the newer version. You will be prompted to uninstall the previous version. Agree, and then proceed to installing the newer build.

If you use NuGet packages, update the Devart.Data.Snowflake package (and Devart.Data.Snowflake.EFCore, if used) to the new version.

How can I completely remove all previous versions of a product?
  1. Go to Settings > Apps > Installed apps and uninstall:
    • All dotConnect providers
    • Entity Developer
    • LinqConnect
  2. Manually delete any leftover files from the following locations (if they exist):

    GAC folders:

    • C:\Windows\assembly\GAC_MSIL
    • C:\Windows\Microsoft.NET\assembly\GAC_MSIL

    Program files and extensions:

    • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Devart
    • C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Devart
    • C:\Program Files (x86)\Devart
    • C:\Program Files\Devart
    • C:\Program Files (x86)\Common Files\Devart
    • C:\Program Files\Common Files\Devart

    Program data folders:

    • C:\ProgramData\Devart\dotConnect
    • C:\ProgramData\Devart\Entity Developer

Removing these ensures a clean system and prevents conflicts during future installations.

dotConnect for Snowflake

Get an ORM-enabled data provider for Snowflake and build .NET applications that work with Snowflake data quickly and easily.

Try the 30-day trial of the full product. No limits. No card required. Start free trial