Skip to content
Snippets Groups Projects
Commit bcbf2e66 authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing sql server syntax for database creation

parent 98d7e0f7
No related branches found
No related tags found
No related merge requests found
......@@ -733,7 +733,7 @@ class OC_Setup {
}
private static function mssql_createDatabase($dbname, $connection) {
$query = "CREATE DATABASE IF NOT EXISTS [".$dbname."];";
$query = "CREATE DATABASE [".$dbname."];";
$result = sqlsrv_query($connection, $query);
if (!$result || $result === false) {
if ( ($errors = sqlsrv_errors() ) != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment