Error adding database to a mvc3 application - sql-server-2008

I found this error when I was adding my database to visual studio 2010 for making a MVC3 application. I am using SQL Server 2008.
The database 'C:\USERS\KAPIL.AGRAWAL\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\DT\DT\APP_DATA\DTRIAL.MDF'
cannot be opened because it is **version 661**.
This **server supports version 655** and earlier. A downgrade path is not supported.
**Could not open new database** 'C:\USERS\KAPIL.AGRAWAL\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\DT\DT\APP_DATA\DTRIAL.MDF'.
CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file c:\users\kapil.agrawal\documents\visual studio 2010\Projects\dt\dt\App_Data\dtrial.mdf failed.
A database with the same name exists, or specified file cannot be opened,
or it is located on UNC share.

It seems that the database was created with SQL Server 2008 R2 (version 611) and you are trying to open it with SQL Server 2008 RTM or SP1 (version 655). You cannot backup/restore or detach/attach from a higher version to a lower version. You could upgrade your local database server to SQL 2008 R2. See this article for more information.

Related

Failed to open a connection to the database

I have used Visual Studio 2008 for crystal report development and try to connect SQL database (SQL server 2008-R2) in .xsd file, but I have failed. I have also try to fixed issue by installing service pack of visual studio 2008, but still issue is not resolve.
https://www.microsoft.com/en-us/download/details.aspx?id=10986
Error Message:
Microsoft Visual Studio
Failed to open a connection to the database
This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported.
Please give your suggestion
Thank You in advance

SQL Server 2008 service not running

I updated my Windows 7 to SP1 for the purpose to install Visual Studio 2013. I am successfully done my job to install Visual Studio 2013. But the problem arises when I try to install SQL Server 2008 or 2008 R2 Management Studio.
The SQL Server service is not running in services.msc and the SQL Server Browser service is not even listed in SQL Server Configuration Manager.
Please help me because I have install SQL Server 2008 Management Studio several times and update it also to SQL Server SP1 but still not running SQL Server service in services.msc.
Due to this I cannot connect my database engine.
Providing I also enter the correct instance name several times by following the link
Cannot register default instance MSSQLSERVER in SQL Server 2008

Connection failure with SQL Server 2014

I'm already using Visual Studio 2008 and SQL Server 2008 and now I want to upgrade to SQL Server 2014. But there is an error
This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported
But connect via coding I got the data but not viewing table data in Server Explorer.
You cannot access correctly the Server Explorer using a lower version SSMS on a newer version of SQL Server (if that is what you mean).

unable to view list of table on server explorer (visual studio 2015)

I am really new on visual studio. I am using visual studio 2015 and only installed microsoft sql server 2008 pack 1.
So the problem goes like this, when I created a database.mdf and add new table it seems like something was not right there because after I created table, I cannot view list of the table (when I expanded the table folder) through server explorer. then noticed that inside my microsoft sql server 2008 pack 1 file, there was no SQL Server Database File. Only configuration tools.
Someone please tell me, what should I do? Am I need to re-install it or update it to the latest? or is there anything else I should install?
You can not see mdf file in sqlserver side. The mdf file and table in used sqlexpress and accessible in visual studio too(sqlexpress was inbuilt installed with visual studio)
Eigher you can see in visual studio's server explorer (Ctrl + alt + s) or if you want in sqlserver, you open SSMS and connect sqlexpres as "yourpcname/sqlexpress"
How to connect to local instance of SQL Server 2008 Express
cannot connect to pc-name\SQLEXPRESS
https://msdn.microsoft.com/en-us/library/sxds9ett%28v=vs.90%29.aspx
To use this database and table use this connection string in web.config as
How do I connect to an .mdf (Microsoft SQL Server Database File) in a simple web project?
https://learningsqlserver.wordpress.com/2011/02/13/how-can-i-open-mdf-and-ldf-files-in-sql-server-attach-tutorial-troublshooting/

Visual Studio 2013 could not load file or assembly Microsoft.SqlServer.Managment.Sdk.Sfc Version 11.0.0.0

I'm trying to set up a dataconnection with SQL Server 2008 R2 SP3. My OS is Windows 8 x64 and i'm using Visual Studio 2013 (Express). The error message look like this:
Ofcourse I searched for a solution for this error. Thing's I have tried: update from SQL Server 2008 R2 SP2 to SP3. And I found out that installing these two files can solve the error:
\x64\SharedManagementObjects.msi and x64\SQLSysClrTypes.msi
So I installed these two files for SQL Server 2008 , but it gives the same error. How can I fix this error?
EDIT: I fixed my problem by installing the SQL Server 2012 CLR Types file and the SQL Server 2012 Shared Managements Object file.