mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
01141e5f69
This password is not strong enough in MSSQL 2022, relax this restriction https://learn.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-ver16 https://learn.microsoft.com/en-us/sql/t-sql/statements/create-login-transact-sql?view=sql-server-ver16#check_policy---on--off-
32 lines
515 B
Transact-SQL
32 lines
515 B
Transact-SQL
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', CHECK_POLICY = OFF;
|
|
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
|