25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00
xmpp.chapril.org-ejabberd/test/docker/db/mssql/initdb/initdb_mssql.sql

32 lines
495 B
MySQL
Raw Normal View History

SET ANSI_NULLS ON;
SET NOCOUNT ON;
SET QUOTED_IDENTIFIER ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
USE [master];
GO
-- prevent creation when already exists
IF DB_ID('ejabberd_test') IS NOT NULL
BEGIN
SET NOEXEC ON;
END
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