SQL Server 2012 错误:未将对象引用设置为对象的实例 [英] SQL Server 2012 error: object reference not set to an instance of an object

查看:244
本文介绍了SQL Server 2012 错误:未将对象引用设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SQL Server 2012 并且上面有一些数据库.问题是我突然收到一条错误消息,

I use SQL Server 2012 and I have some databases on it. The problem is I suddenly get an error saying,

未将对象引用设置为对象的实例

object reference not set to an instance of an object

我在以下情况下收到此错误:

I get this error when:

  • 准备写一个新的查询
  • 右击表名选择之前输入的数据 ->选择前 1000 行

在没有收到错误消息的情况下我可以做什么:

What I can do without getting error message:

  • 使用 Windows 身份验证模式和 SQL 身份验证模式成功登录到我的实例.
  • 通过右键单击表名来编辑表数据 -> 编辑前 200 行
  • 创建一个新的数据库

我正在使用:

  • Microsoft SQL Server 管理工作室:11.0.3128.0
  • 微软 .NET 框架:4.0.30319.34014
  • 操作系统:Windows 8.1

这是错误的一些快照.

请给我一个解决此问题的解决方案.非常感谢您的帮助.

Please give me a solution to fix this problem. Your help will be highly appreciated.

推荐答案

我可以解决错误.修复 SQL Server.

I could solve the error. Repair the SQL Server.

转到添加/删除程序 Microsoft SQL Server 2012(x64) -> Uninstall/Change -> Repair代码>.在此处选择您要修复的实例.

Go to Add/remove programs Microsoft SQL Server 2012(x64) -> Uninstall/Change -> Repair. Select the instance that you want to repair here.

对我来说,修复实例后,错误解决了.

For me, after repairing the instance, the error was solved.

感谢所有花费宝贵时间回答我的问题的人.

Thanks for all who spent their valuable time to reply my question.

这篇关于SQL Server 2012 错误:未将对象引用设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