You are here

public function Schema::CLREnabled in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php \Drupal\Driver\Database\sqlsrv\Schema::clrEnabled()

Check if CLR is enabled, required to run GROUP_CONCAT.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 470
Definition of Drupal\Driver\Database\sqlsrv\Schema

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function CLREnabled() {
  return $this->connection
    ->query_direct("SELECT CONVERT(int, [value]) as [enabled] FROM sys.configurations WHERE name = 'clr enabled'")
    ->fetchField() !== 1;
}