Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am using Visual-Studio2012, whenever i am trying to add a .mdf file of sql server 2012 (copied from C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA) to the appdata folder of my website it is showing
the following error

SQL
This database file is not compatible with the current instance of SQL Server.

To resolve this issue, you must upgrade the database file by creating a new data connection, or you must modify the existing connection to this database file.

plz help......
Posted
Updated 7-Jun-17 20:53pm

simplest way:

go to VisualStadio 2012
In Server Explorer Windows
open Data Connections
Right click on ASPNETDB.MDF
click on Modify Connection...
a new windows open for you ... you just click OK
if other windows open for you click Yes
FINISH ( be Happy ) :D
 
Share this answer
 
Comments
Richard Deeming 8-Jun-17 12:36pm    
Only your second post on CodeProject, and once again you have resurrected an already-answered question from FOUR YEARS AGO!

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