如何在 asp.net 网站中使用 aspnetdb 数据库

发布于 2024-08-08 21:11:11 字数 168 浏览 5 评论 0原文

我使用 asp.net 3.5 创建了一个网站。 现在我使用 Membership API 和 aspnetdb 数据库为其添加了会员支持。 我已经在本地机器上完成了所有测试。 现在,在将该站点上传到服务器时,需要考虑与 aspnetdb 有关的哪些问题。 IE;该数据库如何在服务器端可用? 注意:这是我的第一个网站。

I have created a website using asp.net 3.5.
And now I have added member support to it using Membership API and aspnetdb database.
And I have done all testing on my local machine.
Now, what issue needs to be considered with respect to aspnetdb while uploading this site to the server. ie; how this database will be available on the server side ?
Note : This is my first ever website.

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

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

发布评论

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

评论(2

夏了南城 2024-08-15 21:11:11

我自己只是在寻找这个问题的答案。

我发现以下内容可能对您有帮助:
http:// www.studiocoast.com.au/knowledgebase/article-6-aspnet-using-sql-server-instead-of-aspnetdbmdf.aspx

“在开发应用程序时
ASP.NET 2.0,默认选项
角色和用户是使用本地SQL
App_Data 目录中的数据库。

这在本地工作正常,但会
上传到时出现错误
生产服务器。为了解决这个问题
ASP.NET 会员信息需求
存储在专用的 SQL Server 中
数据库。”

“ASP.NET 包含一个名为
您可以运行 Aspnet_regsql.exe
在本地配置您的数据库。
有关该计划的更多信息可以
在这里找到:

http://msdn2.microsoft.com/en-us/library /ms229862.aspx"

I was just looking for an answer to this myself.

I've found the following that might help you:
http://www.studiocoast.com.au/knowledgebase/article-6-aspnet-using-sql-server-instead-of-aspnetdbmdf.aspx

"When developing applications in
ASP.NET 2.0, the default option for
roles and users is to use a local SQL
database in the App_Data directory.

This works fine locally, but will
bring up an error when uploaded to a
production server. To fix this the
ASP.NET membership information needs
to be stored in a dedicated SQL Server
database."

"ASP.NET includes a program called
Aspnet_regsql.exe which you can run
locally to configure your database.
More information on the program can be
found here:

http://msdn2.microsoft.com/en-us/library/ms229862.aspx"

妞丶爷亲个 2024-08-15 21:11:11

在 C:\Windows\Microsoft.NET\Framework\v2.0.50727\ 文件夹中查找文件 InstallMembership.sql。

这就是创建您需要的数据库的 SQL 脚本。

Look in your C:\Windows\Microsoft.NET\Framework\v2.0.50727\ folder for the file InstallMembership.sql.

Thats the SQL script to create the database you need.

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