![Q[8R1327UY36_0`[email protected]
USE [master]
GO
/****** Object: Database [chenzhicheng] Script Date: 11/04/2018 14:36:58 ******/
CREATE DATABASE [chenzhicheng] ON PRIMARY
( NAME = N'chenzhicheng', FILENAME = N'D:\sql2008.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'chenzhicheng_log', FILENAME = N'D:\sql2008.ndf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [chenzhicheng] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [chenzhicheng].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [chenzhicheng] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [chenzhicheng] SET ANSI_NULLS OFF
GO
ALTER DATABASE [chenzhicheng] SET ANSI_PADDING OFF
GO
ALTER DATABASE [chenzhicheng] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [chenzhicheng] SET ARITHABORT OFF
GO
ALTER DATABASE [chenzhicheng] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [chenzhicheng] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [chenzhicheng] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [chenzhicheng] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [chenzhicheng] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [chenzhicheng] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [chenzhicheng] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [chenzhicheng] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [chenzhicheng] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [chenzhicheng] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [chenzhicheng] SET DISABLE_BROKER
GO
ALTER DATABASE [chenzhicheng] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [chenzhicheng] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [chenzhicheng] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [chenzhicheng] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [chenzhicheng] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [chenzhicheng] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [chenzhicheng] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [chenzhicheng] SET READ_WRITE
GO
ALTER DATABASE [chenzhicheng] SET RECOVERY FULL
GO
ALTER DATABASE [chenzhicheng] SET MULTI_USER
GO
ALTER DATABASE [chenzhicheng] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [chenzhicheng] SET DB_CHAINING OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'chenzhicheng', N'ON'
GO
USE [chenzhicheng]
GO
/****** Object: Table [dbo].[收营员USERS] Script Date: 11/04/2018 14:36:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[收营员USERS](
[ID] [int] NOT NULL,
[NAME] varchar NULL,
[PASSWORD] varchar NULL,
[PHONE] varchar NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键,工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'收营员USERS', @level2type=N'COLUMN',@level2name=N'ID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'收营员USERS', @level2type=N'COLUMN',@level2name=N'NAME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'密码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'收营员USERS', @level2type=N'COLUMN',@level2name=N'PASSWORD'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'电话' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'收营员USERS', @level2type=N'COLUMN',@level2name=N'PHONE'
GO
/****** Object: Table [dbo].[商品] Script Date: 11/04/2018 14:36:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[商品](
[商品号] [int] NOT NULL,
[商品名] varchar NULL,
[商品价格] varchar NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[库管员USERS] Script Date: 11/04/2018 14:36:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[库管员USERS](
[ID] [int] NOT NULL,
[NAME] varchar NULL,
[PASSWORD] varbinary NULL,
[PHONE] varchar NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键,工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'库管员USERS', @level2type=N'COLUMN',@level2name=N'ID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'库管员USERS', @level2type=N'COLUMN',@level2name=N'NAME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'密码
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'库管员USERS', @level2type=N'COLUMN',@level2name=N'PASSWORD'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'电话' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'库管员USERS', @level2type=N'COLUMN',@level2name=N'PHONE'
GO
/****** Object: Table [dbo].[供应商] Script Date: 11/04/2018 14:36:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[供应商](
[代码] [int] NOT NULL,
[名称] varchar NULL,
[地点] varchar NULL,
[联系人] varchar NULL,
[电话] varchar NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO