Simple use of SQL Server 2014


Simple operations for SQL Server 2014

 

1. Creation of SQL Server database

2. Creation of SQL Server data tables

3. Fill in the SQL Server data table

 

 

1. Creation of SQL Server database

 

Click to connect




Select the database with the mouse, then right-click and select New Database

 

 

 

Fill in the basic database information in the New Database window that pops up.

 

The owner of the SQL Server database is generally sa.

 

After filling in the database related information, click OK to create the database. As shown below:



 

 

 2. Creation of SQL Server data tables

 

After the database is created, click on the database as shown in the figure, select the table with the mouse, and right-click to select New Table.



 

Fill in the relevant table information in the pop-up table.

 

After filling in the information, press ctrl+s, fill in the table name in the pop-up box, and then confirm.

At this point, the data table is created.

 

Note that after creating a new table, you need to right-click and refresh several times before it will appear.

 

 

3. Fill in the SQL Server data table

 

After selecting the table to be filled out, right-click and click Edit First 200 Rows.


 

Note: When entering data, it is better to write in columns, but there will be some errors when writing in rows, and I don't know why.

 

After saving, use SQL statement to query to see if all the information in the table is entered.

 

Click File, Create New, and query using the current connection, as shown in the following figure.



 

enter 

select * from Staff(表名)

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326199885&siteId=291194637