Change 2010 SQL server instance name

Posted on 2012-08-10
Last Modified: 2012-08-11
Background info on computer it has SQL Server 2005, 2008, and 2012 installed. When running 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 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 giving this error with trying to use an older version of SQL when i should be using the latest version?
Question by:easyworks
    LVL 75

    Expert Comment

    by:Anthony Perkins
    Simply put, your server is SQL Server 2008 and you cannot attach a database from SQL Server 2012.  In order to attach this database you will need to upgrade to SQL Server 2012.
    LVL 21

    Accepted Solution

    My guess is that the dialog you're referring to specifies what SQL Server the IDE uses to connect to SQL Server. That isn't the same as what the application uses to connect to SQL Server.

    Somewhere in your code or a config file there must be a connection string that your application uses to establish a connection. That's what you need to change. Basically, I think you're looking in the wrong place.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now