bak.sql.txt
上传用户:jxqhsy
上传日期:2020-12-31
资源大小:1793k
文件大小:2k
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Response]') AND type in (N'U'))
- BEGIN
- CREATE TABLE [dbo].[Response](
- [ID] [int] IDENTITY(1,1) NOT NULL,
- [QuestionID] [int] NULL,
- [Selection] [char](1) NULL,
- CONSTRAINT [PK_Response] PRIMARY KEY CLUSTERED
- (
- [ID] ASC
- )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
- ) ON [PRIMARY]
- END
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ContactUs]') AND type in (N'U'))
- BEGIN
- CREATE TABLE [dbo].[ContactUs](
- [Name] [varchar](50) NULL,
- [Age] [varchar](50) NULL,
- [Query] [varchar](1000) NULL
- ) ON [PRIMARY]
- END
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Admin]') AND type in (N'U'))
- BEGIN
- CREATE TABLE [dbo].[Admin](
- [ID] [int] IDENTITY(1,1) NOT NULL,
- [UserName] [varchar](50) NULL,
- [PassWord] [varchar](50) NULL,
- [beizhu] [varchar](50) NULL,
- CONSTRAINT [PK_Admin] PRIMARY KEY CLUSTERED
- (
- [ID] ASC
- )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
- ) ON [PRIMARY]
- END
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Question]') AND type in (N'U'))
- BEGIN
- CREATE TABLE [dbo].[Question](
- [ID] [int] IDENTITY(1,1) NOT NULL,
- [SurveyID] [int] NULL,
- [Text] [varchar](1000) NULL,
- [OptionA] [varchar](1000) NULL,
- [OptionB] [varchar](1000) NULL,
- [OptionC] [varchar](1000) NULL,
- [OptionD] [varchar](1000) NULL,
- CONSTRAINT [PK_Question] PRIMARY KEY CLUSTERED
- (
- [ID] ASC
- )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
- ) ON [PRIMARY]
- END
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Survey]') AND type in (N'U'))
- BEGIN
- CREATE TABLE [dbo].[Survey](
- [ID] [int] IDENTITY(1,1) NOT NULL,
- [Name] [varchar](200) NULL,
- [Description] [varchar](1000) NULL,
- [Date] [datetime] NULL,
- [IsCurrentSurvey] [char](1) NULL,
- CONSTRAINT [PK_Survey] PRIMARY KEY CLUSTERED
- (
- [ID] ASC
- )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
- ) ON [PRIMARY]
- END