Northwind Database (Document! X Sample)
AdventureWorks Database / dbo Schema / dbo.Flag User Defined Data Type
In This Topic
    dbo.Flag User Defined Data Type
    In This Topic
    Properties
    Allow Identity
    Allow Nulls
    Base Typebit
    Default
    Variable Length
    Length1
    Max Size1
    Numeric Precision1
    Numeric scale0
    Rule
    Collation
    Columns in which this object is used
     TableColumn NameDescription
     EmployeeJob classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.
     Employee0 = Inactive, 1 = Active
     StateProvince0 = StateProvinceCode exists. 1 = StateProvinceCode unavailable, using CountryRegionCode.
     Product0 = Product is purchased, 1 = Product is manufactured in-house.
     Product0 = Product is not a salable item. 1 = Product is salable.
     ProductProductPhoto0 = Photo is not the principal image. 1 = Photo is the principal image.
     Vendor0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.
     Vendor0 = Vendor no longer used. 1 = Vendor is actively used.
     SalesOrderHeader0 = Order placed by sales person. 1 = Order placed online by customer.
    SQL
    CREATE TYPE [dbo].[Flag] FROM [bit] NOT NULL
    See Also