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:
What I can do without getting error message:
I'm using:
Here are some snapshots of the error.
Please give me a solution to fix this problem. Your help will be highly appreciated.
To fix "Object reference not set to an instance of an object," you should try running Microsoft Visual Studio as an administrator. You can also try resetting the user data associated with your account or updating Microsoft Visual Studio to the latest version.
I fixed the problem by running SSMS as administrator.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With