Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « SSIS Test yourself with these interview questionsMy Favorite PowerShell Script: Reading Log Files »
    comments

    SQL Server Management Studio and SQL Server Tools alike can become unusable when other installations, multiple installations or even strange operating system level problems occur that remove critical supporting assemblies.  When these assemblies either become corrupted or missing, the fix it rather simple in most cases with a simple copy/paste of the assembly in error from the shared directories that were installed initially.

    Note: This is step 1 in attempting to fix this type of management tools error.  Step 2 and a stable solution is to run a repair on the management tools as well as updating and installing to the latest service pack or related cumulative update.  Never, and I mean never, perform this on a production SQL Server during normal operating hours.  SSMS and other management tools are typically not required to successfully run the SQL Server Engine.  This means the data will still be available to end users.  Plan you time carefully and always, and I mean always, have a recovery strategy.  Backup databases, Operating System level files, SQL Server directories and all security on the servers.  Always assume the worst can happen and the recovery will always be less painful.

    Specifically for this blog, the following error was presented while working in SQL Server Management Studio 2008 R2.  The installation was in the order as follows.

    1. SQL Server Engine and Tools 2008 R2 and Service Packs Installed
    2. Visual Studio 2010 and Service Packs installed.
    3. Windows 7 updates were run and installed
    4. Windows was rebooted
    5. SQL Server Engine tests passed
    6. SSMS normal operations passed
    7. SSMS dialog and wizard functions failed with the following error

    Essentially, this error came up every time properties were selected for any object in the tree in Object Explorer.  This included operations such as backup, restore, login, database user configurations as on.  Remember, those are all simply wizards and configuration windows executing T-SQL statements in the background.  So the Engine is still completely operational but the efficiency of performing tasks slowed greatly.  This requires a fix.  A planned fix!

    Note: Some assemblies may be gone completely for some specific reason.  The reasoning is not important but resolving and finding them to place them in the needed locations is.  When all else fails, extracting the media to a folder is extremely useful.  Extracting media from packaged executables is the same across Microsoft products.  Use /x: followed by a full path to the folder to extract the contents to.  This dates back to slip streaming service packs to Operation System installations using the –x: switch.    For example, to do this with the SQL Server Express with Advanced Tools executable, run the following in command prompt.

    C:\Users\tkrueger\Downloads\SQLEXPRWT_x86_ENU.exe /x:C:\SQLExpressWTMedia

    After that operation is complete, you would then find the same DLL that we need to resolve the specific error discussed initially in this article at, C:\SQLExpressWTMedia\x86.  Remember to ensure your versions match the installation you are trying to fix.

    To fix the exact assembly error on hand, and many other assembly errors related to SSMS, you can turn to the 100\shared folder.  This folder will have, hopefully, all the assemblies SQL Server Management Studio needs as well as many other Tools dependencies.  The assembly can be copied to the IDE folder that the shell uses in the background then.

    Open C:\Program Files\Microsoft SQL Server\100\Shared

    For this specific assembly, copy Microsoft.SqlServer.Sqm.dll.  Note: Only copy, not cut.  The files are required to remain in the shared folder for other dependencies and future upgrade/installations.

    Open C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE

    Paste the Microsoft.SqlServer.Sqm.dll into this folder.

    Make sure you close SSMS and open it again to reload the assembly correctly.  Check to ensure the problem has been resolved.  In this case, this did fix the problem and I hope it helps you if you are receiving the same error.

    About the Author

    Ted Krueger is a SQL Server MVP and has been working in development and database administration for 13+ years. Specialties range from High Availability and Disaster / Recovery setup and testing methods down to custom assembly development for SQL Server Reporting Services. Ted blogs and is also one of the founders of LessThanDot.com technology community. Some of the articles focused on are Backup / Recovery, Security, SSIS and working on SQL Server and using all of the SQL Server features available to create stable and scalable database services. @onpnt
    Social SitingsTwitterLinkedInLTD RSS Feed
    613 views
    Instapaper

    No feedback yet

    Leave a comment


    Your email address will not be revealed on this site.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)