Relationship:
FK_CurrencyRate_Currency_ToCurrencyCode
on
CurrencyRate
Relationship properties
| Name | Value |
| Not For Replication |
FK columns
| CurrencyRate column | Currency column | Type |
| ToCurrencyCode | CurrencyCode | nchar |
Extended properties
| Name | Value |
| MS_Description | Foreign key constraint referencing Currency.ToCurrencyCode. |
SQL
ALTER TABLE [Sales].[CurrencyRate] WITH CHECK ADD CONSTRAINT [FK_CurrencyRate_Currency_ToCurrencyCode] FOREIGN KEY ([ToCurrencyCode]) REFERENCES [Sales].[Currency] ([CurrencyCode]) ALTER TABLE [Sales].[CurrencyRate] CHECK CONSTRAINT [FK_CurrencyRate_Currency_ToCurrencyCode] GO EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing Currency.ToCurrencyCode.', 'SCHEMA', N'Sales', 'TABLE', N'CurrencyRate', 'CONSTRAINT', N'FK_CurrencyRate_Currency_ToCurrencyCode' GO |
See also