aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mssql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r--phpBB/includes/db/mssql.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php
index cc4de3695a..efe0b4333d 100644
--- a/phpBB/includes/db/mssql.php
+++ b/phpBB/includes/db/mssql.php
@@ -56,6 +56,28 @@ class dbal_mssql extends dbal
}
/**
+ * Version information about used database
+ */
+ function sql_server_info()
+ {
+ $result_id = @mssql_query("SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY('productlevel'), SERVERPROPERTY('edition')", $this->db_connect_id);
+
+ $row = false;
+ if ($result_id)
+ {
+ $row = @mssql_fetch_assoc($result_id);
+ @mssql_free_result($result_id);
+ }
+
+ if ($row)
+ {
+ return 'MSSQL<br />' . implode(' ', $row);
+ }
+
+ return 'MSSQL';
+ }
+
+ /**
* SQL Transaction
* @access: private
*/