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
225 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
  • 3
  • 3
  • 2
8 Comments
 
LVL 12

Assisted Solution

by:udaya kumar laligondla
udaya kumar laligondla earned 300 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 200 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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 300 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

809 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