Visual Studio 2008 doesn't connect to SQL Server 2008 - c#

When i try to establish a connection with SQL Server 2008 i am getting:
The server version is not supported. only servers up to SQL Server 2005 are supported.
What's wrong with this? is there a patch?

Visual Studio 2008 came out in 2007, while SQL Server 2008 wasn't released until Late 2008. So although they have the same year in the names, there is a pretty big gap between them.
The current solution is to upgrade to Visual Studio 2008 Service Pack 1
SP1: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en

Related

Microsoft SQL Server vs. SQL Server Management Studio

What is the difference between Microsoft SQL Server and SQL Server Management Studio (SSMS) and how can I integrate SSMS in Visual Studio 2012 so I can use database diagrams?
Credit to marc_s:
SQL Server = database engine; SQL Server Management Studio = GUI
Administration Tool for working against the SQL Server engine
It seems like Microsoft is trying to make SSMS look like Visual Studio, but there is still no integration. Use the Entity Framework 6.0 within Visual Studio 2012 to generate those diagrams for you.
Download here: Entity Framework 6.0

Database connection error in Visual Studio 2013

I am using Visual Studio 2013 and have installed MS SQL Server 2014. I am trying to generate my database from a model (edmx) but I get the following error (screenshot attached):
In the edmx.sql file, is written:
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
I can see that 2014 version is missing from this generated file, and seems that the program tries to connect to the 2012 version .. how can I avoid this and manage visual studio tu use the 2014 version of MS SQL Server?
Thanks in advance
What Sql Server data tools are you using?
Have you tried newer version of it:
Microsoft® SQL Server Data Tools for SQL Server® 2014 CTP2

The database cannot be opened because it is version 661. This server support version 655 and earlier [duplicate]

When trying to attach a database file to:
Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64) Sep 16 2010 19:43:16 <X64> (Build 7600: )
I get this error message:
The database cannot be opened because
it is version 661. This server
supports version 662 and earlier. A
downgrade path is not supported.
Any idea why? and how to solve it?
SQL Server 2008 databases are version 655. SQL Server 2008 R2 databases are 661. You are trying to attach an 2008 R2 database (v. 661) to an 2008 instance and this is not supported. Once the database has been upgraded to an 2008 R2 version, it cannot be downgraded. You'll have to either upgrade your 2008 SP2 instance to R2, or you have to copy out the data in that database into an 2008 database (eg using the data migration wizard, or something equivalent).
The message is misleading, to say the least, it says 662 because SQL Server 2008 SP2 does support 662 as a database version, this is when 15000 partitions are enabled in the database, see Support for 15000 Partitions.docx. Enabling the support bumps the DB version to 662, disabling it moves it back to 655. But SQL Server 2008 SP2 does not support 661 (the R2 version).
To clarify, a database created under SQL Server 2008 R2 was being opened in an instance of SQL Server 2008 (the version prior to R2). The solution for me was to simply perform an upgrade installation of SQL Server 2008 R2. I can only speak for the Express edition, but it worked.
Oddly, though, the Web Platform Installer indicated that I had Express R2 installed. The better way to tell is to ask the database server itself:
SELECT ##VERSION

Opening a Visual Studio 2010 Project in Visual Studio 2008

I have an application on c# and sql client, visual studio 2010, I want to open the project on visual stdio 2008, I open new solution and add the project to him. but on run time I accept this error:
cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
The MDF database in your project is version 655, which indicates it was created on SQL Server 2008. The server you connect to only accepts version 612, which indicates is a SQL Server 2005. A database created on SQL Server 2008 cannot be downgraded to SQL Server 2005. You must make sure you develop your database for the correct target server version. Now you have to either upgrade your deployment site to SQL Server 2008, or copy all the content of your SQL Server 2008 database into a new SQL Server 2005 database.

C# sql express 2008 not showing in the list of pre-requisites in setup project

I'm creating an installer via VS setup project, and I'd like to make sure sql express 2008 is installed if it is not already installed.
I right clicked on my installer project and go to Pre-requisites but SQL Server 2008 Express is not there. 2005 is listed, but I need 2008.
I installed SQL Server 2008 Express after Visual Studio. What do I need to do to re-register with Visual Studio so it allows me to select SQL Server 2008 Express?

Categories

Resources