The Wrecking Bawl
Destructuring query language, one keyword at a time.
Site Sections
Home
Contact
Syndication
Login
Posts
119
Comments
112
Trackbacks
22
<< sharepoint 2007 (moss) system account
|
Home
|
workspaces in sql mgmt studio >>
attaching adventureworks2008 on full version of sql server
For anybody that bought the
SQL Server 2008 Self-Paced Training book for 70-433
, if you are running a full version of SQL Server 2008 rather than the express edition, you will have problems attaching the AdventureWorks2008 database (file activation error). The trick is to use a SQL command, like so:
USE [master]
GO
CREATE DATABASE [AdventureWorks2008] ON
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\AdventureWorks2008_Data.mdf' ),
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\AdventureWorks2008_Log.ldf' ),
FILEGROUP Documents CONTAINS FILESTREAM (NAME = Documents, FILENAME=N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\Documents')
FOR ATTACH
GO
posted on Tuesday, June 09, 2009 12:39 PM
Print
Comments
#
70-433 book PDF?
Jorge Pedraza
6/9/2009 5:31 PM
hi dear.
please can provide the pdf book.
can help me?
greetings
#
re: attaching adventureworks2008 on full version of sql server
Mt
8/18/2009 12:21 AM
not working, "Msg 5133, Level 16, State 1, Line 1
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\AdventureWorks2008_Data.mdf" failed with the operating system error 3(failed to retrieve text for this error. Reason: 1815)."
What's the problem?
#
re: attaching adventureworks2008 on full version of sql server
Rov
11/4/2009 4:42 AM
I racked my brain for 2 days. Searched numerous blogs on the net for a solution to attach AdventureWorks2008 database but to no vail. Your script did the trick. Thanks heaps for sharing.
Post Comment
Title
*
Name
*
Email
Url
Comment
*
Remember Me?
Enter the code shown above
Archives
July, 2009 (1)
June, 2009 (1)
April, 2009 (3)
March, 2009 (1)
February, 2009 (2)
August, 2008 (2)
June, 2008 (1)
May, 2008 (1)
April, 2008 (4)
February, 2008 (3)
January, 2008 (1)
December, 2007 (1)
November, 2007 (1)
October, 2007 (2)
September, 2007 (2)
August, 2007 (3)
July, 2007 (2)
June, 2007 (7)
May, 2007 (6)
April, 2007 (5)
March, 2007 (18)
February, 2007 (22)
January, 2007 (18)
December, 2006 (12)
Post Categories
all tech stuff
all the other stuff
C#
SQL Server
general .Net stuff
News
Copyright © 2005 Alex Bransky
This work is licensed under a
Creative Commons License