Topic: Create Database Klingon  (Read 1066 times)

0 Members and 1 Guest are viewing this topic.

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Create Database Klingon
« on: August 14, 2008, 09:16:27 pm »
Code: [Select]
USE [master]
GO
/****** Object:  Database [SFC_KlingonMaster]    Script Date: 08/14/2008 19:14:28 ******/
CREATE DATABASE [SFC_KlingonMaster] ON  PRIMARY
( NAME = N'SFC_KlingonMaster', FILENAME = N'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\SFC_KlingonMaster.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ),
 FILEGROUP [Wulf]
( NAME = N'SFC_KlingonMaster2', FILENAME = N'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\SFC_KlingonMaster2.ndf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON
( NAME = N'SFC_KlingonMaster_log', FILENAME = N'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\SFC_KlingonMaster_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'SFC_KlingonMaster', @new_cmptlevel=90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [SFC_KlingonMaster].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [SFC_KlingonMaster] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET ANSI_NULLS OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET ANSI_PADDING OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET ARITHABORT OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [SFC_KlingonMaster] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [SFC_KlingonMaster] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET CURSOR_DEFAULT  GLOBAL
GO
ALTER DATABASE [SFC_KlingonMaster] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET  ENABLE_BROKER
GO
ALTER DATABASE [SFC_KlingonMaster] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [SFC_KlingonMaster] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [SFC_KlingonMaster] SET  READ_WRITE
GO
ALTER DATABASE [SFC_KlingonMaster] SET RECOVERY FULL
GO
ALTER DATABASE [SFC_KlingonMaster] SET  MULTI_USER
GO
ALTER DATABASE [SFC_KlingonMaster] SET PAGE_VERIFY CHECKSUM 
GO
ALTER DATABASE [SFC_KlingonMaster] SET DB_CHAINING OFF


MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Re: Create Database Klingon
« Reply #1 on: August 15, 2008, 08:17:59 am »
Code: [Select]
Use SFC_KlingonMaster
go
Create Table CongueredPlanets
(
PlanetID int identity (100,1) NOT NULL,
PName nvarchar(max) NOT NULL,
NumSlaves bigint NULL,
PSize bigint NOT NULL,
House nvarchar(50) NULL,
Habitable bit NOT NULL
)
go
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista