dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeCommand Class / SnowflakeCommand Constructor / SnowflakeCommand Constructor(String)
The text of the query.
Example

On this page
    SnowflakeCommand Constructor(String)
    On this page
    Initializes a new instance of the SnowflakeCommand class with the text of the query.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal commandText As String _
    )
    public SnowflakeCommand( 
       string commandText
    )

    Parameters

    commandText
    The text of the query.
    Remarks
    The following table shows initial property values for an instance of SnowflakeCommand.
    Properties Initial value
    CommandText commandText
    CommandTimeout 3600
    CommandType System.Data.CommandType.Text
    Connection null
    Example
    The following example creates a SnowflakeCommand and sets some of its properties.
    public void CreateSnowflakeCommand()
    {
      string mySelectQuery = "SELECT * FROM your_database.your_schema.employees";
      SnowflakeCommand snowflakeCommand = new SnowflakeCommand(mySelectQuery);
    }
    Public Sub CreateSnowflakeCommand()
      Dim mySelectQuery As String = "SELECT * FROM your_database.your_schema.employees"
      Dim snowflakeCommand As New SnowflakeCommand(mySelectQuery)
    End Sub
    See Also