当前位置: 首页 > news >正文

Sqlserver安全篇之_启用和禁用Named Pipes的案列介绍

https://learn.microsoft.com/zh-cn/sql/tools/configuration-manager/named-pipes-properties?view=sql-server-ver16
https://learn.microsoft.com/zh-cn/sql/tools/configuration-manager/client-protocols-named-pipes-properties-protocol-tab?view=sql-server-ver16

默认情况下, SQL Server 侦听:\.\pipe\sql\query(对于默认实例)和 \.\pipe\MSSQL$\sql\query(对于命名实例)

Unless changed by the user, when the default instance of Microsoft SQL Server listens on the named pipes protocol, it uses \.\pipe\sql\query as the pipe name. The period indicates that the computer is the local computer, pipe indicates that the connection is a named pipe, and sql\query is the name of the pipe. To connect to the default pipe, the alias must have \<computer_name>\pipe\sql\query as the pipe name. If SQL Server has been configured to listen on a different pipe, the pipe name must use that pipe. For instance, if SQL Server is using \.\pipe\unit\app as the pipe, the alias must use \<computer_name>\pipe\unit\app as the pipe name.

At the time of connection, the SQL Server Native Client component reads the server, protocol, and pipe name values from the registry for the specified alias name, and creates a pipe name in the format np:\<computer_name>\pipe<pipename> or np:\\pipe<pipename>. For a named instance, the default pipe name is \<computer_name>\pipe\MSSQL$<instance_name>\sql\query.

SSMS如何以Named pipe方式连接sqlserver,直接在SSMS的Servername一栏填上np:servername
在这里插入图片描述

SELECT session_id, net_transport,auth_scheme,client_net_address,client_tcp_port,local_net_address,local_tcp_port FROM sys.dm_exec_connections
session_id	net_transport	auth_scheme	client_net_address	client_tcp_port	local_net_address	local_tcp_port
54	TCP	KERBEROS	172.22.136.35	55293	172.22.136.187	1433
58	Named pipe	KERBEROS	<named pipe>	NULL	NULL	NULL
63	Session	NTLM	<local machine>	NULL	NULL	NULL
64	Shared memory	NTLM	<local machine>	NULL	NULL	NULL
--net_transport值为TCP的表示是TCP连接,值为Named pipe的表示是Named pipe连接,值为Shared memory的一般是在数据库本地的连接类似mysql的socket连接且auth_scheme一般是NTLM
http://www.dtcms.com/a/75989.html

相关文章:

  • 【css酷炫效果】纯CSS实现立体旋转立方体
  • Spring Boot 整合 Nacos 注册中心终极指南
  • 嵌入式Linux——gcc和Makefile
  • C++ list类
  • 强化学习(赵世钰版)-学习笔记(8.值函数方法)
  • 定义模型生成数据表
  • Linux top 命令详解:从入门到高级用法
  • WebRTC、WebSocket、EasyRTC嵌入式音视频SDK:技术差异与应用场景详细对比
  • C++刷题(三):string
  • c++--vector
  • leecode417.太平洋大西洋水流问题
  • PyQt5 - Groove 启用高 DPI 支持,使得应用程序能够自动适应不同的屏幕分辨率
  • numpy学习笔记6:np.sin(a) 的详细解释
  • 《声音的未来:语音识别文献解读》专栏介绍及其文章解读目录
  • 微学习:提高企业培训效率的创新方式
  • 挖矿------获取以太坊测试币
  • 基于大模型的慢性鼻窦炎全周期预测与治疗方案研究报告
  • 云钥科技工业相机定制服务,助力企业实现智能智造
  • PCL 高斯函数拟合(正太分布)
  • 《TCP/IP网络编程》学习笔记 | Chapter 19:Windows 平台下线程的使用
  • 【Java项目】基于JSP的智能停车场管理系统
  • 蓝桥杯刷题 Day2 AC自动机(二次加强版)
  • linux 命令 vim
  • 若依前端框架增删改查
  • c++领域展开第十七幕——STL(vector容器的模拟实现以及迭代器失效问题)超详细!!!!
  • 三个线程按顺序交替打印 A B C
  • Power Apps 技术分享:使用控件的相对布局
  • 组态王Kingview配置为OPCUA服务器的一些问题处理
  • [快乐学坊management_1] With Cursor | Mysql设计 | 服务接口设计与开发
  • PyTorch 深度学习实战(17):Asynchronous Advantage Actor-Critic (A3C) 算法与并行训练