Solution for the website Configuration tool to establish a connection to the database

Source: Internet
Author: User

Recently usedSqlserver2005developerWhen the database was involved in website development, it suddenly found that the website configuration management tool was unavailable.Sql2005expressVersion. Then we collected data online and finally solved the problem.

The solution is as follows:

1. Open VS Command Prompt, enter Aspnet_regsql Use the default database (Aspnetdb) .

2. Open VS , In sequence: Tools --> Option --> Database tools --> Data Connection --> SQL Server Instance name ( Empty by default ) , Change to your server name.

3. Or VS , Tools --> Connect to database --> Server Name ( Select the server ) , You can select as required Windows Or SQL Server Authentication, and then the database selects Aspnetdb . Test OK Then, copy the statement in advanced Data Source = server; initial catalog = aspnetdb;

4. In DoS Window input Inetmgr Command to open Iis5.1 . Note: IIS Be sure Visual studio2008 Install it before installation. Otherwise, it cannot be used.

5.OpenIISDefault website -- Properties-----Asp.net -----Edit global configuration

6.Under the General tabLocal ServerEdit the configuration.Data Source =./sqlexpress.Change to your computer name.

7.Enable role management on the Authentication Mode tab. Select. Authentication Mode SelectionWindows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.