C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




error occuring while restoring...


Posted Date: 20 Aug 2008      Total Responses: 1

Posted By: shoukath       Member Level: Bronze     Points: 1


The following error is getting while restoring database
System.Data.SqlClient.SqlError:Directory looked up for the file C:\Program Files\Microsoft SQL Server\MSSQL\data\filename.mdf failed with the operating system error 3(The system cannot find the path specified.).(Microsoft.SqlServer.Express.Smo).


back up is possible..problem getting while restoring...
hope I get a clear answer




Responses

Author: kumar    20 Aug 2008Member Level: DiamondRating:     Points: 6
Hi,

it couldn't able to find the path, so do one thing
create a folder MSSQL in D:\ and follow the below steps

1. Right Click on the Databases folder and select Restore Database..
2.Under General left Tab Give the database name in To database dropdown
3.Select the From Device Radio Button and browse for the backup file
4. Select the Restore checkbox once you select the back up file.
5. Select Options tab in the left side
6. Under the Restore Database file as: You have to change the path in Restore As column to D:\MSSQL\YourDB.mdf and same with
D:\MSSQL\YourDB.ldf

Hope this helps you

thanks and regards,
Kumar



Post Reply
You must Sign In to post a response.
Next : How to Run command line script in sqlserver
Previous : Find the Rejection after Submission
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use