Sıralama: Administration
Gruplar: Administrators
Katılan: 6.05.2014(UTC) Mesajlar: 670
19 Kere Teşekkür Etti. 152 Mesajına Toplam 253 Kere Teşekkür Edildi.
|
Originally Posted by: fdogan çok iyi olur Kod:
USE [master]
GO
/****** Object: Database [Veteriner] Script Date: 28.12.2014 18:17:53 ******/
CREATE DATABASE [Veteriner]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'Veteriner', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\Veteriner.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'Veteriner_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\Veteriner_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [Veteriner] SET COMPATIBILITY_LEVEL = 120
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [Veteriner].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [Veteriner] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [Veteriner] SET ANSI_NULLS OFF
GO
ALTER DATABASE [Veteriner] SET ANSI_PADDING OFF
GO
ALTER DATABASE [Veteriner] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [Veteriner] SET ARITHABORT OFF
GO
ALTER DATABASE [Veteriner] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [Veteriner] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [Veteriner] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [Veteriner] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [Veteriner] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [Veteriner] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [Veteriner] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [Veteriner] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [Veteriner] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [Veteriner] SET DISABLE_BROKER
GO
ALTER DATABASE [Veteriner] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [Veteriner] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [Veteriner] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [Veteriner] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [Veteriner] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [Veteriner] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [Veteriner] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [Veteriner] SET RECOVERY FULL
GO
ALTER DATABASE [Veteriner] SET MULTI_USER
GO
ALTER DATABASE [Veteriner] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [Veteriner] SET DB_CHAINING OFF
GO
ALTER DATABASE [Veteriner] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [Veteriner] SET TARGET_RECOVERY_TIME = 0 SECONDS
GO
ALTER DATABASE [Veteriner] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [Veteriner] SET READ_WRITE
GO
USE [Veteriner]
GO
/****** Object: Table [dbo].[Animal] Script Date: 28.12.2014 18:18:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Animal](
[id] [int] IDENTITY(1,1) NOT NULL,
[AnimalTypeId] [int] NULL,
[AnimalName] [varchar](50) NULL,
[Birthdate] [datetime] NULL,
[ResponsiblePersonName] [varchar](50) NULL,
[ResponsiblePersonSurName] [varchar](50) NULL,
[ResponsiblePersonPhone] [varchar](50) NULL,
[Active] [int] NULL,
CONSTRAINT [PK_Animal] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [Veteriner]
GO
/****** Object: Table [dbo].[AnimalType] Script Date: 28.12.2014 18:18:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AnimalType](
[id] [int] IDENTITY(1,1) NOT NULL,
[AnimalType] [int] NULL,
[Active] [int] NULL,
CONSTRAINT [PK_AnimalType] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AnimalType] ADD CONSTRAINT [DF_AnimalType_Active] DEFAULT ((1)) FOR [Active]
GO
USE [Veteriner]
GO
/****** Object: Table [dbo].[Facility] Script Date: 28.12.2014 18:18:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Facility](
[id] [int] IDENTITY(1,1) NOT NULL,
[FacilityName] [varchar](50) NULL,
[Active] [int] NULL,
CONSTRAINT [PK_Facility] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[Facility] ADD CONSTRAINT [DF_Facility_Active] DEFAULT ((1)) FOR [Active]
GO
USE [Veteriner]
GO
/****** Object: Table [dbo].[Schedule] Script Date: 28.12.2014 18:18:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Schedule](
[id] [int] IDENTITY(1,1) NOT NULL,
[AnimalId] [int] NULL,
[UserId] [int] NULL,
[FacilityId] [int] NULL,
[Note] [varchar](50) NULL,
[ScheduleDate] [date] NULL,
[Medicine] [varchar](50) NULL,
[Active] [int] NULL,
CONSTRAINT [PK_Schedule] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[Schedule] ADD CONSTRAINT [DF_Schedule_Active] DEFAULT ((1)) FOR [Active]
GO
USE [Veteriner]
GO
/****** Object: Table [dbo].[User] Script Date: 28.12.2014 18:18:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[User](
[id] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL,
[SurName] [varchar](50) NULL,
[Password] [varchar](50) NULL,
[Email] [varchar](50) NULL,
[Active] [int] NULL,
[CreateDate] [datetime] NULL,
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_Active] DEFAULT ((1)) FOR [Active]
GO
ALTER TABLE [dbo].[User] ADD CONSTRAINT [DF_User_CreateDate] DEFAULT (getdate()) FOR [CreateDate]
GO
|
Sql Server 2016 Eğitimiz 19 Mayıs tarihinde başlayacaktır. 32 Saat Olup Ücret 1450 TL + KDV'dir. Kayıt ve ayrıntılar için tıklayınıztwitter.com/dbakademi Dua ve teşekkür en büyük servetlere bedel... |