Re: "dbo" schema permissions question.
- From: "Bob Beauchemin" <no_bobb_spam@xxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 15:21:59 -0800
Hi Chris,
It would probably be better to have the user in SqlDependency.Start have a
different default schema than dbo (create schema foo authorization youruser;
alter user youruser with default_schema = foo). Otherwise you would have to
give it access to create objects in the dbo schema. Once you've done that,
the user needs CREATE SERVICE, CREATE QUEUE, and CREATE PROCEDURE. Because
SERVICE is at database scope (not schema scope) its queue or procedure
that's causing the error. Don't forget GRANT SUBSCRIBE QUERY NOTIFICATION to
the user executing the commands too.
Cheers,
Bob Beauchemin
http://www.SQLskills.com/blogs/bobb
"chris" <chris@xxxxxxxxxxx> wrote in message
news:1138483703.893069.160850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have some ASP.NET 2.0 code executing
> SqlDependency.Start(connectionstring) to a SQL 2005 database and I am
> getting the following error:
>
> System.Data.SqlClient.SqlException: The specified schema name "dbo"
> either does not exist or you do not have permission to use it.
>
> As a general SQL 2005 Security question, can anyone please inform me as
> to how i would give my user permissions to the "dbo" schema? At
> present the user has "dbo" set up as it's default schema, but I am not
> sure what that does. Also my code works fine if I give the user
> sysadmin rights.
>
> Thanks,
> Chris
>
.
- Follow-Ups:
- Re: "dbo" schema permissions question.
- From: chris
- Re: "dbo" schema permissions question.
- References:
- "dbo" schema permissions question.
- From: chris
- "dbo" schema permissions question.
- Prev by Date: "dbo" schema permissions question.
- Next by Date: Re: MYSQL Question
- Previous by thread: "dbo" schema permissions question.
- Next by thread: Re: "dbo" schema permissions question.
- Index(es):
Relevant Pages
|
|