SQL Server Database Fundamentals

Source: Internet
Author: User

How the database uses tables when storing data:

  • Columns are called fields in the database
  • Rows are called records in the database

Data type:

  • Character data type: char, varchar, etc.
  • Date Time Data: datetime, etc.
  • Numeric type: int, float, real
  • Currency Data: Money

Create DATABASE: The primary file is. mdf, and there is only one

Log file. ldf;

Secondary data file. NDF, you can have multiple

The database includes the interface, the service two parts

The following is the SQL Server database interface:

Attaching and detaching a database:

Separation:

Locate the database in SQL Server, right--task--detach

Attach: Select database, right--attach--select need to attach--click Add--OK

Backup and restore of databases

Find the database you need to operate in SQL Server, right--task--backup--OK

Below you can choose where to store

Restores

Select the database you want to manipulate, right--task--Restore--database

SQL Server Database Fundamentals

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.