Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

Tried to connect to the database I got the following error Sorry cant paste my screen shot. So I will type exactly what is the error message the message is as follows.



The database myweb.mdf cannot be opened because the version is 661. The server version is 662 or earlier. the downgrade is not supported by c/user/mydocuments/visual studio 2010/app-data/myweb.mdf create data is aborted. An attempt to an auto database for file
c/user/mydocuments/visual studio 2010/app-data/myweb.mdf failed. A database with the same file exist or it cant be opened or located in the UNC Share.
Pl. help me. Dont know how to used sql server to open the database.


I am using Visual studio 2010 and I downloaded micorsoft sql server 2008 R2 express version from the web.
Posted
Updated 9-May-11 6:46am
v3
Comments
R. Giskard Reventlov 9-May-11 13:24pm    
How did you create it in the first place?

db versions don't match on your local machine and the deployment machine. Try to generate a script of the database and then create the database from it on server. Hope it helps in solving your problem.
 
Share this answer
 
Comments
Wonde Tadesse 9-May-11 22:25pm    
Yap.Best solution would be generating a script.My 5 :)
Mary Abraham 10-May-11 9:24am    
I accepted the second solution. I dont no how to generate a script.
Wonde Tadesse 11-May-11 20:12pm    
Here is how you do it.
Right Click on myweb Select Tasks > Select Generate Script. and finally follow the wizard.
The reason this is a problem is detailed in this[^] post (search for the answer by Remus Rusanu). Thanks for posting this question because I learned something new and interesting today.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900