| Property | Value |
|---|---|
| Name | vEmployee |
| ID | 1803153469 |
| Schema | HumanResources |
| 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:44 PM |
| Create Date | 8/8/2010 5:23:44 PM |
| Name | Value |
|---|---|
| MS_Description | Employee names and addresses. |
| Column Name | Datatype | Nullable | Is Identity |
|---|---|---|---|
| BusinessEntityID | int |
|
|
| Title | nvarchar(8) |
|
|
| FirstName | Name |
|
|
| MiddleName | Name |
|
|
| LastName | Name |
|
|
| Suffix | nvarchar(10) |
|
|
| JobTitle | nvarchar(50) |
|
|
| PhoneNumber | Phone |
|
|
| PhoneNumberType | Name |
|
|
| EmailAddress | nvarchar(50) |
|
|
| EmailPromotion | int |
|
|
| AddressLine1 | nvarchar(60) |
|
|
| AddressLine2 | nvarchar(60) |
|
|
| City | nvarchar(30) |
|
|
| StateProvinceName | Name |
|
|
| PostalCode | nvarchar(15) |
|
|
| CountryRegionName | Name |
|
|
| AdditionalContactInfo | xml |
|
|
| Permission | Grantor | Grant | With Grant Option | Deny |
|---|---|---|---|---|
| Alter | ||||
| Control | ||||
| Delete | dbo |
|
||
| Execute | ||||
| Insert | dbo |
|
||
| Receive | ||||
| References | ||||
| Select | dbo |
|
||
| Take Ownership | ||||
| Update | ||||
| View Change Tracking | ||||
| View Definition |
| Permission | Grantor | Grant | With Grant | Deny |
|---|---|---|---|---|
| SELECT | ||||
| REFERENCES | ||||
| UPDATE | dbo |
|
| Permission | Grantor | Grant | With Grant | Deny |
|---|---|---|---|---|
| SELECT | dbo |
|
||
| REFERENCES | ||||
| UPDATE |
| Script |
|---|
| SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE VIEW [HumanResources].[vEmployee] AS SELECT e.[BusinessEntityID] ,p.[Title] ,p.[FirstName] ,p.[MiddleName] ,p.[LastName] ,p.[Suffix] ,e.[JobTitle] ,pp.[PhoneNumber] ,pnt.[Name] AS [PhoneNumberType] ,ea.[EmailAddress] ,p.[EmailPromotion] ,a.[AddressLine1] ,a.[AddressLine2] ,a.[City] ,sp.[Name] AS [StateProvinceName] ,a.[PostalCode] ,cr.[Name] AS [CountryRegionName] ,p.[AdditionalContactInfo] FROM [HumanResources].[Employee] e INNER JOIN [Person].[Person] p ON p.[BusinessEntityID] = e.[BusinessEntityID] INNER JOIN [Person].[BusinessEntityAddress] bea ON bea.[BusinessEntityID] = e.[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] LEFT OUTER JOIN [Person].[PersonPhone] pp ON pp.BusinessEntityID = p.[BusinessEntityID] LEFT OUTER JOIN [Person].[PhoneNumberType] pnt ON pp.[PhoneNumberTypeID] = pnt.[PhoneNumberTypeID] LEFT OUTER JOIN [Person].[EmailAddress] ea ON p.[BusinessEntityID] = ea.[BusinessEntityID]; EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Employee names and addresses.' , @level0type=N'SCHEMA',@level0name=N'HumanResources', @level1type=N'VIEW',@level1name=N'vEmployee' |