在Visual Studio 2010数据库项目部署中丢失的aspnet用户和aspnet成员资格表数据

时间:2011-10-08 17:03:07

标签: visual-studio-2010 sql-server-2008

我使用Visual Studio 2010在我的asp.net MVC 3解决方案中创建了一个数据库项目。当我尝试部署它时,我的所有表和数据也在sql server 2008中添加。只有asp.net用户表和仅在使用Visual Studio 2010进行部署的sql server中未添加aspnet成员资格表数据。

请建议我如何分配权限,以便aspnet表也可以获取数据。现在,如果我尝试部署,当部署进程到达aspnet用户和aspnet成员资格表时,我会收到此错误:

    Creating the aspnet_Applications table...
    Creating the aspnet_Users table...
    Creating the aspnet_SchemaVersions table...
    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    : 
(0 row(s) affected)

    : 
(1 row(s) affected)

    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    Creating the vw_aspnet_Applications view...
    Creating the vw_aspnet_Users view...
    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    ----------------------------------------
    Completed execution of InstallCommon.SQL
    ----------------------------------------
    -------------------------------------------
    Starting execution of InstallMembership.SQL
    -------------------------------------------
    Creating the aspnet_Membership table...
    Creating the vw_aspnet_MembershipUsers view...
    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
    : 
(0 row(s) affected)

0 个答案:

没有答案