You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.7 KiB
Transact-SQL
43 lines
1.7 KiB
Transact-SQL
|
|
CREATE TABLE [dbo].[t_op_seae_ftpfile_bc](
|
|
[ID] [int] IDENTITY(1,1) NOT NULL,
|
|
[ReportID] [varchar](60) NULL,
|
|
[fileType] [varchar](20) NULL,
|
|
[ftp_filename] [varchar](200) NULL,
|
|
[lastmodi_date] [datetime] NULL,
|
|
[filesize] [varchar](15) NULL,
|
|
[download_ok] [bit] NULL,
|
|
[download_date] [datetime] NULL,
|
|
[remark] [varchar](500) NULL,
|
|
[local_path] [varchar](300) NULL,
|
|
[deal_ok] [bit] NULL,
|
|
[download_failuretimes] [int] NOT NULL,
|
|
[download_failure_notified] [bit] NOT NULL,
|
|
CONSTRAINT [PK_t_op_seae_ftpfile_bc] 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]
|
|
|
|
GO
|
|
|
|
SET ANSI_PADDING OFF
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ftp文件名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_ftpfile_bc', @level2type=N'COLUMN',@level2name=N'ftp_filename'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'最后修改日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_ftpfile_bc', @level2type=N'COLUMN',@level2name=N'lastmodi_date'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下载失败是否已发通知' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_ftpfile_bc', @level2type=N'COLUMN',@level2name=N'download_failure_notified'
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[t_op_seae_ftpfile_bc] ADD CONSTRAINT [DF_t_op_seae_ftpfile_bc_download_failuretimes] DEFAULT ((0)) FOR [download_failuretimes]
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[t_op_seae_ftpfile_bc] ADD CONSTRAINT [DF_t_op_seae_ftpfile_bc_download_failure_notified] DEFAULT ((0)) FOR [download_failure_notified]
|
|
GO
|
|
|
|
|