From b094852e1f34773d837a3adce1b3205d5e7d9d83 Mon Sep 17 00:00:00 2001 From: paragon Date: Mon, 10 Aug 2026 18:25:39 -0400 Subject: [PATCH] add sql server setup user support script --- support/SqlServer.SetupUser.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 support/SqlServer.SetupUser.sql diff --git a/support/SqlServer.SetupUser.sql b/support/SqlServer.SetupUser.sql new file mode 100644 index 0000000..c661402 --- /dev/null +++ b/support/SqlServer.SetupUser.sql @@ -0,0 +1,17 @@ +-- Create a user in the specified database, associate it with the login, +-- and grant permission to it to create tables, read and write records. + +-- Change the database and the user as required. + +USE ArchControlPanel; +GO +CREATE USER archdemo FOR LOGIN archdemo; +GO +ALTER USER archdemo WITGH DEFAULT_SCHEMA = dbo; +GO +ALTER ROLE [db_owner] ADD MEMBER archdemo; +GO +ALTER ROLE [db_datareader] ADD MEMBER archdemo; +GO +ALTER ROLE [db_datawriter] ADD MEMBER archdemo; +GO \ No newline at end of file