Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
djj55
Constraint Violating Yak Guru
352 Posts |
Posted - 2013-10-22 : 07:08:55
|
Hello, a user is getting the error: "Error: The specified schema name "dbo" either does not exist or you do not have permission to use it."They are trying to create a table. I have executed the command "GRANT CREATE TABLE TO [xxx\yyyy]" for them but they still get the error. Is giving them DB_OWNER the only way?Thanksdjj |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-10-22 : 08:19:57
|
yep...if they want to use dbo schema to create table they've to be db owner. otherwise they need to use CREATE TABLE TableNamerather thanCREATE TABLE dbo.TableName------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2013-10-24 : 01:07:29
|
And they need Create Table permission. Or membership in db_ddladmin role. |
|
|
djj55
Constraint Violating Yak Guru
352 Posts |
Posted - 2013-10-24 : 07:06:54
|
The db owner did the trick. russell, I had already given the create table permission, but thank you for the reply.djj |
|
|
|
|
|