﻿USE [master]
GO

IF  EXISTS (SELECT name FROM sys.databases WHERE name = N'{0}_Snapshot')
DROP DATABASE {0}_Snapshot
GO

CREATE DATABASE {0}_Snapshot
ON (NAME = '{0}', FILENAME = '{1}{0}_Test.SNP')
   AS SNAPSHOT OF {0};
