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 o
I could solve the error. Repair the SQL Server.
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.