security - Why can't a user create tables in a database (they own) with a script? SP permission issue perhaps? -


i granted user permission create databases. able create database, own, getting errors when running script create tables. don't have lot of information @ point (sorry!), can't diagnose myself, perhaps more experienced in database permissions help.

i'm assuming using built-in stored procedures , it's kind of permission issue. assumed if can create/own database, can whatever want it, there must don't have access to.

any advise? need grant them permissions beyond "create database"? there common/standard set of stored procedures should have access to? need access "master" database?

"owning" database @ server level different being "db_owner" in database

after creating database, run this

create user foo login foo exec sp_addrolemember 'db_owner', 'foo' 

see create user more info

edit: relying on owner dbo mapping create database unreliable: set permissions explicitly or use sp_changedbowner


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -