L
localhost
I am using ADOX to create databases and tables. I can create tables
and columns fine. I am having a problem with making indexes. I am
using MDAC 2.8 with ADOX and ADODB type libraries added as references
to my Visual Studio 2003 C# console app project.
ADOX.IndexClass newIndex = new ADOX.IndexClass();
newIndex.Name = "testIndex";
newIndex.Columns.Append(
(object)"testCol" ,
ADOX.DataTypeEnum.adVarWChar ,
16 );
testTable.Indexes.Append( (object)newIndex , null );
This works fine, but I cannot determine how to set the Sort Order for
the index, I can only get the acending default.
Thanks.
and columns fine. I am having a problem with making indexes. I am
using MDAC 2.8 with ADOX and ADODB type libraries added as references
to my Visual Studio 2003 C# console app project.
ADOX.IndexClass newIndex = new ADOX.IndexClass();
newIndex.Name = "testIndex";
newIndex.Columns.Append(
(object)"testCol" ,
ADOX.DataTypeEnum.adVarWChar ,
16 );
testTable.Indexes.Append( (object)newIndex , null );
This works fine, but I cannot determine how to set the Sort Order for
the index, I can only get the acending default.
Thanks.