123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- go
- set ansi_nulls on
- go
- set quoted_identifier on
- go
- set ansi_padding on
- go
- if not exists(select * from dbo.sysobjects where id = object_id(N'IncrementalBackup') and objectproperty(id,'IsTable') = 1)
- begin
- create table [dbo].[IncrementalBackup](
- [isbackup] [bit] default(0) not null,
- [branchid] [nvarchar](32) not null,
- [opttime] datetime default(getdate()),
- [order] [nvarchar](32) not null,
- [photoType] [tinyint] default(0) not null,
- [content] [nvarchar](max) null,
- [userid] [nvarchar](64) not null,
- [username] [nvarchar](16) not null,
- [baktime] datetime null,
-
- constraint [PK_IncrementBackup] primary key clustered
- (
- [branchid] asc,
- [order] asc,
- [opttime] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary],
- ) on [primary]
- end
- go
- set ansi_padding off
- USE [db]
- GO
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- SET ANSI_PADDING ON
- GO
- CREATE TABLE [dbo].[IncrementalBackup](
- [isbackup] [bit] NOT NULL DEFAULT ((0)),
- [branchid] [varchar](32) NOT NULL,
- [opttime] [datetime] NOT NULL DEFAULT (getdate()),
- [order] [varchar](32) NOT NULL,
- [photoType] [tinyint] NOT NULL DEFAULT ((0)),
- [content] [varchar](max) NULL,
- [backupExt] [varchar] (120) NOT NULL,
- [userid] [varchar](64) NOT NULL,
- [username] [varchar](32) NOT NULL,
- [baktime] [datetime] NULL,
- CONSTRAINT [PK_IncrementBackup] PRIMARY KEY CLUSTERED
- (
- [branchid] ASC,
- [order] ASC,
- [photoType] ASC,
- [opttime] 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
|