Trying to attach a Vault database to the ADMS Console returned this error.
27/11/2012 09:15:51 Connectivity.Application.VaultManager.ServiceException: The database principal owns a database role and cannot be dropped. ---> System.Data.SqlClient.SqlException: The database principal owns a database role and cannot be dropped. at Connectivity.Core.Database.TransactionContext.OnSqlException(SqlException e) at Connectivity.Core.Database.SqlAccess.ExecuteNonQueryInternal(SqlCommand cmd) at Connectivity.Core.Database.SqlAccess.ExecuteNonQuery(CommandType commandType, String commandText, Int32 commandTimeout, SqlParameter[] commandParameters) at Connectivity.Core.DataAccess.DatabaseSecurity.ClearDatabaseUsers(String dbName) at Connectivity.Core.DataAccess.KnowledgeMasters.AttachDatabase(String dbName, String datafile, String logfile) at Connectivity.Core.Operations.Attach.Execute(Boolean markForMigration) at Connectivity.Core.Services.KnowledgeVaultService.AttachKnowledgeVault(String name, String datafile, String logfile, String filestore, Boolean markForMigration) at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) --- End of inner exception stack trace --- at Connectivity.Application.VaultManager.ProgressCommand.Execute() at Connectivity.Application.VaultManager.AttachVaultCommand.OnExecute(ExplorerCommandContext context)
This happened because the Database Roles had been edited by the DBA which was not supported by Autodesk.
The solution was to attach the mdf and ldf in SQL Server Management Studio.
In the properties of the Database, expand Security>Roles>Database Roles. Right click on ADMS-VacuumRestriction>Properties. On the General page, change the Owner to "dbo".
Detach the database from SQL Server Managment Studio then, re-attach via the ADMS Console.. (and don't do it again.....)