Table: [AdventureWorks2016CTP3].[Sales].[Currency]

CollapseAll image

Collapse image Table properties


Name  Value 
 Schema  [Sales]
 Owner  [dbo]
 Table is replicated   
 Creation date  23.10.2015
 ID  1253579504
 Located on  PRIMARY
 Data size KB  8 KB
 Index size KB  24 KB
 Rows  105
 ChangeTrackingEnabled   
 FileStreamFileGroup   
 FileStreamPartitionScheme   
 LockEscalation  TABLE
 TrackColumnsUpdatedEnabled   
 Table is filetable   
 Filetable directory   
 Filetable collate   
 Filetable primary key  [PK_Currency_CurrencyCode]
 Filetable streamid unique   
 Filetable fullpath unique   
 Filetable is enabled   
 Is memory optimized   
 Durability  SCHEMA_AND_DATA

Collapse image Creation options


Name  Value 
QUOTED_IDENTIFIER ON
ANSI_NULLS ON
ANSI_PADDING ON

Collapse image Columns


  Name  Description  Data type  Max length  Nullable  Default IsGUID  SPARSE Computed value
Primary key CurrencyCode     nchar 3        
  Name     [dbo].[Name] 50        
  ModifiedDate     datetime 8   (getdate())    
Total: 3 column(s)

Collapse image Indexes


Index  Description  Primary  Unique  Size KB 
[PK_Currency_CurrencyCode] CurrencyCode   32 0
[AK_Currency_Name] Name     16 0
Total: 2 Index/indexes

Collapse image Columnstore indexes


No columnstore indexes exist

Collapse image Referencing tables


Table  Foreign key  Primary key or unique constraint 
[Sales].[CountryRegionCurrency] FK_CountryRegionCurrency_Currency_CurrencyCode PK_Currency_CurrencyCode
[Sales].[CurrencyRate] FK_CurrencyRate_Currency_FromCurrencyCode PK_Currency_CurrencyCode
[Sales].[CurrencyRate] FK_CurrencyRate_Currency_ToCurrencyCode PK_Currency_CurrencyCode
Total: 3 table(s)

Collapse image Objects that depend on [Sales].[Currency]


Object name Object type Dep level
[Sales].[CountryRegionCurrency] Table 1
[Sales].[CurrencyRate] Table 1
Total 2 object(s)

Collapse image Objects that [Sales].[Currency] depends on


Object name Object type Dep level
[Sales] Schema 1
[dbo].[Name] Datatype 1
Total 2 object(s)

Collapse image Extended properties


Name  Value 
MS_Description Lookup table containing standard ISO currencies.

Collapse image Table options


Name  Value 
Pintable OFF
Table lock on bulk load OFF
Insert row lock OFF
Text in row 0
Large value types out of row OFF

Collapse image SQL


SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_PADDING ON
GO
CREATE TABLE [Sales].[Currency] (
        [CurrencyCode]     [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [Name]             [dbo].[Name] NOT NULL,
        [ModifiedDate]     [datetime] NOT NULL,
        CONSTRAINT [PK_Currency_CurrencyCode]
        PRIMARY KEY
        CLUSTERED
        ([CurrencyCode])
    ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'CONSTRAINT', N'PK_Currency_CurrencyCode'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'INDEX', N'PK_Currency_CurrencyCode'
GO
ALTER TABLE [Sales].[Currency]
    ADD
    CONSTRAINT [DF_Currency_ModifiedDate]
    DEFAULT (getdate()) FOR [ModifiedDate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'CONSTRAINT', N'DF_Currency_ModifiedDate'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_Currency_Name]
    ON [Sales].[Currency] ([Name])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'INDEX', N'AK_Currency_Name'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The ISO code for the Currency.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'COLUMN', N'CurrencyCode'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'COLUMN', N'ModifiedDate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Currency name.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', 'COLUMN', N'Name'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Lookup table containing standard ISO currencies.', 'SCHEMA', N'Sales', 'TABLE', N'Currency', NULL, NULL
GO

Collapse image See also


List of tables