Installation and basic operation of the SQL server

I did not expect my first blog actually contribute to the database (I was a little rookie)
This is the SQL server installation and some basic operations on

First, install SQL server
Our teacher gave the download site (I started looking at the software store, did not find)
https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads
due to the epidemic, red fewer, so we download the free (should be equipped with a proud expression)
is following
Here Insert Picture Description
installation screenshots
Here Insert Picture DescriptionHere Insert Picture Description
after installation to download SSMS, following circled the
Here Insert Picture Description
Here Insert Picture Descriptiondownload was a will, this time to open the "SQL server configuration management ", expand" SQL sever network configuration ", the" MSSQLSERVER agreement "in the" TCP / IP "is turned on.
Here Insert Picture Description
Here Insert Picture Description
Second, set the sa user
authentication to log on Windows
Here Insert Picture Description
Click [security] on the left -> [login name] -> [sa] -> [Properties] -> [General] page to change the password for the sa login
Here Insert Picture Description
and then [sa] -> [properties] -> [state], [whether to allow the connection to the database engine] into [granted], the [Log] into [enabled]
Here Insert Picture Description
then you can log in to restart it

Third, use the sa login, the new database, table, additions and deletions to
the server name. "" Log on locally
Here Insert Picture Description
new database, to write their own name, other default you can
Here Insert Picture Description
Here Insert Picture Description
click to expand the new database in the left
[Column Name] Fill in the column properties
[ data type] selected according to the column name
[allow] null value indicating whether to allow null
fill in as necessary] [enter the table name and click OK
Here Insert Picture Description
Right-click [dbo.Person] - [200] before editing the line, followed by the input you want to edit content
Here Insert Picture Description
delete the contents of the table
you want to delete the row, right-click the header and then delete the triangle, special attention delete can not be undone! ! !
Here Insert Picture Description
Just click when you want to modify the content can be modified directly, pay attention to click on the space of the next line after the modifications are complete, then click the Execute button, or else can not save.

Published an original article · won praise 1 · views 88

Guess you like

Origin blog.csdn.net/heart_yyf/article/details/104459242