locked
AdventureWorks2012 doesn't appear in Databases RRS feed

  • Question

  • Hey all,

    I'm super new to SQL server and trying to use AdventureWorks2012.  The install is successful, AdventureWords2012 appears in the "Local Server Groups" and test is successful.  However, it never appears under the Database folder in "Object Explorer" and I get errors when I try to "attach" it to that database.  Is there a particular folder I need to copy it into when I download?  Or possibly, is there something else I should be downloading with AdventureWorks 2012 so that I can attach it? 

    Thanks!

    Thursday, February 25, 2016 4:10 AM

Answers

All replies

  • Hey all,

    I'm super new to SQL server and trying to use AdventureWorks2012.  The install is successful, AdventureWords2012 appears in the "Local Server Groups" and test is successful.  However, it never appears under the Database folder in "Object Explorer" and I get errors when I try to "attach" it to that database.  Is there a particular folder I need to copy it into when I download?  Or possibly, is there something else I should be downloading with AdventureWorks 2012 so that I can attach it? 

    You are doing something wrong. You created a database instance named Adventureworks2012 and you can view it via Local Server group but this does not means you have created Adventureworks database. To do it you have to download the from Codeplex website

    You can attach database file or restore the backup as you like it


    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

    My Wiki Articles

    MVP

    Thursday, February 25, 2016 5:25 AM
  • My apologies, my question was not quite right.  I guess what I really needed was to fix the error on attaching/restoring.  It seemed the AdventureWorks file installed correctly but when I try to attach, I get the following error:

    Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf" failed with the operating system error 3(The system cannot find the path specified.). (Microsoft SQL Server, Error: 5133)

    I am not sure why the file path has MSSQL11.* rather than MSSQL12.*    I tried just changing the file name to match and that didn't work.  Not sure what to do next.

    Friday, February 26, 2016 4:56 AM
  • My apologies, my question was not quite right.  I guess what I really needed was to fix the error on attaching/restoring.  It seemed the AdventureWorks file installed correctly but when I try to attach, I get the following error:

    Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf" failed with the operating system error 3(The system cannot find the path specified.). (Microsoft SQL Server, Error: 5133)

    I am not sure why the file path has MSSQL11.* rather than MSSQL12.*    I tried just changing the file name to match and that didn't work.  Not sure what to do next.

    When you attach the database you have to provide location of new mdf file if you give it worngr dont give it it would look for old location.

    It is also possible that you are giving wrong location. Does below location exists

    C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf

    MSSQL11 means 2012 database


    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

    My Wiki Articles

    MVP

    Friday, February 26, 2016 5:13 AM
  • Yes, it exists only because I renamed the MSSQL12.* folder as MSSQL11.*
    Saturday, February 27, 2016 12:42 AM
  • It worked when I downloaded the zip file instead of the data file.  Does anyone know why that might be?
    Saturday, February 27, 2016 2:08 AM
  • It worked when I downloaded the zip file instead of the data file.  Does anyone know why that might be?

    First, dont rename any folder created by installation that might lead to inconsistencies. I suppose you must be doing some mistake and I am glad now the issue is resolved and you yourself resolved it :)

    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

    My Wiki Articles

    MVP


    Saturday, February 27, 2016 5:16 AM
  • Hi sobrio32,

    Glad to hear that the issue is resolved. You can mark helpful replies as answer to close this thread, that way, other community members could benefit from your solution.

    Thanks,
    Lydia Zhang

    Lydia Zhang
    TechNet Community Support


    Tuesday, March 1, 2016 1:51 AM
  • If I'm not supposed to rename folders, how do I change what folder path it is looking for?
    Wednesday, March 2, 2016 4:09 AM