2023-02-14 20:01:45 +01:00
|
|
|
SET ANSI_NULLS ON;
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
SET QUOTED_IDENTIFIER ON;
|
|
|
|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
|
|
|
|
|
|
USE [master];
|
2020-04-28 16:22:42 +02:00
|
|
|
GO
|
|
|
|
|
2023-02-14 20:01:45 +01:00
|
|
|
-- prevent creation when already exists
|
2020-04-28 16:22:42 +02:00
|
|
|
IF DB_ID('ejabberd_test') IS NOT NULL
|
2023-02-14 20:01:45 +01:00
|
|
|
BEGIN
|
|
|
|
SET NOEXEC ON;
|
|
|
|
END
|
2020-04-28 16:22:42 +02:00
|
|
|
|
|
|
|
CREATE DATABASE ejabberd_test;
|
|
|
|
GO
|
|
|
|
|
|
|
|
USE ejabberd_test;
|
|
|
|
GO
|
|
|
|
|
2024-08-16 13:33:32 +02:00
|
|
|
CREATE LOGIN ejabberd_test WITH PASSWORD = 'ejabberd_Test1', CHECK_POLICY = OFF;
|
2020-04-28 16:22:42 +02:00
|
|
|
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
|