SQL server 2012. Exception: attempted to read or write protected memory (MS.VS.OLE.Interop)

前端 未结 4 681
迷失自我
迷失自我 2021-02-11 12:39

I am more an end-user of SQL Server 2012. When I right click on a table name and select \"Edit top 200 rows\" menu item. I get this message:

 Exception has been          


        
相关标签:
4条回答
  • 2021-02-11 13:00

    Are you attempting to edit a SQL 2014 database with the 2012 version (or earlier) of SQL Management Studio?

    You can determine the SQL version of your database by running this query against your master database:

    SELECT @@VERSION
    

    I had the same problem and I was able to direct edit tables ('Edit Top 200') by installing and using SQL Server Management Studio 2014. Even if both your DB and Management Studio are version 2012, it might not hurt to upgrade Management Studio.

    0 讨论(0)
  • 2021-02-11 13:04

    I have found a solution which does not require restart. Go to:

    C:\Users\<User Name>\AppData\Local\Temp 
    

    and delete all the files. Before deleting, close the SSMS window.

    0 讨论(0)
  • 2021-02-11 13:07

    If anyone experiences the same issue in MS SQL SERVER from a different scenario ( eg - creating new database diagram )

    And if this happened after fully uninstalling MS VISUAL STUDIO

    Follow the Steps Below;

    1. Delete Folders MSDesigners8 and Visual Database Tools from the paths below.
    • C:\Program Files (x86)\Common Files\Microsoft Shared\MSDesigners8

    • C:\Program Files (x86)\Common Files\Microsoft Shared\Visual Database Tools

    1. Reinstall Visual Studio and Run Repair Tools from the Visual Studio Installer.

    This Will Regenerate the folders we removed above and will repair partial fragments.

    Now your SQL SERVER Database Diagrams should be working fine. Cheers :)

    0 讨论(0)
  • 2021-02-11 13:15

    I have also faced the same issue. And I noticed one thing that if you are using SQL database newer then the SQL management studio version, You will received that message. To overcome this issue just install SQL management studio equal or greater then version of database. i.e if you have SQL 2012 then you need to install SQL management studio 2012 or 2014.

    0 讨论(0)
提交回复
热议问题