mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
16 lines
595 B
MySQL
16 lines
595 B
MySQL
![]() |
/**********************************************************************/
|
||
|
/* CreateUser.SQL */
|
||
|
/* Creates a user and makes the user a member of db roles */
|
||
|
/* This script runs against the User database and requires connection string */
|
||
|
/* Supports SQL Server and SQL AZURE */
|
||
|
/**********************************************************************/
|
||
|
|
||
|
-- Create database user and map to login
|
||
|
-- and add user to the datareader, datawriter, ddladmin and securityadmin roles
|
||
|
--
|
||
|
|
||
|
CREATE USER PlaceHolderForUser FOR LOGIN PlaceHolderForUser;
|
||
|
GO
|
||
|
EXEC sp_addrolemember 'db_owner', PlaceHolderForUser;
|
||
|
GO
|