We help IT Professionals succeed at work.
Get Started

Change VB.net 2010 SQL server instance name

Last Modified: 2012-08-11
Background info on computer it has SQL Server 2005, 2008, and 2012 installed. When running VB.net 2010 debug get an error trying to submit data to the SQL database.
The database 'C:\databaseloction\FIRSTDB.MDF' cannot be opened because it is version 706. This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'C:\databaseloction\FIRSTDB.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\databaseloction\FIRSTDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

In VB.net I tried going to Tools > Options > Database Tools > Data Connections and putting the SQL Server Instance Name SQL-PC
Just to double check i got the right instance name I opened SQL server management Studio and connneced to the servername SQL-PC to find the database i was working with and sure enough it was in that instance.

So why oh why is VB.net giving this error with trying to use an older version of SQL when i should be using the latest version?
Watch Question
Software Architect
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE