SQL Server first Use method--for beginners

Source: Internet
Author: User

1. Place the data sheet given by the teacher in the directory "C:\Program Files\Microsoft SQL Server\mssql10_50.mssqlserver\mssql\data".


2. Open SQL Server 2008. Link the local server.


If the connection is not on, the display


Then the SQL Server service has not been started. Click Start-Control Panel-Administrative Tools-Services-Start the SQL Server service.

If you open the SQL Server link again, you will be able to connect successfully.

3. After opening, right-click the database option in the Object Explorer and select Attach.


Then open the "Attach Database" page, select "Add", select the file just put into the database, I am here "school_data".


Click "OK" and click "OK" to successfully add to the database


4. Then click "New Query", enter the SQL statement,

SELECT *from STUDENTS

You can see the contents of your table!


SQL Server first Use method--for beginners

Related Article

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.