c# - SQL Server Database not working due to server version issue on testing machine -


my development pc has sql server 2008. have database created , running on sql server 2008. instance name of sql server 2008 sqlexpress default one. connection string like:

<add name="db1entities"       connectionstring="metadata=res://*/model1.csdl|res://*/model1.ssdl|res://*/model1.msl;provider=system.data.sqlclient;provider connection string=&quot;data source=.\sqlexpress;attachdbfilename=|datadirectory|\db1.mdf;integrated security=true;user instance=true;multipleactiveresultsets=true;app=entityframework&quot;"       providername="system.data.entityclient" /> 

working nicely on development pc. tried run on pc it's not working, instead showing error :

system.data.entityexception: underlying provider failed on open. ---> system.data.sqlclient.sqlexception: database '..\db1.mdf' cannot opened because version 655. server supports version 612 , earlier. downgrade path not supported.

first test pc has sql server 2005 (instance name: sqlexpress). due error have installed sql server 2008 (instance name: mssqlserver). have tried many solutions internet. have tried changing instance mame in connection string. still same error there. think may need swipe instance name of sql server 2005 , 2008. don't know how that.

any solution please?

according error message , this chart have mdf file version 655 (sqlserver 2008) , trying use in machine installed sql server 2005 supports till version 612.

now bad news. cannot use file version in system. there no tool can "conversion" of 2 files , sql server notoriusly know not support scenario

your options limited. can upgrade destination system latest version of sql server express , try load file in renewed system. there no problem when newest version of sql server tries read previous version (not before sql server 2005 though). possibility script current sql server database , run script on destination machine


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -