dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeCommandBuilder Class / DeriveParameters Method
The SnowflakeCommand referencing the SQL statement for which the parameter information is to be derived. The derived parameters will be populated into the SnowflakeCommand.Parameters collection of this command.

On this page
    DeriveParameters Method
    On this page
    Populates the specified SnowflakeCommand object's SnowflakeCommand.Parameters collection with parameter information for the SQL statement specified in the CommandText.
    Syntax
    'Declaration
     
    Public Shared Sub DeriveParameters( _
       ByVal command As SnowflakeCommand _
    ) 
    public static void DeriveParameters( 
       SnowflakeCommand command
    )

    Parameters

    command
    The SnowflakeCommand referencing the SQL statement for which the parameter information is to be derived. The derived parameters will be populated into the SnowflakeCommand.Parameters collection of this command.
    Remarks
    DeriveParameters overwrites any existing parameter information for the SnowflakeCommand.

    DeriveParameters requires an extra call to the data server to obtain the information. If the parameter information is known in advance, it is more efficient to populate the parameters collection by setting the information explicitly.

    For more information, see "Using Stored Procedures with a Command" in the Microsoft .NET Framework SDK documentation.

    Snowflake reports the bind variables of a statement as text, so the derived parameters get the SnowflakeType.String type. Set the SnowflakeParameter.Type or SnowflakeParameter.DbType property of each parameter explicitly before you execute the command. Keep ParameterCheck set to false: while it is true, the parameters are synchronized again at every execution, and their types are reset to String.

    See Also