Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / DbHelper Class / HasCompositeKey Method
sql connection
table name
In This Topic
    HasCompositeKey Method
    In This Topic
    Finds out if given table has a composite key
    Syntax
    public static bool HasCompositeKey( 
       SqlConnection connection,
       string tableName
    )

    Parameters

    connection
    sql connection
    tableName
    table name

    Return Value

    true if table has composite key, false otherwise
    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