au.net.causal.maven.plugins.boxdb.db.sqlserver-linux-create-database.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
use master;
go
create login ${box.databaseUser} with password='${box.databasePassword}', check_expiration=off, check_policy=off;
go
create database ${box.databaseName} COLLATE ${box.databaseCollation};
go
use ${box.databaseName};
go
create user ${box.databaseUser} for login ${box.databaseUser};
go
exec sp_addrolemember 'db_owner', '${box.databaseUser}';
go