千家信息网

SQL Server Agent 启动后自动停止,ODBC驱动丢失

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,环境:2台SQL Server 2012 Always ON服务现象:Always ON服务正常,同步正常,应用正常。Second Server Server Agent 启动数秒后就自动停止。处理过
千家信息网最后更新 2026年11月02日SQL Server Agent 启动后自动停止,ODBC驱动丢失

环境:
2台SQL Server 2012 Always ON服务

现象:
Always ON服务正常,同步正常,应用正常。

Second Server Server Agent 启动数秒后就自动停止。

处理过程:
1、查看Windows 系统日志,显示如下信息:

2、在SQL Studio 中查看当前Error Log

Date,Source,Severity,Message
09/25/2018 13:54:07,,Information,[098] SQLServerAgent terminated (normally)
09/25/2018 13:54:07,,Error,[382] Logon to server 'domain\SQLInstance' failed (DisableAgentXPs)
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0 Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0 Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0 Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0 Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0 Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[000] Unable to connect to server 'domain\SQLInstance'; SQLServerAgent cannot start
09/25/2018 13:54:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:53:37,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:53:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:37,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:07,,Information,[495] The SQL Server Agent startup service account is domain\dbadmin.
09/25/2018 13:52:07,,Information,[100] Microsoft SQLServerAgent version 11.0.3000.0 (X64 unicode retail build) : Process ID 1008


3、结合以上错误,似乎都指向ODBC,打开ODBC,发现ODBC 64bit 中Driver为空

正常是应该有SQL Server和 SQL Native Client 11这两个驱动的。


4、在SQL Server 2012 安装包中找到sqlncli.msi 重新安装SQL Native Client 11(注意选择重装,而不是修复)。


5、再次在ODBC中查看,SQL Native Client 11已经有了。


6、重启SQL Agent ,观察几分钟后没有再出现自动停止的现象,问题解决。


后面有看到一篇介绍ODBC驱动丢失的文章:http://www.cnblogs.com/chinalantian/archive/2016/06/13/5581644.html

了解到可能是卸载某些软件的时候会把ODBC中的部分驱动也删除,咨询客户表示近期有删除一些软件。

特此记录!


驱动 现象 软件 服务 两个 信息 再次 客户 指向 文章 日志 时候 环境 系统 过程 部分 错误 问题 同步 咨询 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 互联网络科技 互联网是第几次科技革命的成果 科技互联网产品 科技创新与互联网经济 互联网最新的科技 互联网科技有限公司经营范围 互联网是不是新科技 中国互联网科技发展 安徽鑫晟辉互联网科技 互联网系的金融科技公司 互联网校园科技培训 知域互联网科技有限公司大骗子 消费医药和互联网科技 卓翼科技产业互联网合作 宁波跨境商互联网科技有限公司 互联网时代科技型公司的机会 同城互联网络科技 现代科技的标志之一的互联网 互联网科技企业文化 互联网科技快速发展优美句子 广州优美互联网科技 江阴互联网智能科技产品进口 成都互联网科技公司工作好不好 洛阳昕诺飞互联网科技有限公司 消费医药和互联网科技 互联网科技如何创业 上海钢联属于互联网科技股吗 广东工业互联网大赛深圳学泰科技 互联网营销推广黑科技 信承诺互联网科技有限公司
0