Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two database backup file "inventry.bak" and "sms.bak" in the same directory.
i write a code to restore database.
but code works fine for inventry.bak and shows an server error for sms.bak
what is the issue behind it??
Posted
Comments
E.F. Nijboer 7-Oct-11 7:53am    
What is the error?
choudhary.sumit 7-Oct-11 8:01am    
"restore failed for server PC1\SQLEXPRESS "
i want to make to remember that code works fine for every backup file other than sms.bak

You have got to have figured, that if the code works for one backup file, and not the other, then the code must be fine and the problem lies with backup file itself. You should check the integrity of the backup file and see if the format is correct, or there is no other problems with the file itself.

Hope this helps
 
Share this answer
 
 
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