安装SQL Server Express及用SQL Server Management Studio连接

下载Microsoft SQL Server 2012 Express

https://www.microsoft.com/en-us/download/details.aspx?id=29062


下载SQL Server Management Studio (SSMS)

https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms


安装Microsoft SQL Server 2012 Express

完成后打开cmd输入如下命令查看

C:\WINDOWS\system32>sqllocaldb info
v11.0

创建数据库

C:\WINDOWS\system32>sqllocaldb create "testdb"
LocalDB instance "testdb" created with version 11.0.


启动数据库

C:\WINDOWS\system32>sqllocaldb start testdb
LocalDB instance "sonar-cpk" started.


找到本地数据库登陆路径

C:\WINDOWS\system32>sqllocaldb info testdb
Name:               testdb
Version:            11.0.2318.0
Shared name:        usera
Owner:              domain\usera
Auto-create:        No
State:              Running
Last start time:    9/12/2017 12:06:32 PM
Instance pipe name: np:\\.\pipe\LOCALDB#SHC07162\tsql\query


打开SQL Server Management Studio

安装SQL Server Express及用SQL Server Management Studio连接_第1张图片


连接成功

安装SQL Server Express及用SQL Server Management Studio连接_第2张图片



你可能感兴趣的:(安装SQL Server Express及用SQL Server Management Studio连接)