惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
Help Net Security
Help Net Security
月光博客
月光博客
N
News and Events Feed by Topic
Cloudbric
Cloudbric
博客园 - 司徒正美
L
LangChain Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tenable Blog
The Register - Security
The Register - Security
The Hacker News
The Hacker News
I
InfoQ
The Last Watchdog
The Last Watchdog
MyScale Blog
MyScale Blog
Schneier on Security
Schneier on Security
WordPress大学
WordPress大学
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
K
Kaspersky official blog
L
LINUX DO - 热门话题
N
News | PayPal Newsroom
F
Fortinet All Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security @ Cisco Blogs
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
Google Online Security Blog
Google Online Security Blog
S
Schneier on Security
C
Cisco Blogs
N
News and Events Feed by Topic
V2EX - 技术
V2EX - 技术
Latest news
Latest news
PCI Perspectives
PCI Perspectives
T
The Blog of Author Tim Ferriss
P
Palo Alto Networks Blog
T
Tor Project blog
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Webroot Blog
Webroot Blog
Attack and Defense Labs
Attack and Defense Labs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org

博客园 - 含羞草

Jenkins的pipeline脚本中获取git代码变更用户名和email CentOS7安装配置SonarQube CentOS安装Harbor Gitlab自动触发Jenkins构建项目 CentOS7安装Jenkins Master 解决win7下打开Excel2007,报“向程序发送命令时出现问题”的错误 转:老调重弹:const char*, char const* and char *const WebService:System.InvalidOperationException: 无法生成临时类 PowerBuilder:表中字段的数据长度的修改对数据窗口的影响 转:使用SET NOCOUNT优化存储过程 四遥量 VS.NET开发环境的WIN FORM中怎样加入ActiveX控件 C# Winform程序如何获取运行路径 转:类型"string"的值无法转换为"System.Drawing.Color" - 含羞草 - 博客园 转: Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About (一些简单的、你可能已经知道或者不知道的ASP.NET 2.0技巧) Asp.net : 访问嵌套模版页中的控件 SQL Server 2005 : 服务器不允许远程客户端登录的解决办法 SQL Server 2005 : 清空数据库日志 安装删除服务
转:如何使用SQL Server 2005 专用管理员连接(DAC)登录到服务器
含羞草 · 2007-12-29 · via 博客园 - 含羞草

http://www.cnblogs.com/huqingyu/archive/2007/12/17/1000069.html
http://www.windbi.com/showtopic-819.aspx

================

 什么是DAC

   SQL Server 2005 为管理员提供了一种特殊的诊断连接,以供在无法与服务器建立标准连接时使用。即使在 SQL Server 不响应标准连接请求时,管理员也可以使用这种连接访问 SQL Server,以便执行诊断查询并解决问题。命令行界面 (sqlcmd) 通过使用特殊的管理员开关 (-A),提供并支持这种专用管理员连接 (DAC)

如何使用DAC登录到服务器

1 本机DAC登录 

命令行方式下执行  sqlcmd -A -S sql服务器名

远程DAC登录

  1) 打开远程DAC选项

    '程序'->'Sql Server2005'->  '配置工具'-> 'Sql Server  外围应用配置器'-> '功能的外围应用配置器'-> 'DataBase Engine'->  'DAC' -> '启用远程DAC'

  2)  登录到远程服务器

  sqlcmd -A -S 192.168.0.1 -U sa -P 123456

登录后, 可以通过查询动态管理视图来诊断问题
三用程序使用DAC连接
Provider=SQLNCLI.1;Password=password;Persist Security Info=True;User ID=sa;Initial Catalog=Database;Data Source=admin:HostName