|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 26, 2012 11:46 AM
Points: 9,
Visits: 16
|
|
Hello:
I am new to this forum and would like some help with SQL Server 2008 R2 Express. I downloaded SQL with no problems, but I'm having problems loading the sample databases so SQL Server can recognize it.
Thank you for your help!
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 4:13 PM
Points: 186,
Visits: 1,583
|
|
| What did you try? Did you try to attach it, restore it?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 26, 2012 11:46 AM
Points: 9,
Visits: 16
|
|
| I downloaded the AdventureWorksR2 data file on my C-Drive Folder. Then I opened my SQL Server Express and opened a new query. From there I could not navigate to the database on my C-Drive.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 4:13 PM
Points: 186,
Visits: 1,583
|
|
| did you ever attach the database? does it show up under the Databases folder in SSMS?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 26, 2012 11:46 AM
Points: 9,
Visits: 16
|
|
| I don't know how to attach the database.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 4:13 PM
Points: 186,
Visits: 1,583
|
|
Did you unzip the database file(s)? There should be two - one is an MDF file (database file) and the other is the LDF.
Open SSMS. Right-click on Databases choose Attach Database... You should be prompted for the location of the MDF and LDF files. If they're in the same directory, it's super easy.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 26, 2012 11:46 AM
Points: 9,
Visits: 16
|
|
| I think I'm almost there. One problem though. When I right click to attach the database and select the files I get this error message. "An error occurred when attaching the database(s). Click the hyperlink in the Message column for details". I'm not sure where the message column is. I only see the hyperlink to the view connection properties.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 26, 2012 11:46 AM
Points: 9,
Visits: 16
|
|
I found the error msg. It says "Unable to open the physical file "C:\SSQL\AdventureWorksR2_Data.mdf". Operating System error 5: "5(Access is denied.)" (Microsoft SQL Server, Error: 5120).
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 4:13 PM
Points: 186,
Visits: 1,583
|
|
Without an error message, I'm afraid I can't help you. Can't diagnose what I can't see! Do it again and see if you can get an error message. Are you trying to use the 2012 version of AdventureWorks by accident? That would make 2008 throw a fit, I'm sure. If necessary, go to CodePlex and make sure you have downloaded the correct version.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, May 06, 2013 5:58 AM
Points: 535,
Visits: 1,010
|
|
Does the account that SQL was setup as have permissions to the location where you put the MDF file?
Joie Andrew "Since 1982"
|
|
|
|