 
 GO
 
-/****** Object:  StoredProcedure [dbo].[Company_GetAll]    Script Date: 5/23/2017 5:21:28 PM ******/
-
-SET ANSI_NULLS ON
-
-GO
-
-SET QUOTED_IDENTIFIER ON
-
-GO
-
-IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Company_GetAll]') AND type in (N'P', N'PC'))
-
-BEGIN
-
-EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [dbo].[Company_GetAll] AS' 
-
-END
-
-GO
-
-
-
-
-
-ALTER PROCEDURE [dbo].[Company_GetAll]
+/****** Object:  StoredProcedure [dbo].[Company_GetAll]    Script Date: 6/5/2017 5:22:06 PM ******/
+
+SET ANSI_NULLS ON
+
+GO
+
+SET QUOTED_IDENTIFIER ON
+
+GO
+
+
+
+
+
+CREATE PROCEDURE [dbo].[Company_GetAll]
 
 
 


SET ANSI_PADDING ON



GO

/****** Object:  Index [IX_UserId]    Script Date: 5/23/2017 5:21:28 PM ******/

IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[AspNetUserLogins]') AND name = N'IX_UserId')

CREATE NONCLUSTERED INDEX [IX_UserId] ON [dbo].[AspNetUserLogins]


/****** Object:  Database [CD_Test]    Script Date: 6/5/2017 5:22:05 PM ******/

CREATE DATABASE [CD_Test]

 CONTAINMENT = NONE

 ON  PRIMARY 

( NAME = N'CD_Test', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\CD_Test.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )

 LOG ON 

( NAME = N'CD_Test_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\CD_Test_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )

GO

ALTER DATABASE [CD_Test] SET COMPATIBILITY_LEVEL = 130

GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))

begin

EXEC [CD_Test].[dbo].[sp_fulltext_database] @action = 'enable'

end

GO

ALTER DATABASE [CD_Test] SET ANSI_NULL_DEFAULT OFF 

GO

ALTER DATABASE [CD_Test] SET ANSI_NULLS OFF 

GO

ALTER DATABASE [CD_Test] SET ANSI_PADDING OFF 

GO

ALTER DATABASE [CD_Test] SET ANSI_WARNINGS OFF 

GO

ALTER DATABASE [CD_Test] SET ARITHABORT OFF 

GO

ALTER DATABASE [CD_Test] SET AUTO_CLOSE OFF 

GO

ALTER DATABASE [CD_Test] SET AUTO_SHRINK OFF 

GO

ALTER DATABASE [CD_Test] SET AUTO_UPDATE_STATISTICS ON 

GO

ALTER DATABASE [CD_Test] SET CURSOR_CLOSE_ON_COMMIT OFF 

GO

ALTER DATABASE [CD_Test] SET CURSOR_DEFAULT  GLOBAL 

GO

ALTER DATABASE [CD_Test] SET CONCAT_NULL_YIELDS_NULL OFF 

GO

ALTER DATABASE [CD_Test] SET NUMERIC_ROUNDABORT OFF 

GO

ALTER DATABASE [CD_Test] SET QUOTED_IDENTIFIER OFF 

GO

ALTER DATABASE [CD_Test] SET RECURSIVE_TRIGGERS OFF 

GO

ALTER DATABASE [CD_Test] SET  DISABLE_BROKER 

GO

ALTER DATABASE [CD_Test] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 

GO

ALTER DATABASE [CD_Test] SET DATE_CORRELATION_OPTIMIZATION OFF 

GO

ALTER DATABASE [CD_Test] SET TRUSTWORTHY OFF 

GO

ALTER DATABASE [CD_Test] SET ALLOW_SNAPSHOT_ISOLATION OFF 

GO

ALTER DATABASE [CD_Test] SET PARAMETERIZATION SIMPLE 

GO

ALTER DATABASE [CD_Test] SET READ_COMMITTED_SNAPSHOT OFF 

GO

ALTER DATABASE [CD_Test] SET HONOR_BROKER_PRIORITY OFF 

GO

ALTER DATABASE [CD_Test] SET RECOVERY FULL 

GO

ALTER DATABASE [CD_Test] SET  MULTI_USER 

GO

ALTER DATABASE [CD_Test] SET PAGE_VERIFY CHECKSUM  

GO

ALTER DATABASE [CD_Test] SET DB_CHAINING OFF 

GO

ALTER DATABASE [CD_Test] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 

GO

ALTER DATABASE [CD_Test] SET TARGET_RECOVERY_TIME = 60 SECONDS 

GO

ALTER DATABASE [CD_Test] SET DELAYED_DURABILITY = DISABLED 

GO

EXEC sys.sp_db_vardecimal_storage_format N'CD_Test', N'ON'

GO

ALTER DATABASE [CD_Test] SET QUERY_STORE = OFF

GO

USE [CD_Test]

GO

ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF;

GO

ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET LEGACY_CARDINALITY_ESTIMATION = PRIMARY;

GO

ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0;

GO

ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET MAXDOP = PRIMARY;

GO

ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON;

GO

ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET PARAMETER_SNIFFING = PRIMARY;

GO

ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF;

GO

ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET QUERY_OPTIMIZER_HOTFIXES = PRIMARY;

GO

/****** Object:  Table [dbo].[__MigrationHistory]    Script Date: 6/5/2017 5:22:06 PM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[__MigrationHistory](

	[MigrationId] [nvarchar](150) NOT NULL,

	[ContextKey] [nvarchar](300) NOT NULL,

	[Model] [varbinary](max) NOT NULL,

	[ProductVersion] [nvarchar](32) NOT NULL,

 CONSTRAINT [PK_dbo.__MigrationHistory] PRIMARY KEY CLUSTERED 

