Archive for 2016

Detach/Delete Unused SQL Server Database

Sometime database need to be deleted or detached. The basic different between this options are:

  • Detach
    The selected database has been dropped from sql server list. Which mean all process can't be done again, such as: select, insert, delete, update, backup, etc.
    But the physical file still available on server. Hence, if needed it can be Attach easily.
  • Delete
    The selected database has been dropped from sql server list. Which mean all process can't be done again, such as: select, insert, delete, update, backup, etc.
    But the physical file has been deleted from server. Hence, the Attach process can not be done directly. The restore process should be done to reactivate the database.
Here are step by step to delete the database on SQL Server 2008

Thursday, April 14, 2016

Backup/Restore from SQL Server 2008 into 2014

Here step by step to restore from SQL Server Database 2008 into 2014
1. Create folder to save the backup folder


2. Backup process on SQL Server 2008
Right click on database that going to be moved > Tools > Back Up..
Specify the Backup Type as Full
On the destination, remove all list if specified. And then click Add, to choose the destination folder & file name. Ensure to type manually *.bak as the extension, to make it easier on the rest process.

If database will be restored to another server, then move the *.bak file created to the new/destination server.







3. Restore process on SQL Server 2014
Right click on Database > Restore Database

Specify the file location, by clicking button on the From device part.



Ensure the database is ticked in the column.
Click on "To database", choose the appropriate database name.
Click on Verify Backup Media, to ensure the file going to be restored has valid format.

Once it's success verified, click Enter button to start the Restore process




Process Backup Restore to move database from SQL Server 2008 into SQL Server 2014 has been done!

Previous: Backup/Restore from SQL Server 2000 into 2008

Backup/Restore from SQL Server 2000 into 2008

Here step by step to restore from SQL Server Database 2000 into 2008
1. Create folder to save the backup folder


2. Backup process on SQL Server 2000
Right click on database that going to be moved > Tools > Back Up..
Specify the Backup Type as Full
On the destination, remove all list if specified. And then click Add, to choose the destination folder & file name. Ensure to type manually *.bak as the extension, to make it easier on the rest process.

If database will be restored to another server, then move the *.bak file created to the new/destination server.




3. Restore process on SQL Server 2008
Right click on Database > Restore Database

Specify the file location, by clicking button on the From device part.


Ensure the database is ticked in the column.
Click on "To database", choose the appropriate database name.



Process Backup Restore to move database from SQL Server 2000 into SQL Server 2008 has been done!

Previous: Migrate from SQL Server 2000 to SQL Server 2014 Step by Step

Migrate from SQL Server 2000 to SQL Server 2014 Step by Step

There are lots of case, where company need to migrate or upgrade their SQL Server version. Either in the same server or different server. Without a good planning, method and execution, it can be a catastrophic.

To migrate SQL Server from version 2000 into version 2014, it will require three big steps:
  1. Backup/Restore from SQL Server 2000 into 2008
  2. Backup/Restore from SQL Server 2008 into 2014
  3. Detach/Delete unused database

Migrate SQL Server 2000 into 2014

On more detail process, will be shown how to migrate SQL Server from 2000 into version 2014, using SQL Server 2008 as interim. All processes are done using different virtual machine. Once the process completely done, the SQL Server 2008 can be removed safely.


Wednesday, April 13, 2016

- Copyright © Ady Purnama -Metrominimalist- Designed by djogzs -