random thoughts on science and tech... yeah, it used to be about electronic lab notebooks but that was a decade ago

What the!? “mouse Drag Operation Failed. Could not retrieve schema information”


This took me half a day to fix! So I’m posting it in the hopes that at least one person will find this (and not the countless other useless posts) and be saved from an ever so stupid little glitch that needs a little bit better error message!

I’ll tell you the fix, right up front.

The majority of the fix was found here http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/12f89689-c9eb-41cf-a598-a01399fc75a9.

Unfortunately it wasn’t quite enough. But yes, the SQL Server 2012 Feature Pack and Microsoft® System CLR Types for Microsoft® SQL Server® 2012 were needed.

My problem, I had SQL Server 2012 for awhile, that wasn’t working right and wasn’t compatible with some stuff at work, so I uninstalled and installed 2008. I don’t where, but somewhere it’s telling Visual Studio to look for Microsoft.SqlServer.Types dll version, which I no longer had. And when I got it from the above link, it still didn’t want it, it wanted it somewhere else apparently. The poor error messages didn’t allow me to even know that was the problem (but we’ll let that go now).

I had to uninstall every little vestige of Server 2012, and then install the CLR Types above… I’m not too sure at what point things were fixed. However, I find it incredibly strange and distressing that the missing/misplaced/wrong version dll for Server 2012 was preventing Visual Studio from getting schema information for Server 2008 AND for local .sdf SQL Server compact edition files!? AND every other database I connected.

All the databases connected fine, and the tables and their fields could all be seen (their schema’s could even be compared, so I’m pretty sure something, somewhere WAS able to retrieve schema information). It was only when trying to create the data set xsd file that it couldn’t seem to read the schema, and then when dragging from the server explorer to the designer. In the latter case it would give the informationless error message “mouse drag operation failed…” – come on, at least tell me a missing file or dependency or something.

1 Comment

  1. May 29, 2012    

    Geesh, MIcrosoft needs to do a better job at cleaning up after itself in the registry and elsewhere. Installing (and uninstalling) different SQL Server versions has left an unknown mess that has caused so many problems! The above, finally got rid of the Visual Studio problem. But, cut to days later when using SQL Srever Management Studio – when I connect to a database I get:

    The type initializer for ‘Microsoft.SqlServer.Management.Dmf.PolicyStore’ threw an exception. (Microsoft.SqlServer.Dmf)


    Could not load file or assembly ‘Microsoft.SqlServer.Diagnostics.STrace, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91? or one of its dependencies. The system cannot find the file specified. (Microsoft.SqlServer.Dmf)


    Anyway, found here http://pramodte.wordpress.com/2011/09/30/the-type-initializer-for-microsoft-sqlserver-management-dmf-policystore-threw-an-exception-microsoft-sqlserver-dmf/.

    Simply install SharedManagementObjects.msi (X86) from Microsoft, you can download the file from the below link.
    (note: this is a different, newer version of the SharedManagementObjects.msi I installed before?)

    Fixed, but who knows why. I have an uneasy feeling about all this. Probably should do a fresh OS and SQL/VS install – but that just shouldn’t be necessary! Oh well, I’ll wait until the next crazy error.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>