当前位置: 代码迷 >> Sql Server >> 这个是人家的三个表,小弟我们有两个表,按照他们提供的格式插入到他们的两个
  详细解决方案

这个是人家的三个表,小弟我们有两个表,按照他们提供的格式插入到他们的两个

热度:41   发布时间:2016-04-27 13:42:18.0
这个是人家的三个表,我们有两个表,按照他们提供的格式插入到他们的两个
USE [master]

GO

 

IF EXISTS (SELECT * FROM sys.databases WHERE name = 'ReadyMixedConcrete')

 DROP DATABASE ReadyMixedConcrete --如果存在则删除

GO

 

/****** 商品混凝土标准数据库 ******/

CREATE DATABASE [ReadyMixedConcrete] ON PRIMARY 

( NAME = N'ReadyMixedConcrete', FILENAME = N'D:\ZCITC_DB\ReadyMixedConcrete.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )

 LOG ON 

( NAME = N'ReadyMixedConcrete_log', FILENAME = N'D:\ZCITC_DB\ReadyMixedConcrete_1.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)

GO

 

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))

begin

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

end

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ANSI_NULL_DEFAULT OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ANSI_NULLS OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ANSI_PADDING OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ANSI_WARNINGS OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ARITHABORT OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET AUTO_CLOSE OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET AUTO_CREATE_STATISTICS ON 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET AUTO_SHRINK OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET AUTO_UPDATE_STATISTICS ON 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET CURSOR_CLOSE_ON_COMMIT OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET CURSOR_DEFAULT GLOBAL 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET CONCAT_NULL_YIELDS_NULL OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET NUMERIC_ROUNDABORT OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET QUOTED_IDENTIFIER OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET RECURSIVE_TRIGGERS OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET DISABLE_BROKER 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET DATE_CORRELATION_OPTIMIZATION OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET TRUSTWORTHY OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET ALLOW_SNAPSHOT_ISOLATION OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET PARAMETERIZATION SIMPLE 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET READ_COMMITTED_SNAPSHOT OFF 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET READ_WRITE 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET RECOVERY FULL 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET MULTI_USER 

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET PAGE_VERIFY CHECKSUM  

GO

 

ALTER DATABASE [ReadyMixedConcrete] SET DB_CHAINING OFF 

GO

 

USE [ReadyMixedConcrete]

GO

 

/****** 

  材料类别码表
  相关解决方案