English 中文(简体)
利用 s服务器的标识控制(未明示)
原标题:using login controls with sql server (not express)

我安装了视频演播室2008年专业(与SP1更新),然后,我放弃了2005年快车和安装服务器2005年标准。 www.un.org/Depts/DGACM/index_spanish.htm

now I am not able to add SQL Server Database to the project - it says Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly.

它是否不符合SQ服务器标准版本?

And Login Controls also not working-
Web Administration Tool says Unable to connect to SQL Server database

此外,还利用Apnet_regsql-lineutil.而不是工作。

请提供我向一些人提出的问题的解决办法。 澄清这一问题或删除的标记 ;P :

最佳回答

页: 1 a 独立的<代码>mdf文档,作为数据库,确实可在Express editions ofkou服务器 only上查阅。

在任何其他情况下,你应做的是建立关于服务器机组的数据库,并用database name查询,而不是取用mdf文档名称。

为了创建这些表格和储存的协会所需程序。 NET 成员和作用子系统,你需要使用<条码> aspnet_regsql ,用于你的服务器。 您说,这只是一些工作——how。 它不可行? 你们有错吗? 如果是的话:what误差?

for details on how to use it. 创建协会。 NET 成员和作用子系统,使用:

aspnet_regsql -S (your server name here) -E -A mr

<代码>-E利用集成安全(例如,您目前的Windowslogon)与服务器连接,用户账户当然需要这些业务的足够许可! 如果需要一个特定的服务器用户,则有两个<代码>-U(用户名称)-P(密码)参数以达到这一目的。

Once you have all of this, you also need to configure your ASP.NET membership and role subsystem to actually use that new database (ASPNETDB) that was created on your SQL Server. By default, they use the aspnetdb.mdf file attached to your SQL Server Express instance. Since you ve changed that, you need to update your configuration! See how to do this in detail on MSDN

<>Step1:,在你新创建的数据库中增加链接

在您的<代码>web.config或app.config上,在您新设立的伙伴关系中添加了有效的链接。 NET 成员/名册数据库——例如:

<configuration>
   <connectionStrings>
      <add name="ASPNETDB_Connection" 
           connectionString="Server=YourServer;database=aspnetdb;Integrated Security=SSPI;" />
  </connectionStrings>

Step 2: - add a valid configuration for the ASP.NET membership subsystem and reference that new connection string you ve just added in Step 1; something like:

<configuration>
   <system.web>
      <membership defaultProvider="YourProvider" userIsOnlineTimeWindow="15">
          <providers>
             <clear />
             <add name="YourProvider" 
                  type="System.Web.Security.SqlMembershipProvider" 
                  connectionStringName="ASPNETDB_Connection"
                  applicationName="MyApplication"
                  enablePasswordRetrieval="false" enablePasswordReset="true"
                  requiresQuestionAndAnswer="true" requiresUniqueEmail="true"
                  passwordFormat="Hashed" />
          </providers>
      </membership>

Step 3: do the same for the role subsystem:

<configuration>
   <system.web>
      <roleManager defaultProvider="YourProvider" enabled="true" cacheRolesInCookie="true" >
          <providers>
             <clear />
             <add name="YourProvider" 
                  type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"                 
                  connectionStringName="ASPNETDB_Connection"
                  applicationName="MyApplication" />
          </providers>
      </roleManager>
问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签