You are here

public function DatabaseSchema_sqlsrv::setRecoveryModel in Drupal driver for SQL Server and SQL Azure 7

Same name and namespace in other branches
  1. 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::setRecoveryModel()
  2. 7.2 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::setRecoveryModel()

Change Database recovery model.

File

sqlsrv/schema.inc, line 212
Database schema code for Microsoft SQL Server database servers.

Class

DatabaseSchema_sqlsrv

Code

public function setRecoveryModel($model) {
  $this->connection
    ->query("ALTER " . $this->connection->options['name'] . " model SET RECOVERY " . $model);
}