Snowflake

Frends.Snowflake.ExecuteQuery / 3.0.0

Summary

Runs SQL against Snowflake, returning rows or an affected count depending on the statement, and authenticates with a key pair as well as by password.

Typical use — reading from and writing to Snowflake; key-pair authentication is the option that avoids a password in configuration

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Command parameters.

Name Type Default Example Description
CommandType CommandTypes – ExecuteReader

Specifies how a command string is interpreted. ExecuteNonQuery: Executes an SQL statement, and returns the number of rows affected. ExecuteReader: Executes the query, and returns an object that can iterate over the entire result set. ExecuteScalar: Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.

Possible values:

  • ExecuteNonQuery: Executes an SQL statement, and returns the number of rows affected.

  • ExecuteReader: Executes the query, and returns an object that can iterate over the entire result set.

  • ExecuteScalar: Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.

CommandText String – SELECT * FROM mytable

text command to run against the data source.

An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.