/// <summary> /// Drop index for ut_data table for IUSNID, areanid column /// </summary> /// <param name="sourceDBConnection"></param> /// <returns></returns> public static void DropDefaultIndex(DIConnection sourceDBConnection) { string DataPrefix = string.Empty; //Drop index "Index_IUSNid_<DataPrefix>data" foreach (DataRow row in sourceDBConnection.DIDataSets().Rows) { DataPrefix = Convert.ToString(row[DBAvailableDatabases.AvlDBPrefix]).TrimEnd("_".ToCharArray()); sourceDBConnection.DropIndex("Index_" + Data.IUSNId + "_" + DataPrefix + "Data", DataPrefix + "_data"); sourceDBConnection.DropIndex("Index_" + Data.AreaNId + "_" + DataPrefix + "Data", DataPrefix + "_data"); } }