Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #640

Re: SQL2008 shared hosing login permission

From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: SQL2008 shared hosing login permission
Date 2011-09-04 00:07 +0200
Organization Erland Sommarskog
Message-ID <Xns9F5613696A9CYazorman@127.0.0.1> (permalink)
References <sbs367h29d9e9a8lpqiis6kp56bu0fr170@4ax.com>

Show all headers | View raw


Antony (antony.kll@hotmail.com) writes:
>     Cannot find the user 'dbo', because it does not exist or you do
> not have permission.
> 
> I found that the sql that generate the error is:
> 
>     CREATE ROLE [aspnet_Membership_BasicAccess] AUTHORIZATION [dbo]
> 
> I have seen that adding on database the db_owner rolemember for
> userlogin the problem is solved but this feature is not included in
> the microsoft documents for shared hosting I think for security
> reason; 

I'm unfmailiar with the documents you refer to, but if you want to
create roles and users, you will need sufficient permission for
this. That is, membership in db_owner or db_securityadmin.

Note that the application should log in with db_owner, but the application
should not create users and that.


-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Find similar


Thread

SQL2008 shared hosing login permission Antony <antony.kll@hotmail.com> - 2011-09-03 11:21 +0200
  Re: SQL2008 shared hosing login permission Erland Sommarskog <esquel@sommarskog.se> - 2011-09-04 00:07 +0200

csiph-web