如何使用SQL Server配置管理器

如何使用SQL Server配置管理器SQLServerconfigurationmanagerisatoolprovidedbyMicrosoftSQLServer.WhenweinstallSQLServer,itisinstalledautomatically.Itisusedforthefollowingpurposes.SQLServer配置管理器是Mic…

大家好,又见面了,我是你们的朋友全栈君。

SQL Server configuration manager is a tool provided by Microsoft SQL Server. When we install SQL Server, it is installed automatically. It is used for the following purposes.

SQL Server配置管理器是Microsoft SQL Server提供的工具。 当我们安装SQL Server时,它会自动安装。 它用于以下目的。

  1. Manage SQL Server services

    管理SQL Server服务

  2. To manage SQL Server network configuration (32 bit and 64 bit)

    管理SQL Server网络配置(32位和64位)

  3. To manage the SQL Server native client configuration

    管理SQL Server本机客户端配置

  4. Create alias and manage client protocols

    创建别名并管理客户端协议

The SQL Server configuration manager is a Microsoft console management snap-in and is in the start menu. You can find it once the installation of the SQL Server is completed. To open the configuration manager, Microsoft management console uses the “SQLServerManager<version>.msc” file. For example, if you have installed SQL Server 2019 on the server, then you can open it by running “SQLServerManager15.msc” command.

SQL Server配置管理器是Microsoft控制台管理管理单元,位于开始菜单中。 SQL Server安装完成后即可找到它。 要打开配置管理器,Microsoft管理控制台使用“ SQLServerManager <version> .msc ”文件。 例如,如果您已在服务器上安装了SQL Server 2019,则可以通过运行“ SQLServerManager15.msc ”命令将其打开。

如何在SQL Server 2017中打开SQL Server配置管理器 (How to open the SQL Server Configuration Manager in SQL Server 2017)

To open configuration manager in SQL Server 2017, press the Windows and R key together. In Run, type “SQLServerManager14.msc” command. The SQL Server configuration manager will open. Following is the list of commands that can be used to open the SQL Server configuration manager using “Run” or command prompt for different versions of SQL Server.

要在SQL Server 2017中打开配置管理器,请同时按Windows和R键 。 在“运行”中,键入“ SQLServerManager14.msc ”命令。 SQL Server配置管理器将打开。 以下是可用于使用不同版本SQL Server的“ 运行 ”或命令提示符打开SQL Server配置管理器的命令列表。

SQL Server version Command
SQL Server 2019 SQLServerManager15.msc
SQL Server 2017 SQLServerManager14.msc
SQL Server 2016 SQLServerManager13.msc
SQL Server 2014 SQLServerManager12.msc
SQL Server 2012 SQLServerManager11.msc
SQL Server版本 命令
SQL Server 2019 SQLServerManager15.msc
SQL Server 2017 SQLServerManager14.msc
SQL Server 2016 SQLServerManager13.msc
SQL Server 2014 SQLServerManager12.msc
SQL Server 2012 SQLServerManager11.msc

管理SQL Server服务 (Manage SQL Server services)

We can start, stop, and restart the SQL Server services using the configuration manager. In the Left pan, select the “SQL Server services.” You can view the list of SQL Server services. In my workstation, I have installed multiple instances of SQL Server. Hence, I can manage them from one place. See the following image:

我们可以使用配置管理器启动,停止和重新启动SQL Server服务。 在左侧窗格中,选择“ SQL Server服务”。 您可以查看SQL Server服务的列表。 在我的工作站中,我已经安装了多个SQL Server实例。 因此,我可以从一个地方进行管理。 见下图:

List if SQL Server services in SQL Server configuration manager

Now, we can start, stop, and restart the SQL Server services. To do that, right-click on any SQL Server service and in the context menu, you can see the options to start, stop, and restart the services. See the following image:

现在,我们可以启动,停止和重新启动SQL Server服务。 为此,右键单击任何SQL Server服务,然后在上下文菜单中,您可以看到启动,停止和重新启动服务的选项。 见下图:

Start / Stop / Restart the services

You can also change the startup parameters, enable AlwaysOn availability features, and other advanced options from the properties. To open it, right-click on SQL Server service and click on “Properties.” See the following image:

