Showing posts with label Backup. Show all posts
Showing posts with label Backup. Show all posts

Monday, January 22, 2018

Restoring legacy database to SQL Server 2017 using Microsoft SQL Operations Studio

You can restore a database to SQL Server using the SQL Server Management Studio(SSMS). It is a feature rich tool for restoring and backing up databases. Besides restoring and backing up SSMS can carry out a ton of other tasks.

Here is an example of using SSMS to restore a database to SQL Server.

Why use Microsoft SQL Opertions Studio?

For one thing it has small foot print and it is free (preview now). It is lightweight and can do only a few of the things. You can restore a database with fewer clicks than with SSMS.

On my Windows 10 Professional, I have installed SQL Server 2017 Developer edition. I will restore the Northwind database from its backup file on CodePlex. Being a preview, Microsoft SQL Operations Studio has a few kinks and I have a workaround to bypass the kink and get the result.

Watch the video for the restore opeation:
https://www.youtube.com/edit?o=U&video_id=-KOXjlRACSU

Restore operation using Windows PowerShell
https://hodentekmsss.blogspot.com/2016/03/easy-way-to-backup-sql-server-database.html

Read many more related PowerShell posts here.

Tuesday, February 28, 2017

Constructing Wide World Importers database - Part 1

In order to get this database first go here ( https://github.com/Microsoft/sql-server-samples ).

There are three releases of which the first one Wide World Importers sample database v1.0 is the one you should get.

Before you begin to do this task, verify that you have done a dependent tass (upgrading to SP1). If not, go here and complete the task.

Click on that link. This should take you to this site here .

I will show you the easy way to get this task done. SQL Server has both Backup / Restore hookups that you can use.
Download WideWorldImporters-Standard.bak

From Databases choose Restore Database....


Restore Database screen gets displayed. Click on Device and click the ellipsis button to locate the backup file.



  

Go locate the backup file you downlaoded as shown (your location will be different).

Click OK. The file can now be accessed by the processor.


Click OK. After a short while of processing you should see this message.


 Wide World Importers is now in your named instance of SQL Server 2016 SP1 as shown.


It does come with data as shown.


Don't you think it was easy!

Friday, January 24, 2014

What are recovery models in SQL Server 2012 and how do you choose?

Backup and recovery are some of the most important operations in order to plan for emergencies and keep the data happy at all times.The role of recovery models in SQL Server is for controlling the transaction log maintenance. SQL Server's backup and restore operations takes place depending on what recovery model is chosen.

There are 3 types of recovery models:

  • Simple - No need for log backups. If you are concerned with transactions this is not the type to choose as the changes since most recent backup are  unprotected.
  • Full - Requires log backups. Changes to a specific point in time can be recovered.
  • Bulk logged-Requires log backups. Point in time recovery is not supported but recovery to the end of any backup is. Good for high performance bulk operations.
How do you change the model?

This is with reference to SQL Server 2012 Express. The default model for recovery operations is simple as shown.


Right click on the database node of the database to be recovered (herein database Manoa). On the Select a page that gets displayed, click Options. The related page is displayed as shown.
Here you can change the recovery model. Herein Simple was changed to Full.



Now right click the database node and to display the tasks



From the submneu click Back Up... and you will see it is reflected in the backup operations although you will not be able to chnage the model here.


 

When Identity Security Becomes a Wall — Not a Shield

After a breach that forced a reset of my digital identity, I hit a roadblock I never anticipated: multi-factor authentication (2FA) locked m...