Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I created a backup file of my SQL Server 2005 database "Kolkata_Dental" namely Kolkata_Dental.bak manually. Now I want to format my Machine completely, after getting formatted my PC completetly SQL Server 2005 will be uninstalled from my machine. After reinstall SQL Server 2005, I want to restore and recover all my data from the Kolkata_Dental.bak file. How to do this I don't know. Please help.
Note:- The Kolkata_Dental.bak file is saved in Directory C:\\ProgramFiles\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\Kolkata_Dental.bak
Posted
Comments
Zoltán Zörgő 5-Jul-13 2:02am    
This should be a straightforward operation. What have you tried? http://msdn.microsoft.com/en-us/library/ms177429.aspx

 
Share this answer
 
try this...:)
SQL
USE master;
ALTER DATABASE AdventureWorks2012 SET RECOVERY FULL;
GO
-- Back up the AdventureWorks2012 database to new media set (backup set 1).
BACKUP DATABASE AdventureWorks2012
  TO DISK = 'Z:\SQLServerBackups\AdventureWorks2012FullRM.bak' 
  WITH FORMAT;
GO
--Create a routine log backup (backup set 2).
BACKUP LOG AdventureWorks2012 TO DISK = 'Z:\SQLServerBackups\AdventureWorks2012FullRM.bak';
GO
 
Share this answer
 
Follow the steps:

1. Connect DB Engine (sqlserver)
2. Right click on DATABASES
3. Select Restore Database
4. Select bak file from your Hard-drive
5. & click ok, it will start to execute
6. Depends upon your back up file size it will take time

Hope it works.

Or

try this

http://www.youtube.com/watch?v=BHevcPDAU7Q[^]
 
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