| Property | Value |
|---|---|
| Name | vStoreWithAddresses |
| ID | 2059154381 |
| Schema | Sales |
| Owner | dbo |
| Encrypted |
|
| Schema Bound |
|
| With Check Option |
|
| ANSI NULLS |
|
| Uses Quoted Identifier |
|
| Has Opaque Metadata |
|
| Published |
|
| Schema Published |
|
| Replicated |
|
| Has Replication Filter |
|
| Has Unchecked Assembly Data |
|
| Date Correlation View |
|
| Uses Database Collation |
|
| Tracked by CDC |
|
| MS Shipped |
|
| Modify Date | 8/8/2010 5:23:46 PM |
| Create Date | 8/8/2010 5:23:46 PM |
| Name | Value |
|---|---|
| MS_Description | Stores (including store addresses) that sell Adventure Works Cycles products to consumers. |
| Column Name | Datatype | Nullable | Is Identity |
|---|---|---|---|
| BusinessEntityID | int |
|
|
| Name | Name |
|
|
| AddressType | Name |
|
|
| AddressLine1 | nvarchar(60) |
|
|
| AddressLine2 | nvarchar(60) |
|
|
| City | nvarchar(30) |
|
|
| StateProvinceName | Name |
|
|
| PostalCode | nvarchar(15) |
|
|
| CountryRegionName | Name |
|
|
| Script |
|---|
| SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE VIEW [Sales].[vStoreWithAddresses] AS SELECT s.[BusinessEntityID] ,s.[Name] ,at.[Name] AS [AddressType] ,a.[AddressLine1] ,a.[AddressLine2] ,a.[City] ,sp.[Name] AS [StateProvinceName] ,a.[PostalCode] ,cr.[Name] AS [CountryRegionName] FROM [Sales].[Store] s INNER JOIN [Person].[BusinessEntityAddress] bea ON bea.[BusinessEntityID] = s.[BusinessEntityID] INNER JOIN [Person].[Address] a ON a.[AddressID] = bea.[AddressID] INNER JOIN [Person].[StateProvince] sp ON sp.[StateProvinceID] = a.[StateProvinceID] INNER JOIN [Person].[CountryRegion] cr ON cr.[CountryRegionCode] = sp.[CountryRegionCode] INNER JOIN [Person].[AddressType] at ON at.[AddressTypeID] = bea.[AddressTypeID]; EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Stores (including store addresses) that sell Adventure Works Cycles products to consumers.' , @level0type=N'SCHEMA',@level0name=N'Sales', @level1type=N'VIEW',@level1name=N'vStoreWithAddresses' |