?
Solved

SQL Server 2005 Express, I have a BAK file..I am trying to use SQL Server Manager Studio...I am getting the following error that I need mdf file but I have no...

Posted on 2009-04-15
8
Medium Priority
?
229 Views
Last Modified: 2012-05-06
Hi there;

I am using SQL Server 2005 Express, I have a BAK file..I am trying to use SQL Server Manager Studio...I am getting the following error that I need mdf file but I have no mdf file...All I have is bak file...and import it successfully...Please examine the screenshots...

Best regards...
1.jpg
2.jpg
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 12

Assisted Solution

by:udaya kumar laligondla
udaya kumar laligondla earned 1200 total points
ID: 24145568
goto options tab and change file path for both MDF and log files
0
 
LVL 31

Accepted Solution

by:
RiteshShah earned 800 total points
ID: 24145577
follow this path after creating blank database.

right click on data,
click on Restore->Database
select "From Device" radio button
add your .BAK file
once you add .BAK, check "Restore" check box beside your .BAK
Now, Go to option at left hend side
"overwrite the existing database" check box. (first checkbox)
give the page in "Restore As" section for you MDF and LDF file. (new location where you want to create DB)
leave everything default and click on OK button
0
 
LVL 12

Expert Comment

by:udaya kumar laligondla
ID: 24145581
as shown in the figure. cahnge the restore as path
Config.JPG
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 12

Author Comment

by:jazzIIIlove
ID: 24145684
udayakumarlm:
RiteshShah:

Please examine the screenshots a), b)  and c)

udayakumarlm:

Could you give the full path? I cannot see whoe path in your screenshot...

Best regards...

a.jpg
b.jpg
c.jpg
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 24145689
Reminder: I have no *df file...
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24145694
try using one check box in first screen shot.
0
 
LVL 12

Assisted Solution

by:udaya kumar laligondla
udaya kumar laligondla earned 1200 total points
ID: 24145696
you can specify something like c:\a.mdf or c:\dbpath\a.mdf and c:\a.ldf or c:\dbpath\a.ldf
the path must be accessable. it can be anywhere on the system.
the LDF and MDF files are inside the BAK file
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24145710
moreover, where did you create Alumni database before restore? give the same path
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

777 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