/****** Object:  Table [dbo].[Pay_Send_Ways]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Pay_Send_Ways]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Pay_Send_Ways](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Item] [varchar](7) COLLATE Chinese_PRC_CI_AS NULL,
	[ItemName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Comment] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaPay_Send_Ways_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Pay_Send_Ways]') AND name = N'ID')
CREATE NONCLUSTERED INDEX [ID] ON [dbo].[Pay_Send_Ways] 
(
	[ID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Pay_Send_Ways' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Item' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'50' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Item' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Pay_Send_Ways' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Item'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Item'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ItemName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ItemName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Pay_Send_Ways' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'ItemName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Comment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Comment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Pay_Send_Ways' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', N'COLUMN',N'Comment'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways', @level2type=N'COLUMN',@level2name=N'Comment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-8-13 9:54:09' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-8-17 10:25:23' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Pay_Send_Ways' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Pay_Send_Ways', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Pay_Send_Ways'
GO
/****** Object:  Table [dbo].[Tem_Init]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Tem_Init]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Tem_Init](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[DirID] [int] NOT NULL,
	[SecLevel] [tinyint] NULL,
	[Builder] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[LastModified] [datetime] NULL,
	[LastMender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaTem_Init_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Tem_Init]') AND name = N'DirID')
CREATE NONCLUSTERED INDEX [DirID] ON [dbo].[Tem_Init] 
(
	[DirID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Tem_Init]') AND name = N'ID')
CREATE NONCLUSTERED INDEX [ID] ON [dbo].[Tem_Init] 
(
	[ID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SecLevel' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SecLevel' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Builder' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Builder' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'Now()' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'LastModified' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'LastModified' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Tem_Init', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-12-5 8:22:19' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-4-17 13:59:54' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Tem_Init' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Tem_Init', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Tem_Init'
GO
/****** Object:  Table [dbo].[BackHistory]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[BackHistory]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[BackHistory](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FlowID] [int] NULL,
	[BackTo] [int] NULL,
	[BackType] [int] NULL,
	[FromNode] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Comment] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Time] [datetime] NULL,
 CONSTRAINT [PK_BackHistory] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[InfoComment]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[InfoComment]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[InfoComment](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NOT NULL,
	[UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Time] [datetime] NOT NULL,
	[EditTime] [datetime] NULL,
 CONSTRAINT [PK_InfoComment] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Tags]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Tags]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Tags](
	[Tag] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[InfoID] [int] NOT NULL,
 CONSTRAINT [PK_Tags] PRIMARY KEY CLUSTERED 
(
	[Tag] ASC,
	[InfoID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[BackRequest]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[BackRequest]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[BackRequest](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FlowID] [int] NULL,
	[TaskID] [int] NULL,
	[Sendee] [varchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Comment] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Requestor] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Time] [datetime] NULL,
	[BackID] [int] NULL,
 CONSTRAINT [PK_BackRequest] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[RolePower]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[RolePower]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[RolePower](
	[Role] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[SysAdmin] [bit] NULL,
	[EnCreatTemplet] [bit] NULL,
	[OrderAdmin] [bit] NULL,
	[Info_AllowPublish] [bit] NULL,
	[Info_AllowRead] [bit] NULL,
	[Info_ReadLevel] [int] NULL,
	[Info_AllowComment] [bit] NULL,
	[Info_AllowAdmin] [bit] NULL,
	[Sms_AllowSend] [bit] NULL,
	[Sms_AllowBatchSend] [bit] NULL,
	[Sms_AllowReceive] [bit] NULL,
	[Msg_AllowSend] [bit] NULL,
	[Msg_AllowBatchSend] [bit] NULL,
	[Mail_AllowSend] [bit] NULL,
	[Mail_AllowBatchSend] [bit] NULL,
 CONSTRAINT [aaaaaRolePower_PK] PRIMARY KEY NONCLUSTERED 
(
	[Role] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'RolePower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'810' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SysAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SysAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'RolePower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'SysAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'SysAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TempletAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TempletAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'RolePower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'EnCreatTemplet'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'EnCreatTemplet'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OrderAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OrderAdmin' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'RolePower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'RolePower', N'COLUMN',N'OrderAdmin'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower', @level2type=N'COLUMN',@level2name=N'OrderAdmin'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-1-19 10:54:57' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-8-30 10:28:26' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'RolePower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'RolePower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RolePower'
GO
INSERT [dbo].[RolePower] ([Role], [SysAdmin], [EnCreatTemplet], [OrderAdmin], [Info_AllowPublish], [Info_AllowRead], [Info_ReadLevel], [Info_AllowComment], [Info_AllowAdmin], [Sms_AllowSend], [Sms_AllowBatchSend], [Sms_AllowReceive], [Msg_AllowSend], [Msg_AllowBatchSend], [Mail_AllowSend], [Mail_AllowBatchSend]) VALUES (N'系统管理员', 1, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
/****** Object:  Table [dbo].[Info]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Info]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Info](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Attach] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[Time] [datetime] NOT NULL,
	[EditTime] [datetime] NULL,
	[Author] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Tags] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Summary] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
	[SecLevel] [int] NOT NULL,
	[AllowComment] [bit] NULL,
	[AtTop] [bit] NULL,
	[ClickTimes] [int] NULL,
	[Readers] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [PK_Info] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[History]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[History]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[History](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FlowID] [int] NOT NULL,
	[TaskID] [int] NOT NULL,
	[State] [tinyint] NULL,
	[Percent] [int] NULL,
	[Exer] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Uid] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Time] [datetime] NOT NULL,
 CONSTRAINT [PK_History] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Vars]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Vars]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Vars](
	[Key] [varchar](32) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[BinValue] [image] NULL,
	[Remark] [varchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaVars_PK] PRIMARY KEY NONCLUSTERED 
(
	[Key] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Vars]') AND name = N'key')
CREATE NONCLUSTERED INDEX [key] ON [dbo].[Vars] 
(
	[Key] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1095' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Key' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'25' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Key' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Vars' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Key'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Key'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'BinValue' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'BinValue' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Vars' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'BinValue'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'BinValue'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1785' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Remark' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Remark' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Vars' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Vars', N'COLUMN',N'Remark'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars', @level2type=N'COLUMN',@level2name=N'Remark'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-1-12 10:47:31' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2008-4-3 10:11:49' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Vars' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Vars', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Vars'
GO
INSERT [dbo].[Vars] ([Key], [BinValue], [Remark]) VALUES (CONVERT(TEXT, N'Vars' COLLATE Chinese_PRC_CI_AS),  , CONVERT(TEXT, N'系统选项' COLLATE Chinese_PRC_CI_AS))
/****** Object:  Table [dbo].[TempletFolders]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[TempletFolders]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[TempletFolders](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FolderName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[ParentID] [int] NOT NULL,
	[BuildTime] [datetime] NULL,
	[Builder] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[LastMender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [PK_TempletFolders] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Snapshot]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Snapshot]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Snapshot](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FlowID] [int] NOT NULL,
	[TaskID] [int] NULL,
	[NodeID] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[NodeName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[FormData] [image] NULL,
	[FormHash] [int] NULL,
	[LastProcessor] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Time] [datetime] NULL,
 CONSTRAINT [PK_Snapshot] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Fields]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Fields]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Fields](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[FieldName] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[DataType] [tinyint] NOT NULL,
	[ContentLen] [int] NULL,
	[EnEditor] [bit] NOT NULL,
	[AllowNull] [bit] NULL,
	[AllowRepeat] [bit] NULL,
	[DefaultVal] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NULL,
	[Options] [nvarchar](2048) COLLATE Chinese_PRC_CI_AS NULL,
	[SecLevel] [tinyint] NULL,
	[TempletID] [int] NULL,
	[Unit] [nvarchar](64) COLLATE Chinese_PRC_CI_AS NULL,
	[Formula] [varchar](1024) COLLATE Chinese_PRC_CI_AS NULL,
	[Query] [varbinary](8000) NULL,
	[InnerLink] [varbinary](8000) NULL,
	[AutoComplete] [varbinary](8000) NULL,
	[AllowInput] [bit] NULL,
	[ColIndex_MultiColEdit] [int] NULL,
	[ColIndex_Display] [int] NULL,
	[RowIndex_MultiColEdit] [int] NULL,
	[RowIndex_Display] [int] NULL,
	[ColIndex_MultiRowEdit] [int] NULL,
	[ColIndex_Display_Table] [int] NULL,
	[ColWidth_MultiRowEdit] [int] NULL,
	[ColWidth_Display_Table] [int] NULL,
	[RowIndex_Design] [int] NULL,
	[RowIndex_SingleColEdit] [int] NULL,
	[Visible] [bit] NULL,
	[Regex] [nvarchar](1024) COLLATE Chinese_PRC_CI_AS NULL,
	[Note] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaFields_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Fields]') AND name = N'SortNum')
CREATE NONCLUSTERED INDEX [SortNum] ON [dbo].[Fields] 
(
	[ColIndex_MultiColEdit] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'720' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1500' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'FieldName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'18' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'FieldName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'FieldName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'FieldName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'945' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DataType' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DataType' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DataType'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DataType'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1050' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ContentLen' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ContentLen' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ContentLen'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ContentLen'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'EnEditor' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'EnEditor' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'EnEditor'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'EnEditor'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'990' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'AllowNull' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'AllowNull' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowNull'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowNull'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'AllowRepeat' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'AllowRepeat' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AllowRepeat'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AllowRepeat'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1125' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DefaultVal' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DefaultVal' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'DefaultVal'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'DefaultVal'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Options' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'9' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Options' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Options'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Options'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'930' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SecLevel' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SecLevel' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'SecLevel'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'SecLevel'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1110' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'885' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Unit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'13' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Unit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Unit'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Unit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1245' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Formula' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'14' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Formula' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Formula'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Formula'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1290' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Query' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'15' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Query' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'Query'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'Query'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1245' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'InnerLink' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'16' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'InnerLink' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'InnerLink'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'InnerLink'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1275' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'AutoComplete' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'AutoComplete' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'AutoComplete'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'AutoComplete'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1365' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColIndex_Edit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'18' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColIndex_Edit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColIndex_Display' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'19' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColIndex_Display' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'RowIndex_Edit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'20' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'RowIndex_Edit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_MultiColEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_MultiColEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'RowIndex_Display' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'21' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'RowIndex_Display' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'RowIndex_Display'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'RowIndex_Display'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColIndex_Edit_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'22' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColIndex_Edit_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColIndex_Display_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'23' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColIndex_Display_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColIndex_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColIndex_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColWidth_Edit_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'24' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColWidth_Edit_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_MultiRowEdit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_MultiRowEdit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ColWidth_Display_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'25' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ColWidth_Display_Data' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Fields', N'COLUMN',N'ColWidth_Display_Table'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields', @level2type=N'COLUMN',@level2name=N'ColWidth_Display_Table'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-12-5 8:21:59' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2008-4-7 11:48:39' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Fields' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'34' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Fields', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Fields'
GO
/****** Object:  Table [dbo].[Tasks]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Tasks]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Tasks](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FlowID] [int] NOT NULL,
	[NodeID] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[NodeName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[PrevNodeID] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[State] [tinyint] NOT NULL,
	[Executor] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[ExersCount] [int] NULL,
	[Exers] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[StartTime] [datetime] NOT NULL,
	[EndTime] [datetime] NOT NULL,
	[FinishTime] [datetime] NULL,
	[Handover] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
 CONSTRAINT [PK_Tasks] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[WorkFlows]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[WorkFlows]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[WorkFlows](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Flow] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[Subject] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[TempletID] [int] NOT NULL,
	[FormID] [int] NOT NULL,
	[State] [tinyint] NULL,
	[Builder] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[BuildTime] [datetime] NOT NULL,
	[Starter] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[StartTime] [datetime] NULL,
	[EndTime] [datetime] NOT NULL,
	[FinishTime] [datetime] NULL,
 CONSTRAINT [PK_WorkFlows] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Templets]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Templets]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Templets](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[TableName] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[FirstIdenField] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[PriceField] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[EShop] [bit] NOT NULL,
	[Filters] [image] NULL,
	[LastModified] [datetime] NULL,
	[LastMender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[DefaultDir] [int] NULL,
	[DefaultSecLevel] [tinyint] NOT NULL,
	[ViewSetting] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[SecOptions] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
	[FolderID] [int] NOT NULL,
	[Relations] [varchar](6000) COLLATE Chinese_PRC_CI_AS NULL,
	[CommentSetting] [varchar](400) COLLATE Chinese_PRC_CI_AS NULL,
	[UnionKeys] [varchar](90) COLLATE Chinese_PRC_CI_AS NULL,
	[PowerAs] [int] NULL,
	[Generators] [varchar](8000) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaTemplets_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Templets]') AND name = N'ID')
CREATE NONCLUSTERED INDEX [ID] ON [dbo].[Templets] 
(
	[ID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Templets]') AND name = N'IdenFieldID')
CREATE NONCLUSTERED INDEX [IdenFieldID] ON [dbo].[Templets] 
(
	[FirstIdenField] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Templets]') AND name = N'PriceFieldID')
CREATE NONCLUSTERED INDEX [PriceFieldID] ON [dbo].[Templets] 
(
	[PriceField] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Templets]') AND name = N'TableName')
CREATE UNIQUE NONCLUSTERED INDEX [TableName] ON [dbo].[Templets] 
(
	[TableName] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Name'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TableName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'48' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TableName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'TableName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'TableName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'IdenFieldID_m' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'IdenFieldID_m' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'FirstIdenField'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'FirstIdenField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'PriceFieldID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'PriceFieldID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'PriceField'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'PriceField'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'EShop' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'EShop' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'EShop'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'EShop'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Filters' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'9' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Filters' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'Filters'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'Filters'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'Now()' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'LastModified' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'LastModified' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastModified'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastModified'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Templets', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-12-5 9:06:26' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2008-3-18 16:57:34' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Templets' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Templets', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Templets'
GO
/****** Object:  Table [dbo].[BusinessRules]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[BusinessRules]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[BusinessRules](
	[RuleName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Basis] [nvarchar](4) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[CondOperator] [tinyint] NULL,
	[Value1] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Value2] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[OperaChar] [nvarchar](1) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[OperaNum] [float] NULL,
 CONSTRAINT [PK_BusinessRules] PRIMARY KEY CLUSTERED 
(
	[RuleName] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[BusinessRules]') AND name = N'OperaNum')
CREATE NONCLUSTERED INDEX [OperaNum] ON [dbo].[BusinessRules] 
(
	[OperaNum] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'RuleName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'RuleName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'RuleName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'RuleName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Basis' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Basis' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Basis'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Basis'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'CondOperator' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'CondOperator' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'CondOperator'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'CondOperator'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Value1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Value1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value1'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value1'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Value2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Value2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'Value2'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'Value2'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OperaChar' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OperaChar' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaChar'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaChar'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OperaNum' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OperaNum' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'BusinessRules', N'COLUMN',N'OperaNum'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules', @level2type=N'COLUMN',@level2name=N'OperaNum'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-8-6 17:37:49' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2008-3-19 8:30:50' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'BusinessRules' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'BusinessRules', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BusinessRules'
GO
/****** Object:  Table [dbo].[DirPower]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DirPower]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[DirPower](
	[DirID] [int] NOT NULL,
	[Role] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Power] [tinyint] NULL,
 CONSTRAINT [aaaaaDirPower_PK] PRIMARY KEY NONCLUSTERED 
(
	[DirID] ASC,
	[Role] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[DirPower]') AND name = N'DirID')
CREATE NONCLUSTERED INDEX [DirID] ON [dbo].[DirPower] 
(
	[DirID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'DirPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'DirPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Power' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Power' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'DirPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'DirPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-3-20 8:31:20' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-3-30 16:08:37' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'13' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'DirPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirPower'
GO
INSERT [dbo].[DirPower] ([DirID], [Role], [Power]) VALUES (0, N'匿名用户', 1)
INSERT [dbo].[DirPower] ([DirID], [Role], [Power]) VALUES (0, N'注册用户', 1)
/****** Object:  Table [dbo].[Files]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Files]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Files](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[FileName] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[FileType] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[Size] [int] NOT NULL,
	[Creator] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[CreateTime] [datetime] NOT NULL,
	[Dir] [int] NOT NULL,
 CONSTRAINT [PK_Files] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Message]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Message]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Message](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Sender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Sendee] [text] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Reader] [text] COLLATE Chinese_PRC_CI_AS NULL,
	[Subject] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Files] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[SendTime] [datetime] NULL,
	[Read] [text] COLLATE Chinese_PRC_CI_AS NULL,
	[DeletedBySender] [bit] NOT NULL,
	[RemindId] [int] NULL,
 CONSTRAINT [PK_Message] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Notify]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Notify]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Notify](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[TaskID] [int] NULL,
	[Exer] [text] COLLATE Chinese_PRC_CI_AS NULL,
	[NotExer] [text] COLLATE Chinese_PRC_CI_AS NULL,
	[Way] [tinyint] NOT NULL,
	[NotifyTime] [datetime] NOT NULL,
	[CreateTime] [datetime] NOT NULL,
 CONSTRAINT [PK_Notify] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Remind]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Remind]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Remind](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[TempletID] [int] NULL,
	[Condition] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[StartTime] [datetime] NULL,
	[LoopCycle] [varchar](400) COLLATE Chinese_PRC_CI_AS NULL,
	[Receiver] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[Way] [tinyint] NOT NULL,
	[NextTime] [datetime] NULL,
	[RemindTimes] [int] NULL,
	[Enabled] [bit] NOT NULL,
	[LastCheck] [datetime] NULL,
 CONSTRAINT [PK_Remind] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[OrderDetail]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[OrderDetail]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[OrderDetail](
	[OrderID] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Tid] [int] NOT NULL,
	[Rid] [int] NOT NULL,
	[GoodsName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Amount] [int] NULL,
	[Price] [float] NULL,
	[Remark] [nvarchar](1024) COLLATE Chinese_PRC_CI_AS NULL
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[OrderDetail]') AND name = N'OrderID')
CREATE NONCLUSTERED INDEX [OrderID] ON [dbo].[OrderDetail] 
(
	[OrderID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[OrderDetail]') AND name = N'Rid')
CREATE NONCLUSTERED INDEX [Rid] ON [dbo].[OrderDetail] 
(
	[Rid] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[OrderDetail]') AND name = N'Tid')
CREATE NONCLUSTERED INDEX [Tid] ON [dbo].[OrderDetail] 
(
	[Tid] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OrderID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'20' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OrderID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'OrderID'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'OrderID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Tid' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Tid' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Tid'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Tid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Rid' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Rid' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Rid'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Rid'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'GoodsName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'GoodsName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'GoodsName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'GoodsName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Amount' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Amount' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Amount'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Amount'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Price' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Price' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'OrderDetail', N'COLUMN',N'Price'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail', @level2type=N'COLUMN',@level2name=N'Price'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-8-13 17:49:54' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-9-5 8:13:47' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OrderDetail' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'79' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'OrderDetail', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'OrderDetail'
GO
/****** Object:  Table [dbo].[Comment]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Comment]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Comment](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Tid] [int] NOT NULL,
	[Rid] [int] NOT NULL,
	[UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Time] [datetime] NOT NULL,
	[EditTime] [datetime] NULL,
 CONSTRAINT [PK_Comment] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[DirIndex]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DirIndex]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[DirIndex](
	[TempletID] [int] NOT NULL,
	[DirID] [int] NOT NULL,
 CONSTRAINT [aaaaaDirIndex_PK] PRIMARY KEY NONCLUSTERED 
(
	[TempletID] ASC,
	[DirID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[DirIndex]') AND name = N'DirID')
CREATE NONCLUSTERED INDEX [DirID] ON [dbo].[DirIndex] 
(
	[DirID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[DirIndex]') AND name = N'TempletID')
CREATE NONCLUSTERED INDEX [TempletID] ON [dbo].[DirIndex] 
(
	[TempletID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'DirIndex' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DirID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'DirIndex' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'DirIndex', N'COLUMN',N'DirID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex', @level2type=N'COLUMN',@level2name=N'DirID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-4-28 11:13:33' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-7-16 9:04:16' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirIndex' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'DirIndex', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DirIndex'
GO
/****** Object:  Table [dbo].[Units]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Units]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Units](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UnitName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[ParentID] [int] NOT NULL,
	[SortNum] [int] NULL,
	[Deep] [int] NOT NULL,
 CONSTRAINT [PK_Units] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Orders]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Orders]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Orders](
	[ID] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[SumPrice] [float] NULL,
	[TotalPrice] [float] NULL,
	[BusinessMent] [varbinary](8000) NULL,
	[PriceUnit] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
	[SendWay] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[PayWay] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
	[NeedInvoice] [bit] NOT NULL,
	[InvoiceTitle] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Address] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Zip] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[Contact] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Phone] [nvarchar](128) COLLATE Chinese_PRC_CI_AS NULL,
	[Email] [nvarchar](128) COLLATE Chinese_PRC_CI_AS NULL,
	[CustomComment] [nvarchar](2000) COLLATE Chinese_PRC_CI_AS NULL,
	[AdminComment] [nvarchar](2000) COLLATE Chinese_PRC_CI_AS NULL,
	[OrderStatus] [tinyint] NULL,
	[SubmitTime] [datetime] NULL,
	[Submiter] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[OperaLog] [varbinary](8000) NULL,
 CONSTRAINT [aaaaaOrders_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Orders]') AND name = N'ID')
CREATE NONCLUSTERED INDEX [ID] ON [dbo].[Orders] 
(
	[ID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'20' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SumPrice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SumPrice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SumPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SumPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TotalPrice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TotalPrice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'TotalPrice'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'TotalPrice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'BusinessMent' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'BusinessMent' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'BusinessMent'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'BusinessMent'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'PriceUnit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'50' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'PriceUnit' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PriceUnit'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PriceUnit'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SendWay' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SendWay' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SendWay'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SendWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'PayWay' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'PayWay' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'PayWay'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'PayWay'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'NeedInvoice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'NeedInvoice' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'NeedInvoice'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'NeedInvoice'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'InvoiceTitle' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'InvoiceTitle' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'9' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'20' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Contact' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Contact' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Contact'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Contact'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Email' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'13' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Email' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Email'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Email'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'CustomComment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'14' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'CustomComment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'CustomComment'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'CustomComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'AdminComment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'15' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'AdminComment' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'AdminComment'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'AdminComment'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OrderStatus' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'16' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OrderStatus' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OrderStatus'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OrderStatus'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'Now()' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'SubmitTime' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'SubmitTime' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'SubmitTime'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'SubmitTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Submiter' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'18' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Submiter' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'Submiter'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'Submiter'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'OperaLog' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'19' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'OperaLog' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Orders', N'COLUMN',N'OperaLog'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders', @level2type=N'COLUMN',@level2name=N'OperaLog'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-8-13 16:52:15' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-9-10 9:19:19' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Orders' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'26' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Orders', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Orders'
GO
/****** Object:  Table [dbo].[UserExInfo]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[UserExInfo]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[UserExInfo](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[RealName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[UnitID] [int] NOT NULL,
	[IsRector] [bit] NULL,
	[ManagedUnits] [varchar](1024) COLLATE Chinese_PRC_CI_AS NULL,
	[RectedUnits] [varchar](1024) COLLATE Chinese_PRC_CI_AS NULL,
	[Sex] [bit] NOT NULL,
	[Address] [nvarchar](512) COLLATE Chinese_PRC_CI_AS NULL,
	[Zip] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[Phone] [varchar](64) COLLATE Chinese_PRC_CI_AS NULL,
	[InvoiceTitle] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Sh_Address] [nvarchar](512) COLLATE Chinese_PRC_CI_AS NULL,
	[Sh_Zip] [varchar](18) COLLATE Chinese_PRC_CI_AS NULL,
	[Sh_Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[Sh_Phone] [varchar](64) COLLATE Chinese_PRC_CI_AS NULL,
	[Sh_Way] [nvarchar](128) COLLATE Chinese_PRC_CI_AS NULL,
	[Pay_Way] [nvarchar](128) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaUserExInfo_PK] PRIMARY KEY NONCLUSTERED 
(
	[UserName] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[UserExInfo]') AND name = N'UserId')
CREATE NONCLUSTERED INDEX [UserId] ON [dbo].[UserExInfo] 
(
	[UserName] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'UserName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'UserName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'UserName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'UserName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'106' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Format' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'MS_Format', @value=N'Yes/No' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sex' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sex' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sex'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sex'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Address'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Zip'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Phone'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'InvoiceTitle' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'InvoiceTitle' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'InvoiceTitle'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'InvoiceTitle'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sh_Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sh_Address' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Address'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Address'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sh_Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'12' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sh_Zip' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Zip'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Zip'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sh_Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sh_Name' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Name'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Name'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sh_Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'9' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sh_Phone' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Phone'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Phone'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Sh_Way' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Sh_Way' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Sh_Way'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Sh_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Pay_Way' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'11' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Pay_Way' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'UserExInfo', N'COLUMN',N'Pay_Way'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo', @level2type=N'COLUMN',@level2name=N'Pay_Way'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-12-20 14:29:57' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-8-10 11:53:28' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'UserExInfo' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'7' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'UserExInfo', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UserExInfo'
GO
SET IDENTITY_INSERT [dbo].[UserExInfo] ON
INSERT [dbo].[UserExInfo] ([ID], [UserName], [RealName], [UnitID], [IsRector], [ManagedUnits], [RectedUnits], [Sex], [Address], [Zip], [Phone], [InvoiceTitle], [Sh_Address], [Sh_Zip], [Sh_Name], [Sh_Phone], [Sh_Way], [Pay_Way]) VALUES (1, N'admin', N'', 0, 0, NULL, NULL, 1, N'', CONVERT(TEXT, N'' COLLATE Chinese_PRC_CI_AS), CONVERT(TEXT, N'' COLLATE Chinese_PRC_CI_AS), NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[UserExInfo] OFF
/****** Object:  Table [dbo].[WorkFlow]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[WorkFlow]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[WorkFlow](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TempletID] [int] NULL,
	[Nodes] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
	[DataOpera] [tinyint] NULL,
	[Options] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
	[Builder] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[LastMender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[LastModified] [datetime] NOT NULL,
 CONSTRAINT [PK_WorkFlow] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)
)
END
GO
/****** Object:  Table [dbo].[Dirs]    Script Date: 06/12/2015 10:22:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[Dirs]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[Dirs](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[DirName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[ParentID] [int] NULL,
	[BuildTime] [datetime] NULL,
	[Builder] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[LastMender] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [aaaaaDirs_PK] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Dirs]') AND name = N'ID')
CREATE NONCLUSTERED INDEX [ID] ON [dbo].[Dirs] 
(
	[ID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[Dirs]') AND name = N'parentId')
CREATE NONCLUSTERED INDEX [parentId] ON [dbo].[Dirs] 
(
	[ParentID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'17' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'645' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1110' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'DirName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'DirName' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'DirName'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'DirName'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'1170' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ParentID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ParentID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'ParentID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'ParentID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'Now()' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'BuildTime' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'BuildTime' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'BuildTime'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'8' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'BuildTime'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Builder' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Builder' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'Builder'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'Builder'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'""' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'5' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'LastMender' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'Dirs', N'COLUMN',N'LastMender'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs', @level2type=N'COLUMN',@level2name=N'LastMender'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2006-12-5 9:11:50' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2008-3-19 8:23:41' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Dirs' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'6' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'Dirs', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dirs'
GO
/****** Object:  Table [dbo].[TempletPower]    Script Date: 06/12/2015 10:22:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[TempletPower]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[TempletPower](
	[TempletID] [int] NOT NULL,
	[Role] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[Power] [tinyint] NULL,
	[ReadPower] [int] NULL,
	[WritableFields] [varchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
	[AdminMadeByOther] [bit] NULL,
	[WritableAllFields] [bit] NULL,
	[ReadCondition] [nvarchar](2048) COLLATE Chinese_PRC_CI_AS NULL,
	[EditCondition] [nvarchar](2048) COLLATE Chinese_PRC_CI_AS NULL,
	[AllowAdd] [bit] NOT NULL,
	[ReadComment] [bit] NOT NULL,
	[WriteComment] [bit] NOT NULL,
	[AdminComment] [bit] NOT NULL,
	[Visible] [bit] NOT NULL,
 CONSTRAINT [aaaaaTempletPower_PK] PRIMARY KEY NONCLUSTERED 
(
	[TempletID] ASC,
	[Role] ASC
)
)
END
GO
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE id = OBJECT_ID(N'[dbo].[TempletPower]') AND name = N'DirID')
CREATE NONCLUSTERED INDEX [DirID] ON [dbo].[TempletPower] 
(
	[TempletID] ASC
)
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'TempletID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'TempletPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'TempletID'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'4' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'TempletID'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMEMode' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMEMode', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_IMESentMode' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'MS_IMESentMode', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Role' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'TempletPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'UnicodeCompression' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Role'))
EXEC dbo.sp_addextendedproperty @name=N'UnicodeCompression', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Role'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'Power' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'Power' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'TempletPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'Power'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'Power'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'AllowZeroLength' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'AllowZeroLength', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'CollatingOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'CollatingOrder', @value=N'2052' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnHidden' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnHidden', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnOrder' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnOrder', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'ColumnWidth' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'ColumnWidth', @value=N'-1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DataUpdatable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'DataUpdatable', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DefaultValue' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'DefaultValue', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DecimalPlaces' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DecimalPlaces', @value=N'255' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DisplayControl' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'MS_DisplayControl', @value=N'109' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'ReadPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'OrdinalPosition' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'OrdinalPosition', @value=N'3' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Required' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'Required', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Size' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'Size', @value=N'1' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceField' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'SourceField', @value=N'ReadPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'SourceTable' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'SourceTable', @value=N'TempletPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Type' , N'USER',N'dbo', N'TABLE',N'TempletPower', N'COLUMN',N'ReadPower'))
EXEC dbo.sp_addextendedproperty @name=N'Type', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower', @level2type=N'COLUMN',@level2name=N'ReadPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Attributes' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Attributes', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'DateCreated' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'DateCreated', @value=N'2007-6-29 15:07:30' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'LastUpdated' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'LastUpdated', @value=N'2007-6-29 17:12:50' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DefaultView' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_DefaultView', @value=N'2' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_OrderByOn' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_OrderByOn', @value=N'False' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Orientation' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'MS_Orientation', @value=N'0' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Name' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Name', @value=N'TempletPower' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'RecordCount' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'RecordCount', @value=N'10' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'Updatable' , N'USER',N'dbo', N'TABLE',N'TempletPower', NULL,NULL))
EXEC dbo.sp_addextendedproperty @name=N'Updatable', @value=N'True' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TempletPower'
GO
/****** Object:  Default [DF_BackHistory_FlowID]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackHistory_FlowID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackHistory_FlowID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackHistory] ADD  CONSTRAINT [DF_BackHistory_FlowID]  DEFAULT (0) FOR [FlowID]
END


END
GO
/****** Object:  Default [DF_BackHistory_BackTo]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackHistory_BackTo]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackHistory_BackTo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackHistory] ADD  CONSTRAINT [DF_BackHistory_BackTo]  DEFAULT (0) FOR [BackTo]
END


END
GO
/****** Object:  Default [DF_BackHistory_BackType]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackHistory_BackType]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackHistory_BackType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackHistory] ADD  CONSTRAINT [DF_BackHistory_BackType]  DEFAULT (0) FOR [BackType]
END


END
GO
/****** Object:  Default [DF_BackHistory_Time]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackHistory_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackHistory_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackHistory] ADD  CONSTRAINT [DF_BackHistory_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_BackRequest_FlowID]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackRequest_FlowID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackRequest_FlowID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackRequest] ADD  CONSTRAINT [DF_BackRequest_FlowID]  DEFAULT (0) FOR [FlowID]
END


END
GO
/****** Object:  Default [DF_BackRequest_TaskID]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackRequest_TaskID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackRequest_TaskID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackRequest] ADD  CONSTRAINT [DF_BackRequest_TaskID]  DEFAULT (0) FOR [TaskID]
END


END
GO
/****** Object:  Default [DF_BackRequest_Time]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackRequest_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackRequest_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackRequest] ADD  CONSTRAINT [DF_BackRequest_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_BackRequest_BackID]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_BackRequest_BackID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_BackRequest_BackID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BackRequest] ADD  CONSTRAINT [DF_BackRequest_BackID]  DEFAULT (null) FOR [BackID]
END


END
GO
/****** Object:  Default [DF__BusinessR__CondO__1DE57479]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__BusinessR__CondO__1DE57479]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__BusinessR__CondO__1DE57479]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BusinessRules] ADD  CONSTRAINT [DF__BusinessR__CondO__1DE57479]  DEFAULT (0) FOR [CondOperator]
END


END
GO
/****** Object:  Default [DF__BusinessR__Opera__1ED998B2]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__BusinessR__Opera__1ED998B2]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__BusinessR__Opera__1ED998B2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BusinessRules] ADD  CONSTRAINT [DF__BusinessR__Opera__1ED998B2]  DEFAULT (0) FOR [OperaNum]
END


END
GO
/****** Object:  Default [DF_Comment_Tid]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Comment_Tid]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Comment_Tid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Comment] ADD  CONSTRAINT [DF_Comment_Tid]  DEFAULT (0) FOR [Tid]
END


END
GO
/****** Object:  Default [DF_Comment_Rid]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Comment_Rid]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Comment_Rid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Comment] ADD  CONSTRAINT [DF_Comment_Rid]  DEFAULT (0) FOR [Rid]
END


END
GO
/****** Object:  Default [DF_Comment_Time]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Comment_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Comment_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Comment] ADD  CONSTRAINT [DF_Comment_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF__DirIndex__Temple__78B3EFCA]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__DirIndex__Temple__78B3EFCA]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__DirIndex__Temple__78B3EFCA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DirIndex] ADD  CONSTRAINT [DF__DirIndex__Temple__78B3EFCA]  DEFAULT (0) FOR [TempletID]
END


END
GO
/****** Object:  Default [DF__DirIndex__DirID__79A81403]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__DirIndex__DirID__79A81403]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__DirIndex__DirID__79A81403]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DirIndex] ADD  CONSTRAINT [DF__DirIndex__DirID__79A81403]  DEFAULT (0) FOR [DirID]
END


END
GO
/****** Object:  Default [DF__DirPower__Power__7C8480AE]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__DirPower__Power__7C8480AE]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__DirPower__Power__7C8480AE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DirPower] ADD  CONSTRAINT [DF__DirPower__Power__7C8480AE]  DEFAULT (0) FOR [Power]
END


END
GO
/****** Object:  Default [DF__Dirs__ParentID__7F60ED59]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Dirs__ParentID__7F60ED59]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Dirs__ParentID__7F60ED59]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Dirs] ADD  CONSTRAINT [DF__Dirs__ParentID__7F60ED59]  DEFAULT (0) FOR [ParentID]
END


END
GO
/****** Object:  Default [DF__Dirs__BuildTime__00551192]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Dirs__BuildTime__00551192]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Dirs__BuildTime__00551192]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Dirs] ADD  CONSTRAINT [DF__Dirs__BuildTime__00551192]  DEFAULT (getdate()) FOR [BuildTime]
END


END
GO
/****** Object:  Default [DF__Dirs__Builder__014935CB]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Dirs__Builder__014935CB]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Dirs__Builder__014935CB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Dirs] ADD  CONSTRAINT [DF__Dirs__Builder__014935CB]  DEFAULT ('') FOR [Builder]
END


END
GO
/****** Object:  Default [DF__Dirs__LastMender__023D5A04]    Script Date: 06/12/2015 10:22:43 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Dirs__LastMender__023D5A04]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Dirs__LastMender__023D5A04]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Dirs] ADD  CONSTRAINT [DF__Dirs__LastMender__023D5A04]  DEFAULT ('') FOR [LastMender]
END


END
GO
/****** Object:  Default [DF__Fields__DataType__0519C6AF]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__DataType__0519C6AF]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__DataType__0519C6AF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__DataType__0519C6AF]  DEFAULT (0) FOR [DataType]
END


END
GO
/****** Object:  Default [DF__Fields__ContentL__060DEAE8]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ContentL__060DEAE8]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ContentL__060DEAE8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ContentL__060DEAE8]  DEFAULT (0) FOR [ContentLen]
END


END
GO
/****** Object:  Default [DF__Fields__EnEditor__07020F21]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__EnEditor__07020F21]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__EnEditor__07020F21]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__EnEditor__07020F21]  DEFAULT (0) FOR [EnEditor]
END


END
GO
/****** Object:  Default [DF__Fields__AllowNul__07F6335A]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__AllowNul__07F6335A]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__AllowNul__07F6335A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__AllowNul__07F6335A]  DEFAULT (1) FOR [AllowNull]
END


END
GO
/****** Object:  Default [DF__Fields__AllowRep__08EA5793]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__AllowRep__08EA5793]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__AllowRep__08EA5793]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__AllowRep__08EA5793]  DEFAULT (1) FOR [AllowRepeat]
END


END
GO
/****** Object:  Default [DF__Fields__DefaultV__09DE7BCC]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__DefaultV__09DE7BCC]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__DefaultV__09DE7BCC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__DefaultV__09DE7BCC]  DEFAULT ('') FOR [DefaultVal]
END


END
GO
/****** Object:  Default [DF__Fields__Options__0AD2A005]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__Options__0AD2A005]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__Options__0AD2A005]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__Options__0AD2A005]  DEFAULT ('') FOR [Options]
END


END
GO
/****** Object:  Default [DF__Fields__SecLevel__0BC6C43E]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__SecLevel__0BC6C43E]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__SecLevel__0BC6C43E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__SecLevel__0BC6C43E]  DEFAULT (0) FOR [SecLevel]
END


END
GO
/****** Object:  Default [DF__Fields__TempletI__0DAF0CB0]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__TempletI__0DAF0CB0]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__TempletI__0DAF0CB0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__TempletI__0DAF0CB0]  DEFAULT (0) FOR [TempletID]
END


END
GO
/****** Object:  Default [DF__Fields__Unit__0EA330E9]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__Unit__0EA330E9]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__Unit__0EA330E9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__Unit__0EA330E9]  DEFAULT ('') FOR [Unit]
END


END
GO
/****** Object:  Default [DF__Fields__Formula__0F975522]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__Formula__0F975522]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__Formula__0F975522]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__Formula__0F975522]  DEFAULT ('') FOR [Formula]
END


END
GO
/****** Object:  Default [DF_Fields_AllowInput]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Fields_AllowInput]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Fields_AllowInput]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF_Fields_AllowInput]  DEFAULT (0) FOR [AllowInput]
END


END
GO
/****** Object:  Default [DF__Fields__ColIndex__108B795B]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColIndex__108B795B]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColIndex__108B795B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColIndex__108B795B]  DEFAULT ((-1)) FOR [ColIndex_MultiColEdit]
END


END
GO
/****** Object:  Default [DF__Fields__ColIndex__117F9D94]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColIndex__117F9D94]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColIndex__117F9D94]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColIndex__117F9D94]  DEFAULT ((-1)) FOR [ColIndex_Display]
END


END
GO
/****** Object:  Default [DF__Fields__RowIndex__1273C1CD]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__RowIndex__1273C1CD]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__RowIndex__1273C1CD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__RowIndex__1273C1CD]  DEFAULT ((-1)) FOR [RowIndex_MultiColEdit]
END


END
GO
/****** Object:  Default [DF__Fields__RowIndex__1367E606]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__RowIndex__1367E606]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__RowIndex__1367E606]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__RowIndex__1367E606]  DEFAULT ((-1)) FOR [RowIndex_Display]
END


END
GO
/****** Object:  Default [DF__Fields__ColIndex__145C0A3F]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColIndex__145C0A3F]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColIndex__145C0A3F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColIndex__145C0A3F]  DEFAULT ((-1)) FOR [ColIndex_MultiRowEdit]
END


END
GO
/****** Object:  Default [DF__Fields__ColIndex__15502E78]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColIndex__15502E78]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColIndex__15502E78]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColIndex__15502E78]  DEFAULT ((-1)) FOR [ColIndex_Display_Table]
END


END
GO
/****** Object:  Default [DF__Fields__ColWidth__164452B1]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColWidth__164452B1]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColWidth__164452B1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColWidth__164452B1]  DEFAULT ((-1)) FOR [ColWidth_MultiRowEdit]
END


END
GO
/****** Object:  Default [DF__Fields__ColWidth__173876EA]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__ColWidth__173876EA]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__ColWidth__173876EA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__ColWidth__173876EA]  DEFAULT ((-1)) FOR [ColWidth_Display_Table]
END


END
GO
/****** Object:  Default [DF_Fields_RowIndex_Design]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Fields_RowIndex_Design]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Fields_RowIndex_Design]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF_Fields_RowIndex_Design]  DEFAULT ((-1)) FOR [RowIndex_Design]
END


END
GO
/****** Object:  Default [DF_Fields_RowIndex_SingleColEdit]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Fields_RowIndex_SingleColEdit]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Fields_RowIndex_SingleColEdit]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF_Fields_RowIndex_SingleColEdit]  DEFAULT ((-1)) FOR [RowIndex_SingleColEdit]
END


END
GO
/****** Object:  Default [DF__Fields__Visible__6DCC4D03]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Fields__Visible__6DCC4D03]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Fields__Visible__6DCC4D03]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Fields] ADD  CONSTRAINT [DF__Fields__Visible__6DCC4D03]  DEFAULT (1) FOR [Visible]
END


END
GO
/****** Object:  Default [DF_Files_Size]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Files_Size]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Files_Size]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Files] ADD  CONSTRAINT [DF_Files_Size]  DEFAULT (0) FOR [Size]
END


END
GO
/****** Object:  Default [DF_Files_CreateTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Files_CreateTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Files_CreateTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Files] ADD  CONSTRAINT [DF_Files_CreateTime]  DEFAULT (getdate()) FOR [CreateTime]
END


END
GO
/****** Object:  Default [DF_Files_Dir]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Files_Dir]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Files_Dir]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Files] ADD  CONSTRAINT [DF_Files_Dir]  DEFAULT (0) FOR [Dir]
END


END
GO
/****** Object:  Default [DF_History_FlowID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_History_FlowID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_History_FlowID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[History] ADD  CONSTRAINT [DF_History_FlowID]  DEFAULT (0) FOR [FlowID]
END


END
GO
/****** Object:  Default [DF_History_TaskID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_History_TaskID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_History_TaskID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[History] ADD  CONSTRAINT [DF_History_TaskID]  DEFAULT (0) FOR [TaskID]
END


END
GO
/****** Object:  Default [DF_History_Percent]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_History_Percent]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_History_Percent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[History] ADD  CONSTRAINT [DF_History_Percent]  DEFAULT (0) FOR [Percent]
END


END
GO
/****** Object:  Default [DF_History_Time]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_History_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_History_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[History] ADD  CONSTRAINT [DF_History_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_Info_Time]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Info_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Info_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Info] ADD  CONSTRAINT [DF_Info_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_Info_SecLevel]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Info_SecLevel]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Info_SecLevel]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Info] ADD  CONSTRAINT [DF_Info_SecLevel]  DEFAULT (0) FOR [SecLevel]
END


END
GO
/****** Object:  Default [DF_Info_AllowComment]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Info_AllowComment]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Info_AllowComment]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Info] ADD  CONSTRAINT [DF_Info_AllowComment]  DEFAULT (0) FOR [AllowComment]
END


END
GO
/****** Object:  Default [DF_Info_AtTop]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Info_AtTop]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Info_AtTop]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Info] ADD  CONSTRAINT [DF_Info_AtTop]  DEFAULT (0) FOR [AtTop]
END


END
GO
/****** Object:  Default [DF_Info_ClickTimes]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Info_ClickTimes]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Info_ClickTimes]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Info] ADD  CONSTRAINT [DF_Info_ClickTimes]  DEFAULT (0) FOR [ClickTimes]
END


END
GO
/****** Object:  Default [DF_InfoComment_InfoID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_InfoComment_InfoID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_InfoComment_InfoID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[InfoComment] ADD  CONSTRAINT [DF_InfoComment_InfoID]  DEFAULT (0) FOR [InfoID]
END


END
GO
/****** Object:  Default [DF_InfoComment_Time]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_InfoComment_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_InfoComment_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[InfoComment] ADD  CONSTRAINT [DF_InfoComment_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_Message_SendTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Message_SendTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Message_SendTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Message] ADD  CONSTRAINT [DF_Message_SendTime]  DEFAULT (getdate()) FOR [SendTime]
END


END
GO
/****** Object:  Default [DF_Message_DeletedBySender]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Message_DeletedBySender]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Message_DeletedBySender]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Message] ADD  CONSTRAINT [DF_Message_DeletedBySender]  DEFAULT (0) FOR [DeletedBySender]
END


END
GO
/****** Object:  Default [DF_Message_RemindId]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Message_RemindId]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Message_RemindId]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Message] ADD  CONSTRAINT [DF_Message_RemindId]  DEFAULT (0) FOR [RemindId]
END


END
GO
/****** Object:  Default [DF_Notify_TaskID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Notify_TaskID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Notify_TaskID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Notify] ADD  CONSTRAINT [DF_Notify_TaskID]  DEFAULT (0) FOR [TaskID]
END


END
GO
/****** Object:  Default [DF_Notify_NotifyTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Notify_NotifyTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Notify_NotifyTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Notify] ADD  CONSTRAINT [DF_Notify_NotifyTime]  DEFAULT (getdate()) FOR [NotifyTime]
END


END
GO
/****** Object:  Default [DF_Notify_CreateTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Notify_CreateTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Notify_CreateTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Notify] ADD  CONSTRAINT [DF_Notify_CreateTime]  DEFAULT (getdate()) FOR [CreateTime]
END


END
GO
/****** Object:  Default [DF__OrderDetail__Tid__52593CB8]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__OrderDetail__Tid__52593CB8]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__OrderDetail__Tid__52593CB8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OrderDetail] ADD  CONSTRAINT [DF__OrderDetail__Tid__52593CB8]  DEFAULT (0) FOR [Tid]
END


END
GO
/****** Object:  Default [DF__OrderDetail__Rid__534D60F1]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__OrderDetail__Rid__534D60F1]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__OrderDetail__Rid__534D60F1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OrderDetail] ADD  CONSTRAINT [DF__OrderDetail__Rid__534D60F1]  DEFAULT (0) FOR [Rid]
END


END
GO
/****** Object:  Default [DF__OrderDeta__Amoun__5441852A]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__OrderDeta__Amoun__5441852A]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__OrderDeta__Amoun__5441852A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OrderDetail] ADD  CONSTRAINT [DF__OrderDeta__Amoun__5441852A]  DEFAULT (0) FOR [Amount]
END


END
GO
/****** Object:  Default [DF__OrderDeta__Price__5535A963]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__OrderDeta__Price__5535A963]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__OrderDeta__Price__5535A963]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OrderDetail] ADD  CONSTRAINT [DF__OrderDeta__Price__5535A963]  DEFAULT (0) FOR [Price]
END


END
GO
/****** Object:  Default [DF__Orders__SumPrice__20C1E124]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__SumPrice__20C1E124]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__SumPrice__20C1E124]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__SumPrice__20C1E124]  DEFAULT (0) FOR [SumPrice]
END


END
GO
/****** Object:  Default [DF__Orders__TotalPri__21B6055D]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__TotalPri__21B6055D]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__TotalPri__21B6055D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__TotalPri__21B6055D]  DEFAULT (0) FOR [TotalPrice]
END


END
GO
/****** Object:  Default [DF__Orders__PriceUni__22AA2996]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__PriceUni__22AA2996]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__PriceUni__22AA2996]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__PriceUni__22AA2996]  DEFAULT ('') FOR [PriceUnit]
END


END
GO
/****** Object:  Default [DF__Orders__SendWay__239E4DCF]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__SendWay__239E4DCF]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__SendWay__239E4DCF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__SendWay__239E4DCF]  DEFAULT ('') FOR [SendWay]
END


END
GO
/****** Object:  Default [DF__Orders__PayWay__24927208]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__PayWay__24927208]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__PayWay__24927208]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__PayWay__24927208]  DEFAULT ('') FOR [PayWay]
END


END
GO
/****** Object:  Default [DF__Orders__NeedInvo__25869641]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__NeedInvo__25869641]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__NeedInvo__25869641]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__NeedInvo__25869641]  DEFAULT (0) FOR [NeedInvoice]
END


END
GO
/****** Object:  Default [DF__Orders__InvoiceT__267ABA7A]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__InvoiceT__267ABA7A]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__InvoiceT__267ABA7A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__InvoiceT__267ABA7A]  DEFAULT ('') FOR [InvoiceTitle]
END


END
GO
/****** Object:  Default [DF__Orders__Address__276EDEB3]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Address__276EDEB3]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Address__276EDEB3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Address__276EDEB3]  DEFAULT ('') FOR [Address]
END


END
GO
/****** Object:  Default [DF__Orders__Zip__286302EC]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Zip__286302EC]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Zip__286302EC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Zip__286302EC]  DEFAULT ('') FOR [Zip]
END


END
GO
/****** Object:  Default [DF__Orders__Contact__29572725]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Contact__29572725]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Contact__29572725]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Contact__29572725]  DEFAULT ('') FOR [Contact]
END


END
GO
/****** Object:  Default [DF__Orders__Phone__2A4B4B5E]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Phone__2A4B4B5E]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Phone__2A4B4B5E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Phone__2A4B4B5E]  DEFAULT ('') FOR [Phone]
END


END
GO
/****** Object:  Default [DF__Orders__Email__2B3F6F97]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Email__2B3F6F97]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Email__2B3F6F97]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Email__2B3F6F97]  DEFAULT ('') FOR [Email]
END


END
GO
/****** Object:  Default [DF__Orders__CustomCo__2C3393D0]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__CustomCo__2C3393D0]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__CustomCo__2C3393D0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__CustomCo__2C3393D0]  DEFAULT ('') FOR [CustomComment]
END


END
GO
/****** Object:  Default [DF__Orders__AdminCom__2D27B809]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__AdminCom__2D27B809]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__AdminCom__2D27B809]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__AdminCom__2D27B809]  DEFAULT ('') FOR [AdminComment]
END


END
GO
/****** Object:  Default [DF__Orders__OrderSta__2E1BDC42]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__OrderSta__2E1BDC42]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__OrderSta__2E1BDC42]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__OrderSta__2E1BDC42]  DEFAULT (0) FOR [OrderStatus]
END


END
GO
/****** Object:  Default [DF__Orders__SubmitTi__2F10007B]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__SubmitTi__2F10007B]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__SubmitTi__2F10007B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__SubmitTi__2F10007B]  DEFAULT (getdate()) FOR [SubmitTime]
END


END
GO
/****** Object:  Default [DF__Orders__Submiter__300424B4]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Orders__Submiter__300424B4]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Orders__Submiter__300424B4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF__Orders__Submiter__300424B4]  DEFAULT ('') FOR [Submiter]
END


END
GO
/****** Object:  Default [DF_Remind_TempletID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Remind_TempletID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Remind_TempletID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Remind] ADD  CONSTRAINT [DF_Remind_TempletID]  DEFAULT (0) FOR [TempletID]
END


END
GO
/****** Object:  Default [DF_Remind_StartTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Remind_StartTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Remind_StartTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Remind] ADD  CONSTRAINT [DF_Remind_StartTime]  DEFAULT (getdate()) FOR [StartTime]
END


END
GO
/****** Object:  Default [DF_Remind_NextTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Remind_NextTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Remind_NextTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Remind] ADD  CONSTRAINT [DF_Remind_NextTime]  DEFAULT (getdate()) FOR [NextTime]
END


END
GO
/****** Object:  Default [DF_Remind_RemindTimes]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Remind_RemindTimes]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Remind_RemindTimes]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Remind] ADD  CONSTRAINT [DF_Remind_RemindTimes]  DEFAULT (0) FOR [RemindTimes]
END


END
GO
/****** Object:  Default [DF_Remind_Enabled]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Remind_Enabled]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Remind_Enabled]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Remind] ADD  CONSTRAINT [DF_Remind_Enabled]  DEFAULT (1) FOR [Enabled]
END


END
GO
/****** Object:  Default [DF__RolePower__SysAd__38996AB5]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__RolePower__SysAd__38996AB5]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__RolePower__SysAd__38996AB5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF__RolePower__SysAd__38996AB5]  DEFAULT (0) FOR [SysAdmin]
END


END
GO
/****** Object:  Default [DF__RolePower__Templ__398D8EEE]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__RolePower__Templ__398D8EEE]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__RolePower__Templ__398D8EEE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF__RolePower__Templ__398D8EEE]  DEFAULT (0) FOR [EnCreatTemplet]
END


END
GO
/****** Object:  Default [DF__RolePower__Order__3A81B327]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__RolePower__Order__3A81B327]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__RolePower__Order__3A81B327]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF__RolePower__Order__3A81B327]  DEFAULT (0) FOR [OrderAdmin]
END


END
GO
/****** Object:  Default [DF_RolePower_Info_AllowPublish]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Info_AllowPublish]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Info_AllowPublish]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Info_AllowPublish]  DEFAULT (0) FOR [Info_AllowPublish]
END


END
GO
/****** Object:  Default [DF_RolePower_Info_AllowRead]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Info_AllowRead]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Info_AllowRead]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Info_AllowRead]  DEFAULT (0) FOR [Info_AllowRead]
END


END
GO
/****** Object:  Default [DF_RolePower_Info_ReadLevel]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Info_ReadLevel]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Info_ReadLevel]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Info_ReadLevel]  DEFAULT ((-1)) FOR [Info_ReadLevel]
END


END
GO
/****** Object:  Default [DF_RolePower_Info_AllowComment]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Info_AllowComment]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Info_AllowComment]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Info_AllowComment]  DEFAULT (0) FOR [Info_AllowComment]
END


END
GO
/****** Object:  Default [DF_RolePower_Info_AllowAdmin]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Info_AllowAdmin]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Info_AllowAdmin]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Info_AllowAdmin]  DEFAULT (0) FOR [Info_AllowAdmin]
END


END
GO
/****** Object:  Default [DF_RolePower_Sms_AllowSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Sms_AllowSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Sms_AllowSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Sms_AllowSend]  DEFAULT (0) FOR [Sms_AllowSend]
END


END
GO
/****** Object:  Default [DF_RolePower_Sms_AllowBatchSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Sms_AllowBatchSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Sms_AllowBatchSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Sms_AllowBatchSend]  DEFAULT (0) FOR [Sms_AllowBatchSend]
END


END
GO
/****** Object:  Default [DF_RolePower_Sms_AllowReceive]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Sms_AllowReceive]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Sms_AllowReceive]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Sms_AllowReceive]  DEFAULT (0) FOR [Sms_AllowReceive]
END


END
GO
/****** Object:  Default [DF_RolePower_Msg_AllowSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Msg_AllowSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Msg_AllowSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Msg_AllowSend]  DEFAULT (0) FOR [Msg_AllowSend]
END


END
GO
/****** Object:  Default [DF_RolePower_Msg_AllowBatchSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Msg_AllowBatchSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Msg_AllowBatchSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Msg_AllowBatchSend]  DEFAULT (0) FOR [Msg_AllowBatchSend]
END


END
GO
/****** Object:  Default [DF_RolePower_Mail_AllowSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Mail_AllowSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Mail_AllowSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Mail_AllowSend]  DEFAULT (0) FOR [Mail_AllowSend]
END


END
GO
/****** Object:  Default [DF_RolePower_Mail_AllowBatchSend]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_RolePower_Mail_AllowBatchSend]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_RolePower_Mail_AllowBatchSend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RolePower] ADD  CONSTRAINT [DF_RolePower_Mail_AllowBatchSend]  DEFAULT (0) FOR [Mail_AllowBatchSend]
END


END
GO
/****** Object:  Default [DF_Snapshot_FlowID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Snapshot_FlowID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Snapshot_FlowID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Snapshot] ADD  CONSTRAINT [DF_Snapshot_FlowID]  DEFAULT (0) FOR [FlowID]
END


END
GO
/****** Object:  Default [DF_Snapshot_TaskID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Snapshot_TaskID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Snapshot_TaskID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Snapshot] ADD  CONSTRAINT [DF_Snapshot_TaskID]  DEFAULT (0) FOR [TaskID]
END


END
GO
/****** Object:  Default [DF_Snapshot_FormHash]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Snapshot_FormHash]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Snapshot_FormHash]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Snapshot] ADD  CONSTRAINT [DF_Snapshot_FormHash]  DEFAULT (0) FOR [FormHash]
END


END
GO
/****** Object:  Default [DF_Snapshot_Time]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Snapshot_Time]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Snapshot_Time]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Snapshot] ADD  CONSTRAINT [DF_Snapshot_Time]  DEFAULT (getdate()) FOR [Time]
END


END
GO
/****** Object:  Default [DF_Tasks_State]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Tasks_State]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Tasks_State]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Tasks] ADD  CONSTRAINT [DF_Tasks_State]  DEFAULT (0) FOR [State]
END


END
GO
/****** Object:  Default [DF_Tasks_StartTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Tasks_StartTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Tasks_StartTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Tasks] ADD  CONSTRAINT [DF_Tasks_StartTime]  DEFAULT (getdate()) FOR [StartTime]
END


END
GO
/****** Object:  Default [DF__Tem_Init__SecLev__3D5E1FD2]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Tem_Init__SecLev__3D5E1FD2]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Tem_Init__SecLev__3D5E1FD2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Tem_Init] ADD  CONSTRAINT [DF__Tem_Init__SecLev__3D5E1FD2]  DEFAULT (0) FOR [SecLevel]
END


END
GO
/****** Object:  Default [DF__Tem_Init__LastMo__3E52440B]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Tem_Init__LastMo__3E52440B]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Tem_Init__LastMo__3E52440B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Tem_Init] ADD  CONSTRAINT [DF__Tem_Init__LastMo__3E52440B]  DEFAULT (getdate()) FOR [LastModified]
END


END
GO
/****** Object:  Default [DF_TempletFolders_ParentID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletFolders_ParentID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletFolders_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletFolders] ADD  CONSTRAINT [DF_TempletFolders_ParentID]  DEFAULT (0) FOR [ParentID]
END


END
GO
/****** Object:  Default [DF_TempletFolders_BuildTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletFolders_BuildTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletFolders_BuildTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletFolders] ADD  CONSTRAINT [DF_TempletFolders_BuildTime]  DEFAULT (getdate()) FOR [BuildTime]
END


END
GO
/****** Object:  Default [DF_TempletFolders_Builder]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletFolders_Builder]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletFolders_Builder]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletFolders] ADD  CONSTRAINT [DF_TempletFolders_Builder]  DEFAULT ('') FOR [Builder]
END


END
GO
/****** Object:  Default [DF_TempletFolders_LastMender]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletFolders_LastMender]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletFolders_LastMender]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletFolders] ADD  CONSTRAINT [DF_TempletFolders_LastMender]  DEFAULT ('') FOR [LastMender]
END


END
GO
/****** Object:  Default [DF__TempletPo__Power__4222D4EF]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__TempletPo__Power__4222D4EF]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__TempletPo__Power__4222D4EF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF__TempletPo__Power__4222D4EF]  DEFAULT (0) FOR [Power]
END


END
GO
/****** Object:  Default [DF_TempletPower_ReadPower]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_ReadPower]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_ReadPower]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_ReadPower]  DEFAULT ((-1)) FOR [ReadPower]
END


END
GO
/****** Object:  Default [DF__TempletPo__Admin__6EC0713C]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__TempletPo__Admin__6EC0713C]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__TempletPo__Admin__6EC0713C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF__TempletPo__Admin__6EC0713C]  DEFAULT (0) FOR [AdminMadeByOther]
END


END
GO
/****** Object:  Default [DF__TempletPo__Writa__6FB49575]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__TempletPo__Writa__6FB49575]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__TempletPo__Writa__6FB49575]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF__TempletPo__Writa__6FB49575]  DEFAULT (0) FOR [WritableAllFields]
END


END
GO
/****** Object:  Default [DF_TempletPower_AllowAdd]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_AllowAdd]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_AllowAdd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_AllowAdd]  DEFAULT (0) FOR [AllowAdd]
END


END
GO
/****** Object:  Default [DF_TempletPower_ReadComment]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_ReadComment]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_ReadComment]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_ReadComment]  DEFAULT (0) FOR [ReadComment]
END


END
GO
/****** Object:  Default [DF_TempletPower_WriteComment]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_WriteComment]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_WriteComment]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_WriteComment]  DEFAULT (0) FOR [WriteComment]
END


END
GO
/****** Object:  Default [DF_TempletPower_AdminComment]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_AdminComment]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_AdminComment]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_AdminComment]  DEFAULT (0) FOR [AdminComment]
END


END
GO
/****** Object:  Default [DF_TempletPower_Visible]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_TempletPower_Visible]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_TempletPower_Visible]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempletPower] ADD  CONSTRAINT [DF_TempletPower_Visible]  DEFAULT (1) FOR [Visible]
END


END
GO
/****** Object:  Default [DF__Templets__EShop__4AB81AF0]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Templets__EShop__4AB81AF0]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Templets__EShop__4AB81AF0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF__Templets__EShop__4AB81AF0]  DEFAULT (0) FOR [EShop]
END


END
GO
/****** Object:  Default [DF__Templets__LastMo__4BAC3F29]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Templets__LastMo__4BAC3F29]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Templets__LastMo__4BAC3F29]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF__Templets__LastMo__4BAC3F29]  DEFAULT (getdate()) FOR [LastModified]
END


END
GO
/****** Object:  Default [DF__Templets__LastMe__4CA06362]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__Templets__LastMe__4CA06362]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Templets__LastMe__4CA06362]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF__Templets__LastMe__4CA06362]  DEFAULT ('') FOR [LastMender]
END


END
GO
/****** Object:  Default [DF_Templets_DefaultDir]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Templets_DefaultDir]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Templets_DefaultDir]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF_Templets_DefaultDir]  DEFAULT (0) FOR [DefaultDir]
END


END
GO
/****** Object:  Default [DF_Templets_DefaultSecLevel]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Templets_DefaultSecLevel]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Templets_DefaultSecLevel]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF_Templets_DefaultSecLevel]  DEFAULT (0) FOR [DefaultSecLevel]
END


END
GO
/****** Object:  Default [DF_Templets_FolderID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Templets_FolderID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Templets_FolderID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF_Templets_FolderID]  DEFAULT (0) FOR [FolderID]
END


END
GO
/****** Object:  Default [DF_Templets_PowerAs]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Templets_PowerAs]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Templets_PowerAs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Templets] ADD  CONSTRAINT [DF_Templets_PowerAs]  DEFAULT (null) FOR [PowerAs]
END


END
GO
/****** Object:  Default [DF_Units_ParentID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Units_ParentID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Units_ParentID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Units] ADD  CONSTRAINT [DF_Units_ParentID]  DEFAULT (0) FOR [ParentID]
END


END
GO
/****** Object:  Default [DF_Units_SortNum]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Units_SortNum]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Units_SortNum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Units] ADD  CONSTRAINT [DF_Units_SortNum]  DEFAULT (0) FOR [SortNum]
END


END
GO
/****** Object:  Default [DF_Units_Deep]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_Units_Deep]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Units_Deep]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Units] ADD  CONSTRAINT [DF_Units_Deep]  DEFAULT (1) FOR [Deep]
END


END
GO
/****** Object:  Default [DF_UserExInfo_UnitID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_UserExInfo_UnitID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_UserExInfo_UnitID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[UserExInfo] ADD  CONSTRAINT [DF_UserExInfo_UnitID]  DEFAULT (0) FOR [UnitID]
END


END
GO
/****** Object:  Default [DF_UserExInfo_IsRector]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_UserExInfo_IsRector]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_UserExInfo_IsRector]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[UserExInfo] ADD  CONSTRAINT [DF_UserExInfo_IsRector]  DEFAULT (0) FOR [IsRector]
END


END
GO
/****** Object:  Default [DF__UserExInfo__Sex__4F7CD00D]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF__UserExInfo__Sex__4F7CD00D]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__UserExInfo__Sex__4F7CD00D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[UserExInfo] ADD  CONSTRAINT [DF__UserExInfo__Sex__4F7CD00D]  DEFAULT (1) FOR [Sex]
END


END
GO
/****** Object:  Default [DF_WorkFlow_TempletID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlow_TempletID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlow_TempletID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlow] ADD  CONSTRAINT [DF_WorkFlow_TempletID]  DEFAULT (0) FOR [TempletID]
END


END
GO
/****** Object:  Default [DF_WorkFlow_DataOpera]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlow_DataOpera]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlow_DataOpera]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlow] ADD  CONSTRAINT [DF_WorkFlow_DataOpera]  DEFAULT (0) FOR [DataOpera]
END


END
GO
/****** Object:  Default [DF_WorkFlow_LastModified]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlow_LastModified]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlow_LastModified]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlow] ADD  CONSTRAINT [DF_WorkFlow_LastModified]  DEFAULT (getdate()) FOR [LastModified]
END


END
GO
/****** Object:  Default [DF_WorkFlows_TempletID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlows_TempletID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlows_TempletID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlows] ADD  CONSTRAINT [DF_WorkFlows_TempletID]  DEFAULT (0) FOR [TempletID]
END


END
GO
/****** Object:  Default [DF_WorkFlows_FormID]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlows_FormID]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlows_FormID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlows] ADD  CONSTRAINT [DF_WorkFlows_FormID]  DEFAULT (0) FOR [FormID]
END


END
GO
/****** Object:  Default [DF_WorkFlows_State]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlows_State]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlows_State]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlows] ADD  CONSTRAINT [DF_WorkFlows_State]  DEFAULT (0) FOR [State]
END


END
GO
/****** Object:  Default [DF_WorkFlows_BuildTime]    Script Date: 06/12/2015 10:22:44 ******/
IF Not EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[DF_WorkFlows_BuildTime]') AND type = 'D')
BEGIN
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WorkFlows_BuildTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WorkFlows] ADD  CONSTRAINT [DF_WorkFlows_BuildTime]  DEFAULT (getdate()) FOR [BuildTime]
END


END
GO
