How to use SQL server for the first time-writing to a newbie and SQL server to a newbie

Source: Internet
Author: User
Tags how to use sql server how to use sql

How to use SQL server for the first time-writing to a newbie and SQL server to a newbie

1. Put the DATA table given by the instructor in the directory [C: \ Program Files \ Microsoft SQL Server \ MSSQL10_50.MSSQLSERVER \ MSSQL \ DATA.


2. enable SQL server 2008. Link to the local server.


If the connection fails


The SQL server service has not been started yet. Click Start> Control Panel> Administrative Tools> services to start the SQL server service.

Then you can open the SQL server link to connect to the server.

3. After opening, right-click the database option in object Resource Manager and select additional ].


Next, open the "Attach Database" Page, select "add", and select the file that you just placed in the database. Here I am [school_Data ].


Click OK, and then click OK. The database is successfully added.


4. Click Create query and enter the SQL statement,

SELECT * FROM STUDENTS

You can see the content in your table!


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.