I created MS SQL Server on RDS and am a newbie.
When I try and create a schema..
create schema test
19:27:36 [CREATE - 0 row(s), 0.000 secs] [Error Code: 15247, SQL State: S0001]
User does not have permission to perform this action.
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
What does have to do to create a schema? How do I edit the permissions?
How do I run as administrator? In rds I created a user called root.
AWS RDS restricts permissions on the master
database, so you can't create schemas, roles, users, or logins there.
You need to create a second database, which will then allow you to create a schema as expected:
-- use the master database to create your new database:
USE master;
CREATE DATABASE db_test;
-- then, use your new database to create your schema:
USE db_test;
CREATE SCHEMA yourschema;
When you run the auto-create script to create the database, You must add this property to ProSource item:
CopyAllUsers=false, CopyAllRoles=false
If the database already create, How to add this two property to ProSource click Here
Hope it can help!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.