You are here

public function Schema::clrEnabled in Drupal driver for SQL Server and SQL Azure 3.0.x

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

Check if CLR is enabled.

Required to run GROUP_CONCAT.

Return value

bool Is CLR enabled?

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 1167

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

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