您现在的位置是:首页 > 电脑 > 

为ASP.ET成员资格表结构创建脚本(Creating a script for ASP.ET membership table structure)

2025-07-21 15:21:28
为ASP.ET成员资格表结构创建脚本(Creating a script for ASP.ET membership table structure) 我正在创建一个AppHarbor MVC应用程序,并希望使用标准的成员资格提供程序支持。 AppHarbor的人告诉我,我需要为我可以在AppHarbor数据库上运行的表结构创建脚本。 但是,我并不熟悉数据
为ASP.ET成员资格表结构创建脚本(Creating a script for ASP.ET membership table structure)

我正在创建一个AppHarbor MVC应用程序,并希望使用标准的成员资格提供程序支持。 AppHarbor的人告诉我,我需要为我可以在AppHarbor数据库上运行的表结构创建脚本。 但是,我并不熟悉数据库。 如何为默认成员资格表创建和执行脚本?

I'm creating an AppHarbor MVC application and want to use the standard membership provider support. The AppHarbor guys told me I needed to create script for the table structure that I can run on my AppHarbor database. I'm not really familiar with databases, however. How do I go about creating and executing a script for the default membership tables?

最满意答案

使用命令行aspnet_。 请参阅http:///en-us/library/ff64845.aspx 。 摘抄:

步骤2.安装成员资格数据库

在使用SqlMembershipProvider之前,必须安装SQL Server成员资格数据库。

要安装成员资格数据库,请使用具有管理SQL Server权限的帐户(例如Administrator帐户)登录到您的服务器。 打开Visual Studio 2005命令提示符,然后运行以下命令:

aspnet_ -E -S localhost -A m

哪里:

-E表示使用当前登录用户的Windows凭据进行身份验证。 -S(服务器)指示将安装或已安装数据库的服务器的名称。 -A m表示添加成员资格支持。 这将创建成员资格提供程序所需的表和存储过程。 注意Aspnet_regsql工具还用于为其他ASP.ET 2.0功能安装数据库元素,例如角管理,配置文件,Web部件个性化和Web事件。 其他命令行参数为这些其他功能执行数据库操作。 通过使用允许您指定SQL Server的连接信息并为所有受支持的功能安装或删除数据库元素的向导,可以在不使用任何命令行参数的情况下使用Aspnet_regsql。

Use the command line aspnet_. See http:///en-us/library/ff64845.aspx. Excerpt:

Step 2. Install the Membership Database

Before you can use the SqlMembershipProvider, you must install the SQL Server membership database.

To install the membership database, log on to your server with an account that has authority to administrate SQL Server (such as the Administrator account). Open the Visual Studio 2005 command prompt, and run the following command:

aspnet_ -E -S localhost -A m

Where:

-E indicates authenticate using the Windows credentials of the currently logged on user. -S (server) indicates the name of the server where the database will be installed or is already installed. -A m indicates add membership support. This creates the tables and stored procedures required by the membership provider. ote The Aspnet_regsql tool is also used to install database elements for other ASP.ET 2.0 features, such as Role Management, Profile, Web Parts Personalization, and Web Events. Other command-line arguments perform database operati for these other features. You can use Aspnet_regsql without any command line arguments by using a wizard that allows you to specify connection information for your SQL Server and install or remove the database elements for all of the supported features.

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/diannao/654078.html

相关标签:无
上传时间: 2023-07-28 12:53:07
留言与评论(共有 17 条评论)
本站网友 止咳胶囊
17分钟前 发表
and run the following command
本站网友 眼部注射除皱
13分钟前 发表
可以在不使用任何命令行参数的情况下使用Aspnet_regsql
本站网友 9个月宝宝发育指标
24分钟前 发表
log on to your server with an account that has authority to administrate SQL Server (such as the Administrator account). Open the Visual Studio 2005 command prompt
本站网友 长春市房屋出租
25分钟前 发表
为ASP.ET成员资格表结构创建脚本(Creating a script for ASP.ET membership table structure) 我正在创建一个AppHarbor MVC应用程序
本站网友 爬虫论坛
23分钟前 发表
Use the command line aspnet_. See http
本站网友 近江租房
10分钟前 发表
摘抄: 步骤2.安装成员资格数据库 在使用SqlMembershipProvider之前
本站网友 苹果的功效和作用
8分钟前 发表
这将创建成员资格提供程序所需的表和存储过程
本站网友 南街村现状
13分钟前 发表
Use the command line aspnet_. See http
本站网友 除此之外
4分钟前 发表
注意Aspnet_regsql工具还用于为其他ASP.ET 2.0功能安装数据库元素
本站网友 用友软件下载
23分钟前 发表
-A m表示添加成员资格支持
本站网友 网络收集
22分钟前 发表
Use the command line aspnet_. See http
本站网友 郑州二七万达
27分钟前 发表
such as Role Management
本站网友 台风战斗机
14分钟前 发表
但是
本站网友 仙林国际
2分钟前 发表
and Web Events. Other command-line arguments perform database operati for these other features. You can use Aspnet_regsql without any command line arguments by using a wizard that allows you to specify connection information for your SQL Server and install or remove the database elements for all of the supported features.
本站网友 高考前注意事项
20分钟前 发表
log on to your server with an account that has authority to administrate SQL Server (such as the Administrator account). Open the Visual Studio 2005 command prompt
本站网友 长沙拓展培训
12分钟前 发表
然后运行以下命令: aspnet_ -E -S localhost -A m 哪里: -E表示使用当前登录用户的Windows凭据进行身份验证