Click here to Skip to main content
16,005,389 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to restore the back up file in a new database this error is generated by sql server :-
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Restore failed for Server 'HP-PC'. (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Directory lookup for the file "E:\DATA\DPIDataSQL.mdf" failed with the operating system error 2(The system cannot find the file specified.). (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
Posted
Updated 5-Feb-11 13:26pm
v2

Use Attatch rather restore. Databaes>Attach>E:\DATA\DPIDataSQL.mdf

Thanks,
Mamun
 
Share this answer
 
And have you visited any of the help links that were given to you? If so, what did they tell you?

The 'ADDITIONAL INFORMATION' clearly states that it cannot find "E:\DATA\DPIDataSQL.mdf". So is your path correct and does the file exist at that location? If not then that is the cause of your problem.

This[^] has a step-by-step guide, which should help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900