Not able to add SQL Server Compact 4.0 table to dataset
Posted on 2011-10-01
I have a vb.net project in Visual Studio 2010 SP1 that uses SQL server compact 4.0 database. I recently upgraded the database from SQL server compact 3.5 to version 4.0. I changed the target framework to 4.0 in the project properties. Now when I try to drag a table from the database in Server Explorer to the dataset I get the following error:
"The version of Microsoft SQL Server Compact database that you selected is not supported by the current project. The database and the connection will not be added to the project.".
Other than this the project builds okay and I can run it, but I can't add a table to the dataset.
Also, if I try to add a new Datasource SQL Server Compact 4.0 is not an option in the Data Source list, and in the Data Provider dropdown box the only option is ">NET Framework Data Provider for Microsoft SQL SErver Compact 3.5". There is no option for version 4.0.
Any help would be very much appreciated. Thanks!