您也可以从属性中更改启动参数,启用AlwaysOn可用性功能以及其他高级选项。 要打开它,请右键单击SQL Server服务,然后单击“ 属性” 。 见下图:

SQL Server service properties

To change SQL Server startup parameters, click on the “Startup Parameter” tab. See the following image:

要更改SQL Server启动参数,请单击“启动参数”选项卡。 见下图:

Define Startup parameters

To change the SQL Server service account, click on the “Log On” tab. Moreover, you can also start/stop/restart the SQL Server service and view the status of the service. See the following image:

要更改SQL Server服务帐户,请单击“ 登录 ”选项卡。 此外,您还可以启动 / 停止 / 重新启动 SQL Server服务并查看该服务的状态。 见下图:

Define SQL Server service account

To enable the AlwaysOn availability group, click on the “AlwaysOn High Availability” tab. See the following image:

要启用AlwaysOn可用性组,请单击“ AlwaysOn高可用性”选项卡。 见下图:

Enable Always On Availability groups

管理SQL Server本机客户端配置 (Manage SQL Server native client configuration)

SQL Server native client is a network library that the client uses to connect to the SQL Server. Using the SQL Server configuration manager, we can perform the following tasks:

SQL Server本机客户端是客户端用来连接到SQL Server的网络库。 使用SQL Server配置管理器,我们可以执行以下任务:

  1. Change Client protocols

    更改客户端协议

  2. Create and configure an alias

    创建和配置别名

To change the client protocols, click on “Client Protocols” under the “SQL Native client 11.0 configuration.” See the following image:

要更改客户端协议,请单击“ SQL Native Client 11.0配置”下的“客户端协议”。 见下图:

SQL native client configuration

Clients can connect to the SQL Server using any of the following protocols.

客户端可以使用以下任何协议连接到SQL Server。

  1. Shared Memory

    共享内存

  2. TCP/IP

    TCP / IP

  3. Named Pipes

    命名管道

In the right pane, you can see the list of all the above client protocols. You can enable/disable any of the protocols. To do that, right-click on any of the protocols and select Enable/Disable. See the following image:

在右窗格中,您可以看到上述所有客户端协议的列表。 您可以启用/禁用任何协议。 为此,右键单击任何协议,然后选择“启用/禁用”。 见下图:

Enable / Disable client protocols

We can also define an alias. Alias is an alternate name that can be used to connect to SQL Server. To create a new alias, right-click on Aliases and select “New Alias.” See the following image:

我们还可以定义一个别名。 别名是备用名称,可用于连接到SQL Server。 要创建新别名,请右键单击“别名”,然后选择“新别名”。 见下图:

Configure Aliases

In Alias – New dialog box, provide Alias Name, Port number, a protocol used to connect SQL Server and hostname of the SQL Server. See the following image:

在“ 别名-新建”对话框中,提供“别名”,“端口号”,用于连接SQL Server的协议和SQL Server的主机名。 见下图:

New Alias

You can read Overview of SQL Server Aliases article to learn more about SQL Server aliases.

您可以阅读“ SQL Server别名概述”文章,以了解有关SQL Server别名的更多信息。

管理SQL Server网络配置 (Manage SQL Server network configuration)

From manage SQL Server network configuration node, you can enable or disable the network protocols supported by SQL Server.

从管理SQL Server网络配置节点,可以启用或禁用SQL Server支持的网络协议。

  1. Shared Memory

    共享内存

  2. TCP/IP

    TCP / IP

  3. Named Pipe

    命名管道

共享内存协议 (The Shared Memory Protocol)

The Shared memory protocol is used by the clients to connect the SQL Server instance on the same server. It is the simplest protocol and does not have any configuration options. You can only disable or enable the protocols that can be done from the properties window. To do that, See the following image:

客户端使用共享内存协议来连接同一服务器上SQL Server实例。 这是最简单的协议,没有任何配置选项。 您只能禁用或启用可以在属性窗口中完成的协议。 为此,请参见下图:

Enable / Disable shared memory

TCP / IP协议 (The TCP/IP Protocol )

Using TCP/IP protocols, computers can connect to the SQL Server instance. To configure the TCP/IP settings, right-click on the TCP/IP protocol and choose properties. See the following image:

使用TCP / IP协议,计算机可以连接到SQL Server实例。 要配置TCP / IP设置,请右键单击TCP / IP协议,然后选择属性。 见下图:

