Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created May 31, 2010 10:25
Show Gist options
  • Save Eugeny/419718 to your computer and use it in GitHub Desktop.
Save Eugeny/419718 to your computer and use it in GitHub Desktop.
USE [master]
GO
/****** Object: Database [dssync] Script Date: 05/31/2010 12:23:17 ******/
CREATE DATABASE [dssync] ON PRIMARY
( NAME = N'dssync', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\dssync.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'dssync_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\dssync_1.ldf' , SIZE = 8384KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [dssync] SET COMPATIBILITY_LEVEL = 90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [dssync].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [dssync] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [dssync] SET ANSI_NULLS OFF
GO
ALTER DATABASE [dssync] SET ANSI_PADDING OFF
GO
ALTER DATABASE [dssync] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [dssync] SET ARITHABORT OFF
GO
ALTER DATABASE [dssync] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [dssync] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [dssync] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [dssync] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [dssync] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [dssync] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [dssync] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [dssync] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [dssync] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [dssync] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [dssync] SET DISABLE_BROKER
GO
ALTER DATABASE [dssync] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [dssync] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [dssync] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [dssync] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [dssync] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [dssync] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [dssync] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [dssync] SET READ_WRITE
GO
ALTER DATABASE [dssync] SET RECOVERY FULL
GO
ALTER DATABASE [dssync] SET MULTI_USER
GO
ALTER DATABASE [dssync] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [dssync] SET DB_CHAINING OFF
GO
USE [dssync]
GO
/****** Object: Table [dbo].[Accounts] Script Date: 05/31/2010 12:22:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Accounts](
[PIN] [varchar](50) NULL,
[Password] [varchar](50) NULL,
[Valid] [varchar](50) NULL,
[Access] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [dssync]
GO
/****** Object: Table [dbo].[Files] Script Date: 05/31/2010 12:24:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Files](
[Folder] [nvarchar](50) NULL,
[Filename] [nvarchar](500) NULL,
[Chunk] [nvarchar](50) NULL,
[Timestamp] [nvarchar](50) NULL
) ON [PRIMARY]
GO
USE [dssync]
GO
/****** Object: Table [dbo].[Folders] Script Date: 05/31/2010 12:24:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Folders](
[Folder] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [dssync]
GO
/****** Object: Table [dbo].[Access] Script Date: 05/31/2010 12:24:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Access](
[Access] [nvarchar](50) NULL,
[SecGroup] [nvarchar](50) NULL,
[Folder] [nvarchar](50) NULL
) ON [PRIMARY]
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment