aboutsummaryrefslogtreecommitdiff
path: root/test/docker/db/mssql/initdb/initdb_mssql.sql
blob: a9ec5a5a861b7ceb0170caefb4f364db25d36616 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
USE [master]
GO

IF DB_ID('ejabberd_test') IS NOT NULL
  set noexec on               -- prevent creation when already exists

CREATE DATABASE ejabberd_test;
GO

USE ejabberd_test;
GO

CREATE LOGIN ejabberd_test WITH PASSWORD = 'ejabberd_Test1';
GO

CREATE USER ejabberd_test FOR LOGIN ejabberd_test;
GO

GRANT ALL TO ejabberd_test;
GO

GRANT CONTROL ON SCHEMA ::dbo TO ejabberd_test;
GO