Enable / Disable TCP/IP

From the “protocol” tab in the properties dialog box, you can disable or enable the protocol, define the time for how long the connection will remain active and define that whether it can listen to all IP Addresses. See the following image:

属性对话框的“ 协议 ”选项卡中,可以禁用启用协议,定义连接保持活动状态的时间,并定义是否可以监听所有IP地址 。 见下图:

Enable Protocol

In the IP Addresses tab, you can specify the IP Address and the port number on which the SQL Server service will accept the incoming connections. See the following image:

在“ IP地址”选项卡中,可以指定SQL Server服务将在其上接受传入连接的IP地址和端口号。 见下图:

TCP/IP properties

命名管道协议 (The Named Pipe Protocol )

The named pipe protocol is configured for local are network and it is used for inter-process communication. To configure a valid named pipe connection string, right-click on “Named Pipe” and choose properties. Under the protocol tab of the “Named Pipe properties” dialog box, you can specify the valid named pipe connection string in the Pipe Name text box. See the following image:

已为本地区域网络配置了命名管道协议,该协议用于进程间通信。 要配置有效的命名管道连接字符串,请右键单击“ 命名管道 ”,然后选择properties 。 在“ 命名管道属性 ”对话框的“ 协议”选项卡下,可以在“管道名称”文本框中指定有效的命名管道连接字符串。 见下图:

Named Pipes properties

摘要 (Summary)

In this article, I have explained the SQL Server Configuration Manager and how to use it to configure SQL Server services and its configuration parameters.

在本文中,我已经解释了SQL Server配置管理器以及如何使用它来配置SQL Server服务及其配置参数。

翻译自: https://www.sqlshack.com/how-to-use-sql-server-configuration-manager/

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162443.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 机房搬迁遇到的问题[通俗易懂]

    机房搬迁遇到的问题[通俗易懂]春节之前,公司接到了项目,机房搬迁,一般的机房搬迁也无所谓,但是这次是工商行政管理局的机房搬迁,从9楼搬到一楼,现把遇到的问题记录如下。总共有3套系统运行在机房,重要的是全省的工商系统,硬件是2台小型机IBM570和一套磁盘阵列存储数据,这套系统已经运行10年之久,之前一直没有关机过,所以我们很是谨慎处理这套系统,在搬迁之前已经重启过机器,因为按照以往的经验计算机长时间的运行,重启后就就有可

    2025年7月23日
    1
  • goland2021 激活(已测有效)

    goland2021 激活(已测有效),https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月14日
    119
  • VC++2010注册密钥「建议收藏」

    VC++2010注册密钥「建议收藏」6VPJ7-H3CXH-HBTPT-X4T74-3YVY7

    2022年6月5日
    173
  • C++和Java哪个比较好入门?初学者该如何选择?

    C++和Java哪个比较好入门?初学者该如何选择?选择好的方向比努力更重要,对于初学编程的人来说选择一门合适的编程语言关系到自己以后的职业发展。c++和Java那个更适合作为入门语言?给大家简单科普一下~C++语言它是正宗的C语言的嫡系,由C语言发展而来。C++支持多种编程范式–面向对象编程、泛型编程和过程化编程,支持类:类、封装、重载等特性。C++语言的主要特点表现在两个方面:尽量兼容C 支持面向对象的方法。它操持了C的简洁、高效的接近汇编语言等特点,对C的类型系统进行了改革的扩充,因此C++比C更安全,C++的编译系统.

    2022年7月9日
    17
  • 怎么找出电脑隐藏的软件(如何清理电脑隐藏软件)

    你女朋友打开文件是一张图片,你打开却是各种“视频”,全程高能,搞起来!!!

    2022年4月17日
    39
  • JAVA多线程面试题_java多线程的实现方式

    JAVA多线程面试题_java多线程的实现方式前言在看完《Java多线程编程核心技术》与《Java并发编程的艺术》之后,对于多线程的理解到了新的境界.先拿如下的题目试试手把.投行面试Q1:现在有线程T1、T2和T3。你如何确保T2线程在T1之后执行,并且T3线程在T2之后执行?答案:使用Thread.join()方法即可.当然JUC包内提供了CountDownLatch与CyclicBarrier工具…

    2022年8月29日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号