SQL Server 2012 AlwaysOn
SQL Server 2012 AlwaysOn
SQL Server 2012 AlwaysOn
Prerequisites:
Must have a shared folder for each server to access for backups
SET UP CLUSTER
Availability Databases features
LOG ON
( NAME = N'Rep1_log',
FILENAME = N'C:\Program Files\Microsoft SQL
Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\Rep1_log.ldf' ,
SIZE = 8192KB ,
FILEGROWTH = 65536KB )
GO
USE [master]
GO
ALTER DATABASE [Rep1] SET RECOVERY FULL WITH NO_WAIT
GO
LOG ON
( NAME = N'Rep1_log',
FILENAME = N'C:\Program Files\Microsoft SQL
Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\Rep2_log.ldf' ,
SIZE = 8192KB ,
FILEGROWTH = 65536KB )
GO
USE [master]
GO
ALTER DATABASE [Rep2] SET RECOVERY SIMPLE WITH NO_WAIT
GO
LOG ON
( NAME = N'Rep1_log',
FILENAME = N'C:\Program Files\Microsoft SQL
Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\Rep3_log.ldf' ,
SIZE = 8192KB ,
FILEGROWTH = 65536KB )
GO
USE [master]
GO
ALTER DATABASE [Rep3] SET RECOVERY FULL WITH NO_WAIT
GO
--TAKE FULL BACKUPS OF REP1 AND REP2 SERVER BUT NOT REP3 SERVER TO A SHARED FOLDER!!!
USE [master]
GO
GO