Relationship:
FK_Address_StateProvince_StateProvinceID
on
Address
Relationship properties
| Name | Value |
| Not For Replication |
FK columns
| Address column | StateProvince column | Type |
| StateProvinceID | StateProvinceID | int |
Extended properties
| Name | Value |
| MS_Description | Foreign key constraint referencing StateProvince.StateProvinceID. |
SQL
ALTER TABLE [Person].[Address] WITH CHECK ADD CONSTRAINT [FK_Address_StateProvince_StateProvinceID] FOREIGN KEY ([StateProvinceID]) REFERENCES [Person].[StateProvince] ([StateProvinceID]) ALTER TABLE [Person].[Address] CHECK CONSTRAINT [FK_Address_StateProvince_StateProvinceID] GO EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing StateProvince.StateProvinceID.', 'SCHEMA', N'Person', 'TABLE', N'Address', 'CONSTRAINT', N'FK_Address_StateProvince_StateProvinceID' GO |
See also