Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Installing sample databases

Author  Topic 

ConnieXujuan
Starting Member

48 Posts

Posted - 2012-05-28 : 02:28:16
Hey folks,

As I was trying to install the sample databases for sql server 2008 I downloaded the datafile 'AdventureWorks2008R2_Data' from codeplex.com. However, when I was double clicking the file trying to instiall it an 'Caution' message as below:

You are attempting to open a file of type 'SQL Server Dtaabase Primary Data File (.mdf)
These files are used by the operating system and by various programs. Editing or modifying them could damage your system.
If you still want to open the file, click Open with. Otherwise, click Cancel.

I was just wondering did I download the correct file? or there's something else I missed?

Thanks a lot!!

Connie

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-28 : 02:45:38
you downloaded the correct file
But you've to attach it to server first rather than clicking and opening.

See here to understand how to attach a mdf file

http://msdn.microsoft.com/en-us/library/ms190209.aspx



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ConnieXujuan
Starting Member

48 Posts

Posted - 2012-05-28 : 23:58:58
THanks a lot!

Do I need to download the log files too? cause when I was trying to attach the file it gave me an error message showing that the log file is not found.

Connie :)
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-05-29 : 00:08:35
yes. you should download the log file also


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -