<?xml version="1.0" encoding="utf-8"?>
<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <link rel="stylesheet" href="../../../css/main.css" type="text/css" />
    <link rel="stylesheet" href="../../../css/jquery.treeview.css" />
    <script src="../../../script/jquery.js" type="text/javascript"></script>
    <script src="../../../script/jquery.cookie.js" type="text/javascript"></script>
    <script src="../../../script/jquery.treeview.js" type="text/javascript"></script>
    <script type="text/javascript">
		                $(document).ready(function(){

		                // first example
		                $("#navigation1").treeview({
			                persist: "location",
			                collapsed: true,
			                unique: true
		                });

		                $("#navigation2").treeview({
			                persist: "location",
			                collapsed: true,
			                unique: true
		                });

		                });
	                </script>
    <title>View</title>
  </head>
  <body>
    <h1>
      <img src="../../../Images/icons/view.png" alt="view icon" /> View: vProductAndDescription</h1>
    <h2>Properties</h2>
    <table id="GetViewList">
      <tr>
        <th>Property</th>
        <th>Value</th>
      </tr>
      <tr>
        <td>Name</td>
        <td>vProductAndDescription</td>
      </tr>
      <tr>
        <td>ID</td>
        <td>1931153925</td>
      </tr>
      <tr>
        <td>Schema</td>
        <td>
          <a href="../../Schemas/Details/Detail_7.html">Production</a>
        </td>
      </tr>
      <tr>
        <td>Owner</td>
        <td>
          <a href="../../Users/Details/Detail_1.html">dbo</a>
        </td>
      </tr>
      <tr>
        <td>Encrypted</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Schema Bound</td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>With Check Option</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>ANSI NULLS</td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Uses Quoted Identifier</td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Has Opaque Metadata</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Published</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Schema Published</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Replicated</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Has Replication Filter</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Has Unchecked Assembly Data</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Date Correlation View</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Uses Database Collation</td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Tracked by CDC</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>MS Shipped</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>Modify Date</td>
        <td>8/8/2010 5:23:45 PM</td>
      </tr>
      <tr>
        <td>Create Date</td>
        <td>8/8/2010 5:23:45 PM</td>
      </tr>
    </table>
    <h2>Extended Properties</h2>
    <table>
      <tr>
        <th>Name</th>
        <th>Value</th>
      </tr>
      <tr>
        <td>MS_Description</td>
        <td>Product names and descriptions. Product descriptions are provided in multiple languages.</td>
      </tr>
    </table>
    <h2>View Columns</h2>
    <table>
      <tr>
        <th>Column Name</th>
        <th>Datatype</th>
        <th>Nullable</th>
        <th>Is Identity</th>
      </tr>
      <tr>
        <td>
          <a href="Columns/Column_1931153925_1.html">ProductID</a>
        </td>
        <td>int</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>
          <a href="Columns/Column_1931153925_2.html">Name</a>
        </td>
        <td>Name</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>
          <a href="Columns/Column_1931153925_3.html">ProductModel</a>
        </td>
        <td>Name</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>
          <a href="Columns/Column_1931153925_4.html">CultureID</a>
        </td>
        <td>nchar(6)</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
      <tr>
        <td>
          <a href="Columns/Column_1931153925_5.html">Description</a>
        </td>
        <td>nvarchar(400)</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
    </table>
    <h2>Indexes</h2>
    <table>
      <tr>
        <th>Name</th>
        <th>Index Type</th>
        <th>Primary Key</th>
        <th>Unique</th>
        <th>Unique Constraint</th>
        <th>Ignore Duplicate Key</th>
        <th>Disabled</th>
      </tr>
      <tr>
        <td>
          <a href="Indexes/Detail_1931153925_1.html">IX_vProductAndDescription</a>
        </td>
        <td>CLUSTERED</td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
        <td>
          <img src="../../../images/icons/false.png" alt="false" class="boolean" />
        </td>
      </tr>
    </table>
    <h2>Object Level Permissions</h2>
    <span>No object level permissions defined.</span>
    <h2>Column Level Permissions</h2>
    <span>No explicit column permissions granted to this object</span>
    <h2>Statistics</h2>
    <h3>Detailed Statistics General</h3>
    <table>
      <tr>
        <th>Name<th>Updated</th><th>Rows</th><th>Rows Sampled</th><th>Steps</th><th>Density</th><th>Average Key Length</th><th>String Index</th><th>Filter Expression</th><th>Unfiltered Rows</th></th>
      </tr>
      <tr>
        <td>IX_vProductAndDescription</td>
        <td>Aug  8 2010  5:23PM</td>
        <td>1764</td>
        <td>1764</td>
        <td>6</td>
        <td>0</td>
        <td>16</td>
        <td>
          <img src="../../../images/icons/true.png" alt="true" class="boolean" />
        </td>
        <td></td>
        <td>1764</td>
      </tr>
    </table>
    <h3>Detailed Statistics Density</h3>
    <table>
      <tr>
        <th>All Density</th>
        <th>Average Length</th>
        <th>Columns</th>
      </tr>
      <tr>
        <td>0.1666667</td>
        <td>12</td>
        <td>CultureID</td>
      </tr>
      <tr>
        <td>0.0005668934</td>
        <td>16</td>
        <td>CultureID, ProductID</td>
      </tr>
    </table>
    <h3>Detailed Statistics Histogram</h3>
    <table>
      <tr>
        <th>Range High Key</th>
        <th>Range Rows</th>
        <th>Estimated Rows</th>
        <th>Distinct Range Rows</th>
        <th>Avg Range Rows</th>
      </tr>
      <tr>
        <td>ar    </td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
      <tr>
        <td>en    </td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
      <tr>
        <td>fr    </td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
      <tr>
        <td>he    </td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
      <tr>
        <td>th    </td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
      <tr>
        <td>zh-cht</td>
        <td>0</td>
        <td>294</td>
        <td>0</td>
        <td>1</td>
      </tr>
    </table>
    <h2>Objects that depend on [vProductAndDescription]</h2>
    <ul id="navigation1">
      <li>
        <a href="../../Views/Details/Detail_1931153925.html">Production.vProductAndDescription</a>
      </li>
    </ul>
    <h2>Objects on which [vProductAndDescription] depends</h2>
    <ul id="navigation2">
      <li>
        <a href="../../Views/Details/Detail_1931153925.html">Production.vProductAndDescription</a>
        <ul>
          <li>
            <a href="../../Tables/Details/Detail_1717581157.html">Production.Product</a>
            <ul>
              <li>
                <a href="../../Datatypes/Details/Detail_258.html">dbo.Flag</a>
              </li>
              <li>
                <a href="../../Datatypes/Details/Detail_260.html">dbo.Name</a>
              </li>
              <li>
                <a href="../../Tables/Details/Detail_162099618.html">Production.ProductModel</a>
                <ul>
                  <li>
                    <a href="../../XmlSchemaCollections/Details/Detail_65540.html">Production.ManuInstructionsSchemaCollection</a>
                  </li>
                  <li>
                    <a href="../../XmlSchemaCollections/Details/Detail_65539.html">Production.ProductDescriptionSchemaCollection</a>
                  </li>
                </ul>
              </li>
              <li>
                <a href="../../Tables/Details/Detail_418100530.html">Production.ProductSubcategory</a>
                <ul>
                  <li>
                    <a href="../../Tables/Details/Detail_1957582012.html">Production.ProductCategory</a>
                  </li>
                </ul>
              </li>
              <li>
                <a href="../../Tables/Details/Detail_478624748.html">Production.UnitMeasure</a>
              </li>
            </ul>
          </li>
          <li>
            <a href="../../Tables/Details/Detail_2069582411.html">Production.ProductDescription</a>
          </li>
          <li>
            <a href="../../Tables/Details/Detail_242099903.html">Production.ProductModelProductDescriptionCulture</a>
            <ul>
              <li>
                <a href="../../Tables/Details/Detail_613577224.html">Production.Culture</a>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
    <h2>SQL</h2>
    <table>
      <tr>
        <th>Script</th>
      </tr>
      <tr>
        <td>SET ANSI_NULLS ON<br />SET QUOTED_IDENTIFIER ON<br />CREATE VIEW [Production].[vProductAndDescription] 
WITH SCHEMABINDING 
AS 
SELECT 
p.[ProductID] 
,p.[Name] 
,pm.[Name] AS [ProductModel] 
,pmx.[CultureID] 
,pd.[Description] 
FROM [Production].[Product] p 
INNER JOIN [Production].[ProductModel] pm 
ON p.[ProductModelID] = pm.[ProductModelID] 
INNER JOIN [Production].[ProductModelProductDescriptionCulture] pmx 
ON pm.[ProductModelID] = pmx.[ProductModelID] 
INNER JOIN [Production].[ProductDescription] pd 
ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID];
<br />EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Clustered index on the view vProductAndDescription.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'VIEW',@level1name=N'vProductAndDescription', @level2type=N'INDEX',@level2name=N'IX_vProductAndDescription'<br />EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Product names and descriptions. Product descriptions are provided in multiple languages.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'VIEW',@level1name=N'vProductAndDescription'<br /></td>
      </tr>
    </table>
    <h4 class="seealso">See also</h4>
    <a href="../General.html">List of Views</a>
  </body>
</html>