VistaDB 5






Old index name
New index name
RenameIndex Method
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
)
procedure RenameIndex( 
    oldName: System.String;
    newName: System.String
); 
function RenameIndex( 
   oldName : System.String,
   newName : System.String
);
void RenameIndex( 
   System.string* oldName,
   System.string* 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