1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-23 12:44:13 +02:00
crud_generator/vendor/github.com/jimsmart/schema/docker-db-init-mssql.sql
Nikitin Aleksandr a6ea64ee3e новый
2023-10-24 18:03:04 +03:00

11 lines
258 B
Transact-SQL

CREATE LOGIN test_user WITH PASSWORD = 'Password-123';
GO
CREATE USER test_user FOR LOGIN test_user;
GO
CREATE SCHEMA test_db AUTHORIZATION test_user;
GO
ALTER USER test_user WITH default_schema = test_db;
GO
EXEC sp_addrolemember db_ddladmin, test_user;
GO