Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver Subject: Re: SQL2008 shared hosing login permission Date: Sun, 04 Sep 2011 00:07:09 +0200 Organization: Erland Sommarskog Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="yvIcdztzdxdx6itHbP/zNQ"; logging-data="27863"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/W8l0KRW4W+nOpTzSkgUtg" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:E3j+0RBrVAQHUeFmJAT/ZuM6xV8= Xref: x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:640 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