Export (0) Print
Expand All

Appendix A - UserSidTracking database T-SQL

Published: December 23, 2009

Applies To: Windows Server 2008, Windows Server 2008 R2

The following is the T-SQL code for creating the UserSidTracking database.


USE [master]
GO

/****** Object:  Database [UserSidTracking]    Script Date: 07/14/2009 16:34:53 ******/
CREATE DATABASE [UserSidTracking] ON  PRIMARY 
( NAME = N'MigrationTracker', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MigrationTracker.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'MigrationTracker_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MigrationTracker_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO

ALTER DATABASE [UserSidTracking] SET COMPATIBILITY_LEVEL = 100
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [UserSidTracking].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [UserSidTracking] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [UserSidTracking] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [UserSidTracking] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [UserSidTracking] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [UserSidTracking] SET ARITHABORT OFF 
GO

ALTER DATABASE [UserSidTracking] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [UserSidTracking] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [UserSidTracking] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [UserSidTracking] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [UserSidTracking] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [UserSidTracking] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [UserSidTracking] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [UserSidTracking] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [UserSidTracking] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [UserSidTracking] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [UserSidTracking] SET  DISABLE_BROKER 
GO

ALTER DATABASE [UserSidTracking] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [UserSidTracking] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [UserSidTracking] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [UserSidTracking] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [UserSidTracking] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [UserSidTracking] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [UserSidTracking] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [UserSidTracking] SET  READ_WRITE 
GO

ALTER DATABASE [UserSidTracking] SET RECOVERY FULL 
GO

ALTER DATABASE [UserSidTracking] SET  MULTI_USER 
GO

ALTER DATABASE [UserSidTracking] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [UserSidTracking] SET DB_CHAINING OFF 
GO


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft