- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我已经在我的 PC 上安装了 Docker。我已经为 linux 安装了 SQlServer 并且实例运行正常。
我需要使用 SSMS 连接到 Docker 实例。在图片中你可以看到我的个人配置。
对于安装,我已经点击了这个链接 https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-setup-docker
提前致谢
当我在服务器上吃午饭时,我收到这条消息
PS C:\Users\Daniele> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
PS C:\Users\Daniele> docker run microsoft/mssql-server-linux
This is an evaluation version. There are [171] days left in the evaluation period.
2017-05-23 07:19:15.12 Server Setup step is copying system data file 'C:\templatedata\master.mdf' to '/var/opt/mssq
l/data/master.mdf'.
2017-05-23 07:19:15.19 Server Setup step is copying system data file 'C:\templatedata\mastlog.ldf' to '/var/opt/mss
ql/data/mastlog.ldf'.
2017-05-23 07:19:15.19 Server Setup step is copying system data file 'C:\templatedata\model.mdf' to '/var/opt/mssql
/data/model.mdf'.
2017-05-23 07:19:15.21 Server Setup step is copying system data file 'C:\templatedata\modellog.ldf' to '/var/opt/ms
sql/data/modellog.ldf'.
2017-05-23 07:19:15.22 Server Setup step is copying system data file 'C:\templatedata\msdbdata.mdf' to '/var/opt/ms
sql/data/msdbdata.mdf'.
2017-05-23 07:19:15.24 Server Setup step is copying system data file 'C:\templatedata\msdblog.ldf' to '/var/opt/mss
ql/data/msdblog.ldf'.
2017-05-23 07:19:15.34 Server Microsoft SQL Server 2017 (CTP2.1) - 14.0.600.250 (X64)
May 10 2017 12:21:23
Copyright (C) 2017 Microsoft Corporation. All rights reserved.
Developer Edition (64-bit) on Linux (Ubuntu 16.04.2 LTS)
2017-05-23 07:19:15.34 Server UTC adjustment: 0:00
2017-05-23 07:19:15.35 Server (c) Microsoft Corporation.
2017-05-23 07:19:15.35 Server All rights reserved.
2017-05-23 07:19:15.35 Server Server process ID is 4116.
2017-05-23 07:19:15.35 Server Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'.
2017-05-23 07:19:15.36 Server Registry startup parameters:
-d /var/opt/mssql/data/master.mdf
-l /var/opt/mssql/data/mastlog.ldf
-e /var/opt/mssql/log/errorlog
2017-05-23 07:19:15.37 Server SQL Server detected 1 sockets with 2 cores per socket and 2 logical processors per so
cket, 2 total logical processors; using 2 logical processors based on SQL Server licensing. This is an informational mes
sage; no user action is required.
2017-05-23 07:19:15.38 Server SQL Server is starting at normal priority base (=7). This is an informational message
only. No user action is required.
2017-05-23 07:19:15.39 Server Detected 3944 MB of RAM. This is an informational message; no user action is required
.
2017-05-23 07:19:15.39 Server Using conventional memory in the memory manager.
2017-05-23 07:19:15.63 Server Buffer pool extension is already disabled. No action is necessary.
2017-05-23 07:19:15.76 Server InitializeExternalUserGroupSid failed. Implied authentication will be disabled.
2017-05-23 07:19:15.76 Server Implied authentication manager initialization failed. Implied authentication will be
disabled.
2017-05-23 07:19:15.77 Server Successfully initialized the TLS configuration. Allowed TLS protocol versions are ['1
.0 1.1 1.2']. Allowed TLS ciphers are ['ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM
-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RS
A-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:AES256-GCM-SHA38
4:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA'].
2017-05-23 07:19:15.81 Server The maximum number of dedicated administrator connections for this instance is '1'
2017-05-23 07:19:15.81 Server Node configuration: node 0: CPU mask: 0x0000000000000003:0 Active CPU mask: 0x0000000
000000003:0. This message provides a description of the NUMA configuration for this computer. This is an informational m
essage only. No user action is required.
2017-05-23 07:19:15.82 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock
Owner blocks per node. This is an informational message only. No user action is required.
2017-05-23 07:19:15.83 Server In-Memory OLTP initialized on lowend machine.
2017-05-23 07:19:15.88 Server Database Instant File Initialization: enabled. For security and performance considera
tions see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message
only. No user action is required.
2017-05-23 07:19:15.89 Server Query Store settings initialized with enabled = 1,
2017-05-23 07:19:15.90 spid7s Starting up database 'master'.
2017-05-23 07:19:15.91 Server Software Usage Metrics is disabled.
2017-05-23 07:19:16.12 spid7s The tail of the log for database master is being rewritten to match the new sector si
ze of 4096 bytes. 3584 bytes at offset 418304 in file /var/opt/mssql/data/mastlog.ldf will be written.
2017-05-23 07:19:16.18 spid7s Converting database 'master' from version 862 to the current version 868.
2017-05-23 07:19:16.19 spid7s Database 'master' running the upgrade step from version 862 to version 863.
2017-05-23 07:19:16.21 spid7s Database 'master' running the upgrade step from version 863 to version 864.
2017-05-23 07:19:16.23 spid7s Database 'master' running the upgrade step from version 864 to version 865.
2017-05-23 07:19:16.23 spid7s Database 'master' running the upgrade step from version 865 to version 866.
2017-05-23 07:19:16.24 spid7s Database 'master' running the upgrade step from version 866 to version 867.
2017-05-23 07:19:16.25 spid7s Database 'master' running the upgrade step from version 867 to version 868.
2017-05-23 07:19:16.42 spid7s Buffer pool extension is already disabled. No action is necessary.
2017-05-23 07:19:16.42 spid7s Resource governor reconfiguration succeeded.
2017-05-23 07:19:16.43 spid7s SQL Server Audit is starting the audits. This is an informational message. No user ac
tion is required.
2017-05-23 07:19:16.43 spid7s SQL Server Audit has started the audits. This is an informational message. No user ac
tion is required.
2017-05-23 07:19:16.49 spid7s SQL Trace ID 1 was started by login "sa".
2017-05-23 07:19:16.50 spid7s Server name is '29e275920103'. This is an informational message only. No user action
is required.
2017-05-23 07:19:16.50 spid7s The NETBIOS name of the local node that is running the server is '29e275920103'. This
is an informational message only. No user action is required.
2017-05-23 07:19:16.52 spid19s Password policy update was successful.
2017-05-23 07:19:16.52 spid22s Always On: The availability replica manager is starting. This is an informational mes
sage only. No user action is required.
2017-05-23 07:19:16.53 spid9s Starting up database 'mssqlsystemresource'.
2017-05-23 07:19:16.53 spid7s Starting up database 'msdb'.
2017-05-23 07:19:16.54 spid22s Always On: The availability replica manager is waiting for the instance of SQL Server
to allow client connections. This is an informational message only. No user action is required.
2017-05-23 07:19:16.55 spid9s The resource database build version is 14.00.600. This is an informational message on
ly. No user action is required.
2017-05-23 07:19:16.57 spid9s Starting up database 'model'.
2017-05-23 07:19:16.88 spid7s The tail of the log for database msdb is being rewritten to match the new sector size
of 4096 bytes. 512 bytes at offset 52736 in file /var/opt/mssql/data/MSDBLog.ldf will be written.
2017-05-23 07:19:16.94 spid7s Converting database 'msdb' from version 862 to the current version 868.
2017-05-23 07:19:16.95 spid7s Database 'msdb' running the upgrade step from version 862 to version 863.
2017-05-23 07:19:16.98 spid19s A self-generated certificate was successfully loaded for encryption.
2017-05-23 07:19:17.00 spid7s Database 'msdb' running the upgrade step from version 863 to version 864.
2017-05-23 07:19:17.01 spid19s Server is listening on [ 0.0.0.0 <ipv4> 1433].
2017-05-23 07:19:17.02 Server Server is listening on [ 127.0.0.1 <ipv4> 1434].
2017-05-23 07:19:17.02 Server Dedicated admin connection support was established for listening locally on port 1434
.
2017-05-23 07:19:17.02 spid9s The tail of the log for database model is being rewritten to match the new sector siz
e of 4096 bytes. 2048 bytes at offset 75776 in file /var/opt/mssql/data/modellog.ldf will be written.
2017-05-23 07:19:17.02 spid19s SQL Server is now ready for client connections. This is an informational message; no
user action is required.
2017-05-23 07:19:17.05 spid7s Database 'msdb' running the upgrade step from version 864 to version 865.
2017-05-23 07:19:17.05 spid7s Database 'msdb' running the upgrade step from version 865 to version 866.
2017-05-23 07:19:17.06 spid9s Converting database 'model' from version 862 to the current version 868.
2017-05-23 07:19:17.06 spid9s Database 'model' running the upgrade step from version 862 to version 863.
2017-05-23 07:19:17.07 spid7s Database 'msdb' running the upgrade step from version 866 to version 867.
2017-05-23 07:19:17.08 spid7s Database 'msdb' running the upgrade step from version 867 to version 868.
2017-05-23 07:19:17.09 spid9s Database 'model' running the upgrade step from version 863 to version 864.
2017-05-23 07:19:17.10 spid9s Database 'model' running the upgrade step from version 864 to version 865.
2017-05-23 07:19:17.10 spid9s Database 'model' running the upgrade step from version 865 to version 866.
2017-05-23 07:19:17.10 spid9s Database 'model' running the upgrade step from version 866 to version 867.
2017-05-23 07:19:17.11 spid9s Database 'model' running the upgrade step from version 867 to version 868.
2017-05-23 07:19:17.22 spid9s Polybase feature disabled.
2017-05-23 07:19:17.22 spid9s Clearing tempdb database.
2017-05-23 07:19:17.71 spid9s Starting up database 'tempdb'.
2017-05-23 07:19:17.97 spid9s The tempdb database has 1 data file(s).
2017-05-23 07:19:17.99 spid22s The Service Broker endpoint is in disabled or stopped state.
2017-05-23 07:19:17.99 spid22s The Database Mirroring endpoint is in disabled or stopped state.
2017-05-23 07:19:18.00 spid22s Service Broker manager has started.
2017-05-23 07:19:18.14 spid7s Recovery is complete. This is an informational message only. No user action is requir
ed.
最佳答案
这是一个老问题,但是当我遇到类似问题时,我来到了这个线程。所以回答这个问题,因为它可能对其他人有用。
在我的例子中,它是服务器名称语法问题。 SSMS 使用 ip_address,port_number 语法。所以我必须使用 localhost,1433 或 127.0.0.1,1433 来连接。
我实际上发现了一个与此相关的 SO 问题 here
关于sql-server - 如何将 SSMS 连接到 docker 容器中的 Linux SqlServer?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44116695/
SQL、PL-SQL 和 T-SQL 之间有什么区别? 谁能解释一下这三者之间的区别,并提供每一个的相关使用场景? 最佳答案 SQL 是一种对集合进行操作的查询语言。 它或多或少是标准化的,几乎所有关
这个问题已经有答案了: What is the difference between SQL, PL-SQL and T-SQL? (6 个回答) 已关闭 9 年前。 我对 SQL 的了解足以完成我的
我在数据库中有一个 USER 表。该表有一个 RegistrationDate 列,该列有一个默认约束为 GETDATE()。 使用 LINQ 时,我没有为 RegistrationDate 列提供任
我有一个可能属于以下类型的字符串 string expected result 15-th-rp 15 15/12-rp 12 15-12-th
很难说出这里问的是什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或言辞激烈,无法以目前的形式合理回答。如需帮助澄清此问题以便可以重新打开,visit the help center . 9年前关闭
我有一个存储过程(称为 sprocGetArticles),它从文章表中返回文章列表。这个存储过程没有任何参数。 用户可以对每篇文章发表评论,我将这些评论存储在由文章 ID 链接的评论表中。 有什么方
我目前正在做一个 *cough*Oracle*cough* 数据库主题。讲师介绍embedded SQL作为让其他语言(例如 C、C++)与(Oracle)数据库交互的方式。 我自己做了一些数据库工作
SQL Server 中 SQL 语句的最大长度是多少?这个长度是否取决于 SQL Server 的版本? 例如,在 DECLARE @SQLStatement NVARCHAR(MAX) = N'S
这个问题已经有答案了: Simple way to transpose columns and rows in SQL? (9 个回答) 已关闭 8 年前。 CallType
预先感谢您对此提供的任何帮助。 假设我有一个查询,可以比较跨年的数据,从某个任意年份开始,永无止境(进入 future ),每年同一时期直到最后一个完整的月份(其特点是一月数据永远不会显示至 2 月
我在数据库中有一个 USER 表。该表有一个 RegistrationDate 列,该列的默认约束为 GETDATE()。 使用 LINQ 时,我没有为 RegistrationDate 列提供任何数
下面是我试图用来检查存储过程是否不存在然后创建过程的 sql。它会抛出一个错误:Incorrect syntax near the keyword 'PROCEDURE' IF NOT EXISTS
我有一个同事声称动态 SQL 在许多情况下比静态 SQL 执行得更快,所以我经常看到 DSQL 到处都是。除了明显的缺点,比如在运行之前无法检测到错误并且更难阅读,这是否准确?当我问他为什么一直使用
来自 lobodava 的动态 SQL 查询是: declare @sql nvarchar(4000) = N';with cteColumnts (ORDINAL_POSITION, CO
使用 SQL Server 中的存储过程执行动态 SQL 命令的现实优点和缺点是什么 EXEC (@SQL) 对比 EXEC SP_EXECUTESQL @SQL ? 最佳答案 sp_executes
我有这个有效的 SQL 查询: select sum(dbos.Points) as Points, dboseasons.Year from dbo.StatLines dbos i
我正在调试一些构建成功运行的 SQL 命令的代码。 然而,在查询结束时,查询结果似乎被写入了一个文本文件。 完整的查询如下 echo SELECT DATE,DATETABLE,DATE,APPDAT
我有一些创建表的 .sql 文件(MS SQL 数据库): 表_1.sql: IF OBJECT_ID (N'my_schema.table1', N'U') IS NOT NULL DROP TAB
我写了下面的 SQL 存储过程,它一直给我错误@pid = SELECT MAX(... 整个过程是: Alter PROCEDURE insert_partyco @pname varchar(20
我在 SQL Server 2005 中有包含两列 Fruit 和 Color 的表,如下所示 Fruit Colour Apple Red Orange
我是一名优秀的程序员,十分优秀!