33 lines
851 B
Transact-SQL
33 lines
851 B
Transact-SQL
USE [EnVisage]
|
|
GO
|
|
|
|
|
|
IF EXISTS (SELECT * FROM sys.tables where name='supt_tbl_MongoDBBackup')
|
|
begin
|
|
DROP TABLE [dbo].[supt_tbl_MongoDBBackup]
|
|
end
|
|
|
|
go
|
|
|
|
/****** Object: Table [dbo].[supt_tbl_MongoDBBackup] Script Date: 10/20/2015 9:34:34 AM ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
CREATE TABLE [dbo].[supt_tbl_MongoDBBackup](
|
|
[id] [uniqueidentifier] NOT NULL CONSTRAINT [DF_supt_tbl_MongoDBBackup_id] DEFAULT (newid()),
|
|
[BackupDate] [datetime] NOT NULL,
|
|
[BackupedBy] [nvarchar](50) NOT NULL,
|
|
[BackupData] [nvarchar](max) NOT NULL,
|
|
[CollectionName] [nvarchar](50) NOT NULL,
|
|
CONSTRAINT [PK_supt_tbl_MongoDBBackup] PRIMARY KEY CLUSTERED
|
|
(
|
|
[id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
|
|
GO
|
|
|