为什么在我使用 aspnet_regsql 创建 aspnet_ 表后,读写用户无法看到它们?

发布于 2024-09-30 00:57:54 字数 461 浏览 2 评论 0原文

我使用 aspnet_regsql -S myServer -E -A mr -d anExistingDatabase 创建了成员资格表等。当我通过 Windows 身份验证以我自己的身份连接时,我可以在 SQL Server Management Studio 中看到这些更改。

当我以读写用户身份登录时,我无法在 SQL Server Management Studio 中看到这些更改。我也无法在 Visual Studio 2008 [项目/ASP.NET 配置] 中进行适当的更改。当我单击 ASP.NET Web 应用程序管理中的安全链接时,出现以下错误:

“您选择的内容有问题 数据存储。这可能是由以下原因引起的 无效的服务器名称或凭据,或者 由于权限不足。它可以 也可能是角色经理造成的 功能未启用。单击 下面的按钮将被重定向到 您可以在其中选择新数据的页面 商店。”

I created the membership tables etc. with aspnet_regsql -S myServer -E -A mr -d anExistingDatabase. I can see these changes in SQL Server Management Studio, when I connect as myself through Windows Authentication.

I could not see these changes in SQL Server Management Studio, while logged in as a readwrite user. I cannot make the appropriate changes in Visual Studio 2008 [Project/ASP.NET Configuration] either. When I click on the Security link in ASP.NET Web Application Administration I get the following error:

"There is a problem with your selected
data store. This can be caused by an
invalid server name or credentials, or
by insufficient permission. It can
also be caused by the role manager
feature not being enabled. Click the
button below to be redirected to a
page where you can choose a new data
store."

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往事风中埋 2024-10-07 00:57:54

问题很可能是权限之一。去查看您的用户并授予其适当的权限。

要测试这一点,您可以授予它对数据库的完整 dbo 权限。一旦用户可以看到所有表,就拿走 dbo 并应用它真正应该拥有的权限。

More than likely the issue is one of permissions. Go look at your user and grant it the appropriate rights.

To test this, you can grant it full dbo rights to the database. Once the user can see all the tables, take away dbo and apply the rights it really should have.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文