25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00
xmpp.chapril.org-ejabberd/test/docker/db/mssql/initdb/initdb_mssql.sql
2020-04-28 16:22:42 +02:00

24 lines
387 B
Transact-SQL

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