Tables [dbo].[Market]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:59:41 AM Friday, December 7, 2018
Last Modified9:08:23 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_Market: MarketIDMarketIDint4
No
1 - 1
Indexes IX_Market_Description: DescriptionDescriptionvarchar(100)100
No
Indexes IX_Market_ExternalCode: ExternalCodeExternalCodevarchar(32)32
Yes
Indexes Indexes
NameColumnsUniqueFiltered
Cluster Primary Key PK_Market: MarketIDPK_MarketMarketID
Yes
IX_Market_DescriptionDescription
Yes
IX_Market_ExternalCodeExternalCode
Yes
Yes
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Market]
(
[MarketID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Market] ADD CONSTRAINT [PK_Market] PRIMARY KEY CLUSTERED  ([MarketID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Market] ADD CONSTRAINT [IX_Market_Description] UNIQUE NONCLUSTERED  ([Description]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_Market_ExternalCode] ON [dbo].[Market] ([ExternalCode]) WHERE ([ExternalCode] IS NOT NULL) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[Market] TO [MssExec]
GRANT INSERT ON  [dbo].[Market] TO [MssExec]
GRANT DELETE ON  [dbo].[Market] TO [MssExec]
GRANT UPDATE ON  [dbo].[Market] TO [MssExec]
GO
Uses
Used By