VistaDB 6
VistaDB.DDA Namespace / IVistaDBTable Interface / RenameIndex Method
Old index name
New index name


In This Topic
    RenameIndex Method
    In This Topic
    Rename existing index without rebuilding.
    Syntax
    'Declaration
     
    
    Sub RenameIndex( _
       ByVal oldName As System.String, _
       ByVal newName As System.String _
    ) 
    'Usage
     
    
    Dim instance As IVistaDBTable
    Dim oldName As System.String
    Dim newName As System.String
     
    instance.RenameIndex(oldName, newName)
    void RenameIndex( 
       System.string oldName,
       System.string newName
    )

    Parameters

    oldName
    Old index name
    newName
    New index name
    Remarks
    Method doesn't rename primary key index if it participates in relationships. You cannot rename foreign key indexes (they are managed by the engine).
    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