SQL Server 专用管理员连接(Dedicated Admin Connection(DAC))

SQL Server专用管理员连接(Dedicated Admin Connection(DAC))

 

只有 SQL Server sysadmin 角色的成员可以使用 DAC 连接。默认情况下,只能从服务器上运行的客户端建立连接。

 

打开SSMS,然后选择[文件]菜单,下拉菜单选择“新建”、“数据库引擎查询”。


然后输入:输入“admin:.”,点击“连接”。


_____________________________________________________________________________________________

默认不允许使用网络连接DAC,需要通过sp_configure配置“remote admin connections”选项。

 先来看看配置的默认值:SELECT * FROM sys.configurations where name = 'remote admin connections'
或者 sp_configure 'remote admin connections'

Value默认为0,指明仅允许本地连接使用 DAC。Maximum为1,表明只运行一个远程管理连接。

--启用远程DAC连接--
sp_configure 'remote admin connections', 1;
GO

RECONFIGURE;

GO

输出结果:


然后开启SQL Server Browser服务,防火墙允许TCP 1434端口的访问。

我们通过另一台服务器上的SSMS建立DAC查询连接,然后选择[文件]菜单,下拉菜单选择“新建”、“数据库引擎查询”

DAC在SSMS连接时,只能通过建立查询窗口的方式打开。当SQL Server因系统资源不足,或其它异常导致无法建立数据库连接时, 可以使用系统预留的DAC连接到数据库,进行一些问题诊断和故障排除。DAC只能使用有限的资源。请勿使用DAC运行需要消耗大量资源的查询,否则可能发生严重的阻塞。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
What This Book Covers As much as we would like to have included everything that any database administrator might need for any given circumstance, there just isn’t enough time or paper to cover it all. We have made every attempt to cover the main areas of SQL Server 2008 Administration. Inside this book, you will find detailed information about how to maintain and manage your SQL Server 2008 installation. Most of the day-to-day tasks of the DBA are described within the pages of this book. Installation, configuration, backups, restores, security, availability, performance monitoring, and the tools to manage these areas are all covered. Our intent, our goal, and our sincere desire are to provide you with the information necessary to be a competent and successful database administrator. With this edition, we were also able to add additional material that was not covered in the first edition. This includes new chapters on SQL Server Analysis Services and SQL Server Reporting Services, the two key offerings in the Microsoft SQL Server BI stack. There is also a new chapter on optimizing SQL Server 2008 that beginners and experienced DBAs alike will find useful. How This Book Is Structured When putting this book together, wemade a conscious effort to cover thematerial in a logical and sequential order: ❑ The first four chapters (Chapters 1–4) cover the overall structure of SQL Server 2008, as well as the installation process. ❑ Once that foundation is laid, we moved on to the administration process of building and securing databases in the next two chapters (Chapters 5 and 6). ❑ This is followed by seven chapters (Chapters 7–13) on specific administrative tasks and high-availability solutions. ❑ The last six chapters (Chapters 14–19) are dedicated to introducing you to the SQL Server 2008 services, and features including the Common Language Runtime (CLR), SQL Server’s Business Intelligence offerings, and the Service Broker. As mentioned, we tried to follow a logical order in the structure of this book, but like most technical books, it is not absolutely essential to read it in any particular order. However, if you are fairly new to SQL Server, you may want to read through Chapter 1 first to get an overall picture of the product before diving in to the remaining chapters.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值