SQL database-<1>sql language

Source: Internet
Author: User
Tags microsoft sql server sybase database management studio sql server management sql server management studio

relational database, SQL language simple, learning software introduction

sql:structured Query Language structured querying language

The database is divided into: hierarchical type, net type, relational type.

Relational database: A collection of two-dimensional tables that can be used to store different types of data information
Commonly used databases include: Oracle/mysql/microsoft SQL server/access/db2/postgresql, etc. .....

Transact-SQL language
is a SQL language developed by Microsoft that is based on the Sybase database and the database communication language in the Microsoft SQL Server database.

Classification of SQL languages: ddl/dql/dml/dcl/transaction Control Language
Note: DDL: Data Definition language
DQL: Data Query Language
DML: Data Manipulation language (add, delete, change, check)
DCL: Data Control Language

Basic software used in this Learning database: SQL Server (SQL Server Management Studio)

Note: Install the software, familiar with the basic operation of the software

Several elements of data logging:
1. Server type--database engine
2. Server name--native. or (local), remote computer name or IP
3. Authentication--windows authentication (administrator use), SQL Server Authentication (developer)
4. User name: SA-Super admin
5. Password: How to set


Two ways to sign in: Windows identity logon; SQL Server identity login. (can distinguish between the two types of login in the nature of different)
How do I set up SQL Server authentication?
1. Object Explorer Right-click-Properties--Security--sqlserver and Windows identity login.
2. Object Explorer--security--Login--sa--Right click--Properties--general--Set password
3. Object Explorer--security--Login--sa--Right click--Properties--state--grant, enable
Restart the database service. (Multiple ways to restart the service)

Three-tier structure of the database:
1.. mdf in the Data folder of the hard drive. Where the data is stored.
2.SqlServer of service.
3. Database Management interface

Database file Composition:
Three kinds: main file (. MDF), secondary data files (. ndf), log files (. LDF);
In a database, you can have multiple log files, multiple secondary data files, but only one master data file.

SQL database-<1>sql language

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.