views:

887

answers:

5

I installed the beta 2 of Visual Studio 2010 today. I went to test out the new entity framework stuff (to see if my "issues" from v1 were fixed.).

I started adding a new connection string, but when i put in my information for sql 2000 it said "this server version is not supported. you must have Microsoft sql server 2005 or later.". Did they drop support for Sql Server 2000 in v2 of the entity framework???

A: 

Hopefully this is just for the beta since the documentation still says that 2000 is supported. http://msdn.microsoft.com/en-us/library/bb896309%28VS.100%29.aspx

You might want to submit it to connect (see FEEDBACK in Visual STudio IDE).

--added -- just want to confirm that this is happening in the EDM wizard when you are pointing to a specific database. True?

Julie Lerman

Julie Lerman
Yea, in the EDM wizard when pointing to a specific database. If i point to a sql 2005 db it works great. I'll definitely send something to connect.
Paul Lemke
+5  A: 

Submitted a support call to microsoft and they responded: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=499186&wa=wsignin1.0

Here is there response:

Thank you for posting this bug. Unfortunately, a business decision was made to no longer support SQL Server 2000 in this scenario.

So no support for sql 2000 in entity framework v2 in .net 4.0

Paul Lemke
A: 

It's not just EF that doesn't support SQL Server 2000. In Visual Studio 2010 Beta 2 the Server Explorer won't even let you add a data connection to SQL Server 2000.

Strangely, my DN Framework v1.1 code that uses SqlClient when ported to DN Framework v4 still works just fine.

I can only hope that they add MSSQL 2k support back in by the time it goes live.

Craig L
+1  A: 

What happens if you generate model with VS 2008 and then convert that project to VS2010 and change target framework to .Net 4.0?

meho
That is a valid solution. We've been doing that for a few months now. Another option is creating the EDMX from a DB in Sql 2008, then change the connection string to the Sql 2000 location. It will even work when updating "update model from database". It's jut the initial EDMX creation that doesn't work. Go figure...
Paul Lemke
+1  A: 

Actually EF 4.0 supports SQL Server 2000. It's the Database Explorer in Visual Studio 2010 that does not support SQL Server 2000. To work around this, don't use the Database Explorer. Instead just create an Empty model then overwrite the connection string in the config file with your SQL Server 2000 connection string. Then you can use Update Model From Database in the EF designer to add your objects.

james