. NET Connection Database

Source: Internet
Author: User

. NET is a platform, simply called a class library, development environment, a bit like the JVM and JDK in Java.

C # is the language, completely object-oriented, and the syntax is almost identical to Java.

ASP. NET is a technical framework that is similar to SSH, simplifying web development.

Development time is generally divided into two tiers, the page layer component rich, background layer is C # processing.

VS installation package is generally relatively large, the general internet can be used casually next to find the step driver, the next step is OK. Feel that vs and Eclipse are equally good.

SQL Server is relatively small, installation is also a fool, learning difficulty is a variety of tool configuration, but beginners do not have to involve at all.

Connect to the database.

Create a database in SQL Server or additional online search, if the additional time reported 5120 error, run as Administrator is OK, or the permissions of the MDF file all users are changed to Full control

When setting a login, use Windows identity to start a hybrid login, set a login password and enable authorization, sometimes the failure may be forgotten intermediate Restart instance, specific reference http://blog.csdn.net/sunqing0316/article/ details/46623823 (1, first sign in with Widnows 2, right-click the attribute, 3, select "Security" to select the authentication method: 4, right-click Instance--"Restart" 5, select "Security"--"Login name"- "SA", double-click "SA", the following view appears, click "General", set a new password 6, select "Status", modified to the following settings)

Can use account password login, switch to code operation, set up database instance, database, account, password, code as follows:

<add key= "consql" value= "Data source=localhost\sqlexpress;initial Catalog=class; User Id=sa; password=1; "/>

. NET Connection Database

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.