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