Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / DbHelper Class / GetColumnDataType Method
the sql connection
Name of the table to check for
Name of the column to check data type for
In This Topic
    GetColumnDataType Method
    In This Topic
    Determines data type of given column
    Syntax
    public static string GetColumnDataType( 
       SqlConnection connection,
       string tableName,
       string columnName
    )

    Parameters

    connection
    the sql connection
    tableName
    Name of the table to check for
    columnName
    Name of the column to check data type for

    Return Value

    Data type of column if it exist otherwise empty string
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also