public function Schema::clrEnabled in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 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
Namespace
Drupal\Driver\Database\sqlsrvCode
public function clrEnabled() {
return $this->connection
->queryDirect("SELECT CONVERT(int, [value]) as [enabled] FROM sys.configurations WHERE name = 'clr enabled'")
->fetchField() !== 1;
}