Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

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

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
jazzIIIlove
Asked:
jazzIIIlove
  • 3
  • 3
  • 2
3 Solutions
 
udaya kumar laligondlaTechnical LeadCommented:
goto options tab and change file path for both MDF and log files
0
 
RiteshShahCommented:
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
 
udaya kumar laligondlaTechnical LeadCommented:
as shown in the figure. cahnge the restore as path
Config.JPG
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
jazzIIIloveAuthor Commented:
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
 
jazzIIIloveAuthor Commented:
Reminder: I have no *df file...
0
 
RiteshShahCommented:
try using one check box in first screen shot.
0
 
udaya kumar laligondlaTechnical LeadCommented:
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
 
RiteshShahCommented:
moreover, where did you create Alumni database before restore? give the same path
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now