SnowflakeCommand Constructor(String,SnowflakeConnection)
Initializes a new instance of the
SnowflakeCommand class with the text of the query and a
SnowflakeConnection object.
The following example creates a
SnowflakeCommand and sets some of its properties.
|
|---|
public void CreateCommand()
{
SnowflakeConnection snowflakeConnection = new SnowflakeConnection(
"Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********");
string mySelectQuery = "SELECT * FROM your_database.your_schema.employees";
SnowflakeCommand snowflakeCommand = new SnowflakeCommand(mySelectQuery, snowflakeConnection);
} |
|
|---|
Public Sub CreateCommand()
Dim snowflakeConnection As New SnowflakeConnection( _
"Domain=myorg-myaccount.snowflakecomputing.com;User=your_user;Password=********;Database=your_database;Schema=your_schema;Warehouse=your_warehouse;License Key=**********")
Dim mySelectQuery As String = _
"SELECT * FROM your_database.your_schema.employees"
Dim snowflakeCommand As New SnowflakeCommand(mySelectQuery, snowflakeConnection)
End Sub |