1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
CREATE TABLE [dbo].[Document](
[Document_id] [uniqueidentifier] ROWGUIDCOL NOT NULL,
[Document_number] [int] NOT NULL,
[Document_name] [nvarchar](50) NULL,
[Document_type] [nvarchar](10) NULL,
[Document_extension] [varchar](5) NULL,
[Document_file] [varbinary](max) FILESTREAM NULL,
PRIMARY KEY CLUSTERED
(
[Document_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] FILESTREAM_ON [filestreamProdDB],
UNIQUE NONCLUSTERED
(
[Document_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] FILESTREAM_ON [filestreamProdDB]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[Document] ADD DEFAULT (0x) FOR [Document_file]
GO |
Partager