What version of DacFX are you using? If this is not the last, it will work best, because many of the old ones do not understand the parameters that you specified very well.
Alternatively, you can do this (this is what I did, instead of getting DacFX to work correctly.
ServerConnection connection = new ServerConnection(ServerName); Server sqlServer = new Server(connection); Database QADatabase = sqlServer.Databases[DatabaseName]; QADatabase.DatabaseOptions.UserAccess = DatabaseUserAccess.Single; QADatabase.Alter(TerminationClause.RollbackTransactionsImmediately); QADatabase.Refresh();
source share