Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi experts,
I made one mistake that,I have over written my existing database with some other database.
but i dont want overwritten database. I want my previous database.
Is there any way to go back to previous state, Please help me to solve this issue. am in big trouble.Can any one Please tell me how to restore the .sql file present in %temp% folder

thanks in advance
(Keerthi Kumar)
Posted
Updated 30-Jan-14 23:17pm
v2
Comments
[no name] 31-Jan-14 4:48am    
What database? What do you mean by overwrite? Did you overwrite the physical file or did you overwrite data in a table?
Vedat Ozan Oner 31-Jan-14 4:49am    
if you don't have any backup, no. that is why you should back-up things.
King Fisher 31-Jan-14 4:49am    
http://social.msdn.microsoft.com/Forums/en-US/4fda274c-034a-4463-a748-47f096d8de41/urgent-how-can-i-recoverrestore-an-overwritten-database?forum=sqlazurelabssupport


open run command and excute %temp% .look for .Sql file by lucky you can get the excuted query window
Keerthi Kumar(Andar) 31-Jan-14 5:09am    
thanks King_Fisher,
I have got .sql file in %temp% folder but Can you please tell me how to restore it??
King Fisher 31-Jan-14 5:33am    
try Recover the ldf and mdf files by use softwares

http://www.apexsql.com/sql_tools_recover.aspx

1 solution

this is not solution .but you can avoid this
install it
 
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