Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have a problem in doing my database connectivity,
in windows form when i add a new service based database by clicking new item it gives me error. i will state that is
"connection to sql server database files .mdf, require sql server 2005 express or sql server 2008 express tobe installed and running on the local computer"
plz guyz i want to made my project but because of this error i cant proceed.
i have installed a database named sql server 2012 express local db
but its not working.i have just installed that and nothing done with that new db 2012 express
can anyone helpme out of it
thanks in advance
Posted
Comments
[no name] 6-Aug-12 14:22pm    
So the message tells you that you have to install SQL Server 2005 or 2008 and you go and install SQL Server 2012?
Sandeep Mewara 6-Aug-12 14:33pm    
Comment from OP:
yes its tells me that by going on that link i have installed the newest database sql server 2010 but after that the error is not going. I cant create a new database connection because of that error
shaikh-adil 6-Aug-12 14:27pm    
yes
its tells me that by going on that link i have installed the newest database sql server 2010 but after that the error is not going.
I cant create a new database connection because of that error
Sergey Alexandrovich Kryukov 6-Aug-12 14:31pm    
And what prevents you from installing it?
--SA
ZurdoDev 6-Aug-12 14:31pm    
Are you trying to connect to a database file (mdf) or to a SQL instance?

Did you follw these steps:
http://msdn.microsoft.com/en-us/library/hh500335%28v=vs.103%29.aspx[^]

Looks like you might be missing a service pack on you Visual Studio package...

I currnely have VS 2010 and SQL 2012 without any problems, so...
 
Share this answer
 
Comments
shaikh-adil 6-Aug-12 20:13pm    
yup after installation my package fails to isntall sql management package.
So how to install this package seperately?
You can not simply attach and run a database file (.mdf) to a different engine than the one that created it. There might be several differences between them. You can use the backup-restore method[^], or you will probably need to upgrade the database: http://msdn.microsoft.com/en-us/library/ms189625.aspx[^]. Read also this: http://www.mssqltips.com/sqlservertip/1436/upgrading-sql-server-databases-and-changing-compatibility-levels/[^]
 
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