<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>SQL 2005</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/steven_bates/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/steven_bates/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:02:12 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SQL 2005 - Coding Standards - Formatting Specfics</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-coding-standards-formatting-specfics</link>
      <pubDate>Sun, 19 Mar 2006 19:47:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/03/19/sql-2005-coding-standards-formatting-specfics/</guid>
      <description><![CDATA[Formatting Specfics
Database Objects
Quote all database objects/fields using square...]]></description>
      <content:encoded><![CDATA[<H1 style="MARGIN: 18pt 0cm 12pt"><A name=_Toc138825585><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=5>Formatting Specfics</FONT></SPAN></A></H1>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825586><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Database Objects</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Quote all database objects/fields using square brackets</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Reference all objects by owner/schema</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Eg:</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">[dbo]<SPAN style="COLOR: gray">.</SPAN>[authors]<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825587><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Keywords</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Use UPPERCASE for all keywords</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Eg.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">SELECT<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">*<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[authors]<o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825588><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Datatypes</FONT></SPAN></A></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Use lowercase for all datatypes<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">DECLARE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>@authorID <SPAN style="COLOR: blue">int<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>@authorName <SPAN style="COLOR: blue">nvarchar</SPAN><SPAN style="COLOR: gray">(</SPAN><SPAN style="COLOR: fuchsia">max</SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825589><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Table Alias</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo2"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>All tables should be aliased<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo2"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Aliases should be lowercase<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo2"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Ideally use the first letter of each word.<o:p></o:p></FONT></FONT></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo2"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>However choose a base alias for each table within the database.<o:p></o:p></FONT></FONT></SPAN></LI></UL></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>This should therefore be consistent across all queries within the db. <o:p></o:p></FONT></FONT></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo2"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Where this causes a clash, suffix with a term to distinguish the alias within the query.<o:p></o:p></FONT></FONT></SPAN></LI></UL></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Customer] c<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[CustomerAddress] ca<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Tree] t_parent<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">INNER</SPAN> <SPAN style="COLOR: gray">JOIN</SPAN> [dbo]<SPAN style="COLOR: gray">.</SPAN>[Tree] t_child <SPAN style="COLOR: blue">ON</SPAN> <SPAN style="COLOR: gray">...</SPAN></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825590><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Column lists</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Each column must start on a new line</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Indent column list from preceding keyword</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>This is required if the table contains an IDENTITY column</FONT></LI></UL>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825591><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>SELECT, UPDATE, DELETE, INSERT general rules</FONT></SPAN></A></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Within SELECT, UPDATE, DELETE and INSERT statements<o:p></o:p></FONT></FONT></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Align <I style="mso-bidi-font-style: normal">FROM, WHERE, GROUP BY, HAVING and SET</I> clauses. These should begin on a new line, with the same indent as the original select statement.</FONT></LI></UL>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825592><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>UPDATE</FONT></SPAN></A></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Always use an table alias in the UPDATE statement and reference the table in a FROM clause<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">UPDATE</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> a<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">SET<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[AuthorName] <SPAN style="COLOR: gray">=</SPAN> @authorName<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[AuthorAge] <SPAN style="COLOR: gray">=</SPAN> @authorAge<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Author] a</SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825593><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>INSERT</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo3"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Always include a column list<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo3"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Obey rules regarding brackets and column lists<o:p></o:p></FONT></FONT></SPAN></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">INSERT</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: blue">INTO</SPAN> [dbo]<SPAN style="COLOR: gray">.</SPAN>[Author]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">(<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[AuthorName]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[AuthorAge]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">)</SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825594><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>FROM</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Indent table list in FROM statement</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>All JOINS should begin on a new line</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>If the line is too long, ON should begin on a new line, indented from the original table name</FONT></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Customer] c<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825595><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>WHERE, HAVING</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Indent all clauses within a WHERE clause</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Each clause should be on a new line</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>If there are multiple clauses, pad with an additional indent so that the first character of each statement lines up.</FONT></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Verdana size=2>Eg.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">WHERE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>table.[AuthorName] <SPAN style="COLOR: gray">=</SPAN> <SPAN style="COLOR: red">'Steve'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> table.[AuthorAge] <SPAN style="COLOR: gray">&gt;</SPAN> 30<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">OR</SPAN><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>table.[AuthorName] <SPAN style="COLOR: gray">=</SPAN> <SPAN style="COLOR: red">'Dave'<o:p></o:p></SPAN></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825596><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>ORDER BY, GROUP BY</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Indent column list</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT face=Verdana size=2>Each column must start on a new line</FONT></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">ORDER</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: blue">BY<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>table.[AuthorLastName]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>table.[AuthorFirstName]<o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825597><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>CASE</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT size=2><FONT face=Verdana>Indent all WHEN and ELSE keywords within a CASE statement<SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></FONT></FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l3 level1 lfo1"><FONT size=2><FONT face=Verdana>END keyword should have the same indentation as the original CASE keyword<SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></FONT></FONT></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Eg.</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><o:p><FONT face=Arial size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">CASE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHEN</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col1] <SPAN style="COLOR: gray">=</SPAN> 1 <SPAN style="COLOR: blue">THEN</SPAN> <SPAN style="COLOR: red">'First'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHEN</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col1] <SPAN style="COLOR: gray">=</SPAN> 2 <SPAN style="COLOR: blue">THEN</SPAN> <SPAN style="COLOR: red">'Second'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">ELSE</SPAN> <SPAN style="COLOR: red">'Last'<o:p></o:p></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: blue">AS</SPAN> [ColumnPosition]<o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825598><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>IF, WHILE</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo4"><FONT face=Verdana size=2>Always use <I style="mso-bidi-font-style: normal">BEGIN</I> and <I style="mso-bidi-font-style: normal">END </I><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>statements with the <I style="mso-bidi-font-style: normal">IF </I><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>or <I style="mso-bidi-font-style: normal">WHILE</I> keywords – see rules for BEGIN and END</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo4"><FONT face=Verdana size=2>WHILE, IF and ELSE should always be at the start of a new line </FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo4"><FONT face=Verdana size=2>Each clause should be on a new line, with the exception of the first</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo4"><FONT face=Verdana size=2>If there are multiple clauses, pad with an additional indent so that the first character of each statement lines up.</FONT></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Verdana size=2>Eg.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">IF</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: gray">EXISTS(</SPAN><SPAN style="COLOR: blue">SELECT</SPAN> <SPAN style="COLOR: gray">*</SPAN> <SPAN style="COLOR: blue">FROM</SPAN> #table<SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">AND</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> @debug <SPAN style="COLOR: gray">=</SPAN> true<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">--do something<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">ELSE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">--do something else<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">WHILE</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: gray">(</SPAN>@rowcount <SPAN style="COLOR: gray">&gt;</SPAN> 0<SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">--do something<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: green">--end of @rowcount &gt; 0</SPAN></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825599><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Examples</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT size=2><FONT face=Arial>This example shows some more complex WHERE clause statements.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">--Select tree structure<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">SELECT</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[Col1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Col2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Col3]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN><SPAN style="COLOR: blue">CASE<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHEN</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col1] <SPAN style="COLOR: gray">=</SPAN> 1 <SPAN style="COLOR: blue">THEN</SPAN> <SPAN style="COLOR: red">'First'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHEN</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col1] <SPAN style="COLOR: gray">=</SPAN> 2 <SPAN style="COLOR: blue">THEN</SPAN> <SPAN style="COLOR: red">'Second'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">ELSE</SPAN> <SPAN style="COLOR: red">'Last'<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">END</SPAN> <SPAN style="COLOR: blue">AS</SPAN> [ColumnPosition]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Tree] t_parent<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">INNER</SPAN> <SPAN style="COLOR: gray">JOIN</SPAN> [dbo]<SPAN style="COLOR: gray">.</SPAN>[Tree] t_child<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">ON</SPAN> t_parent<SPAN style="COLOR: gray">.</SPAN>[Row1] <SPAN style="COLOR: gray">=</SPAN> t_child<SPAN style="COLOR: gray">.</SPAN>[Row1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> t_parent<SPAN style="COLOR: gray">.</SPAN>[TreeID] <SPAN style="COLOR: gray">=</SPAN> t_child<SPAN style="COLOR: gray">.</SPAN>[TreeID]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">WHERE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Col4] <SPAN style="COLOR: gray">=</SPAN> 3<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">OR<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Col3] <SPAN style="COLOR: gray">&lt;</SPAN> 6 <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> t2<SPAN style="COLOR: gray">.</SPAN>[Col4] <SPAN style="COLOR: gray">&gt;</SPAN> 5<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> <SPAN style="COLOR: gray">NOT</SPAN> <SPAN style="COLOR: gray">EXISTS<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">SELECT<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">*<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">FROM<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Table5] t5<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHERE<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t5<SPAN style="COLOR: gray">.</SPAN>[Col2] <SPAN style="COLOR: gray">=</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">GROUP</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: blue">BY</SPAN><SPAN style="COLOR: gray">...<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">HAVING</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: gray">...<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">--Insert into table1<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">INSERT</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> [dbo]<SPAN style="COLOR: gray">.</SPAN>[Table1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">(<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[Column1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Column2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Column3]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">SELECT<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Column1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Column2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Column3]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Table] t<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">WHERE</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: gray">....<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">--Insert values into table1<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">INSERT</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> [dbo]<SPAN style="COLOR: gray">.</SPAN>[Table1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">(<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[Column1]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Column2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[Column3]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">VALUES<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">(<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>value1<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>value2<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>value3<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">--Update Author Name and Age<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">UPDATE</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> a<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">SET<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[AuthorName] <SPAN style="COLOR: gray">=</SPAN> @authorName<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>[AuthorAge] <SPAN style="COLOR: gray">=</SPAN> @authorAge<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">FROM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Author] a<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">INNER</SPAN> <SPAN style="COLOR: gray">JOIN</SPAN> @AuthorTable at <SPAN style="COLOR: blue">ON</SPAN> a<SPAN style="COLOR: gray">.</SPAN>[AuthorID] <SPAN style="COLOR: gray">=</SPAN> at<SPAN style="COLOR: gray">.</SPAN>[AuthorID]<o:p></o:p></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>SQL 2005 - Coding Standards - Basic Formatting and Indentation Rules</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-coding-standards-basic-formatting-and-indentation-rules</link>
      <pubDate>Sun, 19 Mar 2006 19:45:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/03/19/sql-2005-coding-standards-basic-formatting-and-indentation-rules/</guid>
      <description><![CDATA[Basic Formatting and Indentation
Use 4 spaces for indenting
Use 4 spaces for indenting in your...]]></description>
      <content:encoded><![CDATA[<H1 style="MARGIN: 18pt 0cm 12pt"><A name=_Toc138825578><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=5>Basic Formatting and Indentation</FONT></SPAN></A></H1>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825579><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Use 4 spaces for indenting</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Use 4 spaces for indenting in your database source files and remain consistent throughout the file on the number of space chosen for an indent.</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Editors will allow you to configure the tab key for 4 spaces (as opposed to the default of 8).</FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825580><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Do not use the tab character.</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>There should be no tab characters in a text source file.</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Most editors, aside from Notepad but including Query Analyzer, will allow you to configure your tab key to insert spaces instead of the tab character.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>This approach will promote consistency with source files across projects, and will ensure documents look good when printed or when they are brought into Query Analyzer. </FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825581><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Line Width</FONT></SPAN></A></H2>
<P class=MsoHeader style="MARGIN: 0cm 0cm 0pt"><FONT face=Verdana size=2>Keep code within 87 characters</FONT></P>
<P class=MsoBodyText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=Verdana size=2>The width of code should be kept within 87 characters or as close as possible.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If the code is too wide, it has to be scrolled and when printed it will wrap and be not as readable.</FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825582><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Commas</FONT></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Many of us prefer commas on the left for lists because it is easy to add on new columns without having to add a comma to the last column.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Also, it is easy to see if a comma is missing.</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><SPAN lang=EN-US><FONT face=Arial size=2>Indent a line with a comma by one less character than the normal indent. This keeps the first and subsequent lines in line.</FONT></SPAN></P>
<P class=MsoBodyText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=Verdana size=2>Eg.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">DECLARE<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>@authorID <SPAN style="COLOR: blue">int<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">,</SPAN>@authorName <SPAN style="COLOR: blue">nvarchar</SPAN><SPAN style="COLOR: gray">(</SPAN><SPAN style="COLOR: fuchsia">max</SPAN><SPAN style="COLOR: gray">)</SPAN></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825583><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Brackets</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>A bracket should always appear on its own on a new line<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Brackets should not be indented from a preceeding line<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>All items within a bracket should be indented – including a bracket<o:p></o:p></FONT></FONT></SPAN></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">WHERE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Col4] <SPAN style="COLOR: gray">=</SPAN> 3<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">OR<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t2<SPAN style="COLOR: gray">.</SPAN>[Col3] <SPAN style="COLOR: gray">&lt;</SPAN> 6 <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> t2<SPAN style="COLOR: gray">.</SPAN>[Col4] <SPAN style="COLOR: gray">&gt;</SPAN> 5<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">AND</SPAN> <SPAN style="COLOR: gray">NOT</SPAN> <SPAN style="COLOR: gray">EXISTS<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">(<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">SELECT<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">*<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">FROM<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>[dbo]<SPAN style="COLOR: gray">.</SPAN>[Table5] t5<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">WHERE<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>t5<SPAN style="COLOR: gray">.</SPAN>[Col2] <SPAN style="COLOR: gray">=</SPAN> t1<SPAN style="COLOR: gray">.</SPAN>[Col2]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825584><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>BEGIN, END</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>A BEGIN and END should always appear on its own on a new line<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>BEGIN and END should not be indented from a preceeding line<o:p></o:p></FONT></FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>All items within a BEGIN and END should be indented – including a nested BEGIN and END<o:p></o:p></FONT></FONT></SPAN></LI></UL>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>When there are a lot of lines between the BEGIN and END it is helpful to comment the END so it can be matched up with the BEGIN more easily.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">IF</SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"> <SPAN style="COLOR: gray">EXISTS(</SPAN><SPAN style="COLOR: blue">SELECT</SPAN> <SPAN style="COLOR: gray">*</SPAN> <SPAN style="COLOR: blue">FROM</SPAN> #table<SPAN style="COLOR: gray">)<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">--do something<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">ELSE<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">--do something else<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-language: EN-GB; mso-no-proof: yes">END<o:p></o:p></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>SQL 2005 - Coding Standards - Database Object Naming Rules</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-coding-standards-database-object-naming-rules</link>
      <pubDate>Sun, 19 Mar 2006 19:39:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/03/19/sql-2005-coding-standards-database-object-naming-rules/</guid>
      <description><![CDATA[Database Object Naming&nbsp;Rules
Summary:




&nbsp;

Casing

Prefix

Suffix

Alpha...]]></description>
      <content:encoded><![CDATA[<H1 style="MARGIN: 18pt 0cm 12pt"><A name=_Toc138825557><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=5>Database Object Naming<SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Rules</FONT></SPAN></A></H1>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825558><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Summary:</FONT></SPAN></A></H2>
<TABLE class=Style1 style="BORDER-COLLAPSE: collapse; mso-table-layout-alt: fixed; mso-yfti-tbllook: 160; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR style="HEIGHT: 73.65pt; mso-yfti-irow: -1; mso-yfti-firstrow: yes">
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 5"><SPAN style="COLOR: #1f497d"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt; mso-rotate: -90" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 5.65pt 0pt; TEXT-ALIGN: right; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1" align=right><SPAN style="COLOR: #1f497d"><FONT size=2><FONT face=Verdana>Casing<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt; mso-rotate: -90" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 5.65pt 0pt; TEXT-ALIGN: right; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1" align=right><SPAN style="COLOR: #1f497d"><FONT size=2><FONT face=Verdana>Prefix<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt; mso-rotate: -90" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 5.65pt 0pt; TEXT-ALIGN: right; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1" align=right><SPAN style="COLOR: #1f497d"><FONT size=2><FONT face=Verdana>Suffix<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt; mso-rotate: -90" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 5.65pt 0pt; TEXT-ALIGN: right; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1" align=right><SPAN style="COLOR: #1f497d"><FONT size=2><FONT face=Verdana>Alpha Numeric Characters<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; HEIGHT: 73.65pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt; mso-rotate: -90" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 5.65pt 0pt; TEXT-ALIGN: right; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1" align=right><SPAN style="COLOR: #1f497d"><FONT size=2><FONT face=Verdana>Notes<o:p></o:p></FONT></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 0">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Tables<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Use singular form: Eg User, not Users<o:p></o:p></FONT></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Linking Tables<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Link<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Formed from the Tables they are linking, eg: A Table joining User and Group would be UserGroupLink<o:p></o:p></FONT></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Table Columns<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 3">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Primary Key<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>PK_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 4">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Clustered Index<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>IXC_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 5">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Unique Clustered Index<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>IXCU_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 6">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Unique Index<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>IXU_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 7">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Index<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>IX_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 8">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>XML Index<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>XML_IX_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 9">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>XML Columns<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Use .net Pascal casing, no underscores<o:p></o:p></FONT></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 10">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Constraints<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>CK_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 11">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Default Value<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>DF_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 12">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Foreign Keys<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>FK_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 13">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Views<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>VW_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 14">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Functions<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>FN_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 15">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Stored Procedures<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><I style="mso-bidi-font-style: normal"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>none<o:p></o:p></FONT></FONT></SPAN></I></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 16">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Triggers (after)<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>TRGA_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 17; mso-yfti-lastrow: yes">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 104.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=140>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Triggers (instead)<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 42.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=57>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>Pascal<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 2cm; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=76>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>TRGI_<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 34.65pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=46>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 50.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=68>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><FONT size=2><FONT face=Verdana>x<o:p></o:p></FONT></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 153.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=205>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="COLOR: black"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR></TBODY></TABLE>
<H2 style="MARGIN: auto 0cm"><A name=_Toc301920650></A><A name=_Toc301668227></A><A name=_Toc1892905></A><A name=_Toc321558620></A><A name=_Toc321551955></A><A name=_Toc138825559><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Schemas</FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></A><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"></SPAN></SPAN></SPAN></SPAN></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo6; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Use lowercase for schema names.<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo6; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Always alias database objects using the schema name, even if this is the default [dbo] schema<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo6; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>This applies to both CREATE statements and when referencing objects in FROM, INSERT or UPDATE statements etc.<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc321551955"><SPAN style="mso-bookmark: _Toc321558620"><SPAN style="mso-bookmark: _Toc1892905"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><A name=_Toc138825560><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Table Names</FONT></SPAN></A></SPAN></SPAN></SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"></SPAN></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Pascal Case</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Alpha-numeric</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Avoid underscore</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><FONT size=2><FONT face=Verdana><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650">No Prefix</SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></SPAN></SPAN></FONT></FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Use the Singular Form eg: User, not Users<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><A name=_Toc138825561><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Linking Table Names</FONT></SPAN></A></SPAN></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo7"><FONT size=2><FONT face=Verdana><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US">Linking Tables should be the name of the two tables it is joining</SPAN>, suffixed with Link</SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><SPAN lang=EN-US style="mso-ansi-language: EN-US">. Eg a joining table on User and Group would be UserGroup</SPAN>Link</SPAN></SPAN></FONT></FONT></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><A name=_Toc138825562><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Column Names</FONT></SPAN></A></SPAN></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Pascal Case</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Alpha-numeric</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l4 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Avoid underscore</FONT></SPAN></SPAN></LI></UL>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>No Prefix</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Format: &lt;TableName(for PK only)&gt;&lt;Qualifier&gt;&lt;Name&gt;</FONT></SPAN></SPAN></LI></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>use the following components in the order below;</FONT></SPAN></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level2 lfo2; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Table Name: <I style="mso-bidi-font-style: normal"><U>Primary keys only</U></I>; Tables names are used to prefix all columns in dotted format, so this is not necessarily. The exception is the primary key since this is used in foreign keys.</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level2 lfo2; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Qualifier: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; Description, to clarify the meaning of the field. For example, if a product has two images, this would clarify the field, eg. FrontImage and RearImage</FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level2 lfo2; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc301668227"><SPAN style="mso-bookmark: _Toc301920650"><FONT face=Verdana size=2>Name: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; This is a database independent “datatype” descriptor which is used to classify the type of data. Below is a common list of standard classifiers. The exception to this is a Boolean. This should be Prefixed with “Is” as this more positively represents the meaning o the value. Flag suffix is considered optional “Flag” or Eg. IsEnabled or IsEnabledFlag</FONT></SPAN></SPAN></LI></UL></UL><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p>&nbsp;</o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l5 level2 lfo2; tab-stops: list 72.0pt">
<TABLE class=Style1 style="BORDER-COLLAPSE: collapse; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR style="mso-yfti-irow: -1; mso-yfti-firstrow: yes">
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 5"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>Classifier<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 1"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>Description<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #95b3d7 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid #95B3D7 .5pt" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 9"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>Suggested SQL Data Type<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 0">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Address<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Street or mailing address data<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>nvarchar<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Age<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Chronological age in years<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>int<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Average<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Average; consider a computed column<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>numeric<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 3">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Amount<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Currency amount<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>money<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 4">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Code<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Non Database Identifier<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 5">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Count<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 6">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Data<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A field containing extensible data<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>xml<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 7">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Date<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Calendar date<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>smalldatetime<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 8">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Datetime<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Date including time<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>datetime<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 9">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Day<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Day of month (1 - 31)<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>tinyint<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 10">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Description<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Brief narrative description<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>nvarchar(MAX)<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 11">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Duration<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Length of time, eg minutes<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>int<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 12">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>ID <o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Unique identifier for something<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>int<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 13">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Image<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A graphic image, such as a bitmap<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>varbinary(MAX)<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 14">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Flag<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><FONT size=2><I style="mso-bidi-font-style: normal"><SPAN style="mso-bidi-font-size: 10.0pt">Not Required:</SPAN></I><SPAN style="mso-bidi-font-size: 10.0pt"> Flag indicates a boolean indicator, where the Qualifier verb does not make it clear it is a verb. Examples of a Qualifier are: Is, Has, Uses. Eg IsEnabled<o:p></o:p></SPAN></FONT></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><I style="mso-bidi-font-style: normal"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>bit<o:p></o:p></FONT></SPAN></I></P></TD></TR>
<TR style="mso-yfti-irow: 15">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Month<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Month of year<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 16">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Name<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Formal name<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>nvarchar<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 17">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Number<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 18">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Percent<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Number expressed as a percent<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 19">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Quantity<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A number of things<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>any numerical<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 20">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Rate<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Number expressed as a rate<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>any numerical<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 21">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Ratio<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A proportion, or expression of relationship in quantity, size, amount, etc. between two things<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>any numerical<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 22">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Sequence<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A numeric order field<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>int<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 23">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Text<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Freeform textual information<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>nvarchar(MAX)<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 24">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Time<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Time of day<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>smalldatetime<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 25">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Title<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Formal name of something<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>nvarchar<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 26">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Version<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Timestamp<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>timestamp<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 27">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 4"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Weight<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Weight measurement<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 8"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>any numerical<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 28">
<TD style="BORDER-RIGHT: #95b3d7 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; mso-border-right-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 68"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>XML<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 64"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>A field containing xml data<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 72"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><FONT size=2>xml<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 29; mso-yfti-lastrow: yes">
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #95b3d7 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 78.95pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid #95B3D7 .5pt" vAlign=top width=105>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 6"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Year<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #95b3d7 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 222.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid #95B3D7 .5pt" vAlign=top width=297>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 2"><SPAN style="mso-bidi-font-size: 10.0pt"><FONT size=2>Calendar year or julian year number<o:p></o:p></FONT></SPAN></P></TD>
<TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #95b3d7 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #e0dfe3; WIDTH: 100.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #e0dfe3; BACKGROUND-COLOR: transparent; mso-border-top-alt: solid #95B3D7 .5pt" vAlign=top width=134>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-line-height-alt: 0pt; mso-yfti-cnfc: 10"><SPAN style="COLOR: #1f497d; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P></TD></TR></TBODY></TABLE></FONT></FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825563></A><A name=_Toc1892906></A><A name=_Toc321558621></A><A name=_Toc321551956><SPAN style="mso-bookmark: _Toc321558621"><SPAN style="mso-bookmark: _Toc1892906"><SPAN style="mso-bookmark: _Toc138825563"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Stored Procedure Names</FONT></SPAN></SPAN></SPAN></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase</FONT></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually the table or combinations of tables it is affecting, followed by underscore.</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Action: <I style="mso-bidi-font-style: normal">Required;</I> eg Save, Load, Get, Set, SetSingle, Search, Delete</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Qualifier: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; additional descriptive words which help to clarify the specific meaning of the stored procedure</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Return Type: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; Indicates the type of data return</FONT></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Example Stored Procedure Names:</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>AuthorSave</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>AuthorLoad</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>AuthorLoadByAuthorID</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>AuthorLoadByName</FONT></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Do not:</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Use special characters.</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Use stored procedure group numbers (e.g. myProc;1).</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>prefix names with “sp_” as those are reserved for procedures shipped by <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:mswterms w:st="on">SQL Server</st1:mswterms>.</FONT></LI></UL></UL>
<H2 style="MARGIN: auto 0cm"><A name=_Toc1892907></A><A name=_Toc138825564><SPAN style="mso-bookmark: _Toc1892907"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>User Defined Functions (UDF) Names</FONT></SPAN></SPAN></A><SPAN style="mso-bookmark: _Toc1892907"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></SPAN></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase</FONT></SPAN></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal">Required;</I> “FN_”</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually the table or combinations of tables it is affecting, followed by underscore.</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Action: <I style="mso-bidi-font-style: normal">Required;</I> eg Get, Set, SetSingle, Search, Delete</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Qualifier: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; additional descriptive words which help to clarify the specific meaning of the stored procedure</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Return Type: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; Indicates the type of data return</FONT></SPAN></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Example Function Names:</FONT></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>FN_AuthorGetID</FONT></SPAN></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Often stored procedures will replicate (wrap) a user defined function. In this case the names should be identical with the exception of the additional prefix on a UDF.</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Note, udfs cannot have any “effects” so cannot modify data.</FONT></SPAN></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc1892907"><A name=_Toc138825565><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Parameters - Stored Procedure/UDFs</FONT></SPAN></A></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=square>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Use PascalCase<o:p></o:p></FONT></FONT></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Eg: @PageID<o:p></o:p></FONT></FONT></SPAN></SPAN></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc1892907"><A name=_Toc138825566><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Variables - Stored Procedure/UDFs</FONT></SPAN></A><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=square>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Use camelCase</FONT></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc1892907"><FONT face=Verdana size=2>Eg: @pageID</FONT></SPAN></LI></UL><SPAN style="mso-bookmark: _Toc1892907"></SPAN>
<H2 style="MARGIN: auto 0cm"><A name=_Toc1892908></A><A name=_Toc321558622></A><A name=_Toc321551957></A><A name=_Toc138825567><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Cursor Names</FONT></SPAN></SPAN></SPAN></SPAN></A><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></SPAN></SPAN></SPAN></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase, except for prefix</FONT></SPAN></SPAN></SPAN></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></SPAN></SPAN></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix with “CURSOR_”</FONT></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually the table being iterated over.</FONT></SPAN></SPAN></SPAN></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Note: Avoid the use of cursors where possible. Instead use a while loop</FONT></SPAN></SPAN></SPAN></LI></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><A name=_Toc138825568><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Updatable View Names</FONT></SPAN></A><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></SPAN></SPAN></SPAN></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>For Views which are updatable, act as if they are a table.<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>This holds true for Updatable Partitioned Views.<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></SPAN></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase, except for prefix</FONT></SPAN></SPAN></SPAN></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></SPAN></SPAN></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix with “VW_”</FONT></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually related to the table(s) affected by the view</FONT></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Qualifier: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; additional descriptive words which help to clarify the purpose of the view.</FONT></SPAN></SPAN></SPAN></LI></UL></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><A name=_Toc138825569><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Non Updatable View Names</FONT></SPAN></A><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></SPAN></SPAN></SPAN></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></SPAN></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>For Views which provide a view on the data which makes them read only.<o:p></o:p></FONT></FONT></SPAN></SPAN></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></SPAN></SPAN></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase, except for prefix</FONT></SPAN></SPAN></SPAN></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></SPAN></SPAN></SPAN></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix with “VW_”</FONT></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually the concatenation of tables in the view</FONT></SPAN></SPAN></SPAN></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><FONT face=Verdana size=2>Qualifier: <I style="mso-bidi-font-style: normal"><U>Optional</U></I>; additional descriptive words which help to clarify the purpose of the view.</FONT></SPAN></SPAN></SPAN></LI></UL></UL>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc321551957"><SPAN style="mso-bookmark: _Toc321558622"><SPAN style="mso-bookmark: _Toc1892908"><A name=_Toc138825570><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Trigger Names</FONT></SPAN></A></SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Use PascalCase, except for prefix</FONT></SPAN></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix with “TRG”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Type: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; depending on type of trigger, after or instead of. prefix with “A_” or “I_”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Object: <I style="mso-bidi-font-style: normal">Required;</I> usually the table being iterated over.</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Actions covered: <I style="mso-bidi-font-style: normal">Required;</I> composite key of actions, “Upd”, “Ins”, “Del”</FONT></LI></UL></UL>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Example Trigger Names:</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>TRGA_CustomerInsUpdDe</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>TRGA_ProductDel</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>TRGI_AuthorUpd</FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825571></A><A name=_Toc1892909></A><A name=_Toc321558623></A><A name=_Toc321551958><SPAN style="mso-bookmark: _Toc321558623"><SPAN style="mso-bookmark: _Toc1892909"><SPAN style="mso-bookmark: _Toc138825571"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Index Names</FONT></SPAN></SPAN></SPAN></SPAN></A></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Verdana>Index names are unique within a table so it isn’t necessary to include the tablename in the index. </FONT><FONT face=Arial><SPAN class=EmailStyle17>When looking at execution plans it is helpful to have a hint about the columns being indexed</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 'Arial','sans-serif'; mso-bidi-font-size: 10.0pt"><o:p></o:p></SPAN></FONT></FONT></P>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix with “IX”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Clustered: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; if Clustered Index include “C”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Unique: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; if Unique Index include “U”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Column Names: <I style="mso-bidi-font-style: normal"><U>Required</U>;</I> Include the list of columns indexed, using underscores between the column names. For an index that covers all columns in the table, use the word All.</FONT></LI></UL></UL>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 36pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Example Index Names:</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="COLOR: black"><FONT face=Arial size=2>IXCU_AuthorID<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>(clustered unique)</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="COLOR: black"><FONT face=Arial size=2>IXU_AuthorID (unique)</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="COLOR: black"><FONT face=Arial size=2>IX_AuthorID_AuthorName (composite index)</FONT></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="COLOR: black"><FONT face=Arial size=2>IXC_AuthorID<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(clustered not unique)</FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc1892910></A><A name=_Toc138825572><SPAN style="mso-bookmark: _Toc1892910"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Primary Key Names</FONT></SPAN></SPAN></A><SPAN style="mso-bookmark: _Toc1892910"></SPAN></H2><SPAN style="mso-bookmark: _Toc1892910"></SPAN>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix primary key with “PK_”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>TableName: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Table name of table being keyed</FONT></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Examples:</FONT></LI></UL>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Courier New'"><SPAN style="mso-list: Ignore"><FONT size=2>o</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>PK_Customer</FONT></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825573><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Foreign Key Names</FONT></SPAN></A><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3> </FONT></SPAN></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix foreign key with “FK_”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Reference Table Name(s): <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Table name of table in the join, for which a unique index is on column(s) being linked. Where both have a unique index, such as linking key, order is optional</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Foreign Table Name(s): <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Table name of table in the join, for there is not a unique index on the column(s) being linked.</FONT></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Example foreign key names:</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>FK_Country_Customer</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>FK_Customer_Sales</FONT></LI></UL></UL>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825574></A><A name=_Toc1892911><SPAN style="mso-bookmark: _Toc138825574"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Default Value Constraint Names</FONT></SPAN></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix default value constraint with “DF_”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>TableName: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Table name</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>ColumnName: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Column name</FONT></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Example foreign key names:</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>DF_Author_Gender</FONT></LI></UL></UL>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825575><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Check Constraint Names</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Naming Format: use the following components in the order below;</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Prefix: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; prefix check constraint with “CK_”</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>TableName: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Table name</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>Integer: <I style="mso-bidi-font-style: normal"><U>Required</U></I>; Where the integer id is used to distinguish the check constraint from other check constraints on the same table.</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><o:p><FONT face=Verdana size=2>&nbsp;</FONT></o:p></LI></UL>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt"><FONT face=Verdana size=2>Example foreign key names:</FONT></LI>
<UL style="MARGIN-TOP: 0cm" type=circle>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l1 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Verdana size=2>CK_Author1</FONT></LI></UL></UL>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Verdana size=2></FONT></o:p></SPAN></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825576></A><A name=_Toc1892904></A><A name=_Toc321558619></A><A name=_Toc321551954><SPAN style="mso-bookmark: _Toc321558619"><SPAN style="mso-bookmark: _Toc1892904"><SPAN style="mso-bookmark: _Toc138825576"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Abbreviation Standards</FONT></SPAN></SPAN></SPAN></SPAN></A></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><FONT size=2><FONT face=Arial><SPAN lang=EN-US>Avoid abbreviations, unless absolutely necessary, due to length restrictions</SPAN><SPAN style="mso-ansi-language: EN-GB"><o:p></o:p></SPAN></FONT></FONT></P>
<H2 style="MARGIN: auto 0cm"><A name=_Toc138825577><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Database Collation</FONT></SPAN></A></H2>
<UL style="MARGIN-TOP: 0cm" type=disc>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo3; tab-stops: list 36.0pt"><FONT size=2><FONT face=Verdana><SPAN lang=EN-US style="mso-ansi-language: EN-US">For new databases use: </SPAN>Latin1_General_CI_AS</FONT></FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo3; tab-stops: list 36.0pt"><FONT face=Verdana size=2>For migrated databases, keep with the same collation as specified in the source database – often this will be: SQL_Latin1_General_Cp1_CI_AS as this is the default for a database migrated from SQL 7.0 to SQL2000</FONT></LI>
<LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo3; tab-stops: list 36.0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=2><FONT face=Verdana>Ensure all columns use this option. They will if they are created in the database using, the correct collation.<o:p></o:p></FONT></FONT></SPAN></LI></UL>]]></content:encoded>
    </item>
    <item>
      <title>SQL 2005 - Coding Standards - General Naming Convention Rules</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-coding-standards-general-naming-convention-rules</link>
      <pubDate>Sun, 19 Mar 2006 19:36:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/03/19/sql-2005-coding-standards-general-naming-convention-rules/</guid>
      <description><![CDATA[General Naming Convention Rules
Definitions:
PascalCasing – The first character of each word is...]]></description>
      <content:encoded><![CDATA[<H1 style="MARGIN: 18pt 0cm 12pt"><A name=_Toc301920632></A><A name=_Toc301668208></A><A name=_Toc138825553></A><A name=_Toc1892902></A><A name=_Toc321558617></A><A name=_Toc321551952><SPAN style="mso-bookmark: _Toc321558617"><SPAN style="mso-bookmark: _Toc1892902"><SPAN style="mso-bookmark: _Toc138825553"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=5>General Naming Convention</FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></A><FONT size=5><FONT color=#3366ff><FONT face="Trebuchet MS"><SPAN style="mso-bookmark: _Toc138825553"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US> Rules</SPAN></SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"></SPAN></SPAN></FONT></FONT></FONT></H1>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><A name=_Toc138825554><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Definitions:</FONT></SPAN></A></SPAN></SPAN></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><FONT size=2><FONT face=Verdana><B>PascalCasing</B> – The first character of each word is capitalized.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Example: <B>F</B><SPAN style="mso-bidi-font-weight: bold">irst<B>N</B>ame</SPAN></FONT></FONT></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><FONT size=2><FONT face=Verdana><B>camelCasing</B> - The first character of each word is capitalized except the first one<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>Example: first<B>N</B>ame</FONT></FONT></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><FONT size=2><FONT face=Verdana><B>UPPERCASE</B> – All characters are uppercase.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Use these identifiers only for abbreviations (eg: <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:place w:st="on"><st1:City w:st="on">ADO</st1:City></st1:place>) and for Transact SQL keywords (eg: SELECT Id FROM Table)</FONT></FONT></SPAN></SPAN></P>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><A name=_Toc138825555><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>Valid Characters</FONT></SPAN></A></SPAN></SPAN><SPAN style="mso-bookmark: _Toc138825555"></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></SPAN></H2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><FONT face=Verdana><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632">Alphanumeric characters only – </SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US style="mso-ansi-language: EN-US">In every case only alphanumeric characters (and some situations underscore) are allowed<o:p></o:p></SPAN></SPAN></SPAN></FONT></FONT></P>
<H2 style="MARGIN: auto 0cm"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><A name=_Toc138825556><SPAN lang=EN-US><FONT face="Trebuchet MS" color=#3366ff size=3>General Rules</FONT></SPAN></A></SPAN></SPAN></H2>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt"><FONT face=Arial><FONT size=2><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB">The following rules should apply to <B style="mso-bidi-font-weight: normal"><I style="mso-bidi-font-style: normal">all</I></B> d</SPAN><SPAN lang=EN-US>atabase objects</SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB">.<o:p></o:p></SPAN></SPAN></SPAN></FONT></FONT></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt; TEXT-INDENT: -18pt; mso-list: l1 level1 lfo2"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-ansi-language: EN-GB"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=2><FONT face=Arial><SPAN style="mso-ansi-language: EN-GB">Clear and </SPAN><SPAN lang=EN-US>unambiguous</SPAN></FONT></FONT></SPAN></SPAN><FONT size=2><FONT face=Arial><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB"> naming</SPAN><SPAN lang=EN-US>.</SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB"><o:p></o:p></SPAN></SPAN></SPAN></FONT></FONT></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt"><FONT size=2><FONT face=Arial><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US>The name should provide as much information as possible about an object and provide an obvious connection to references in project documentation.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Choice of names should typically consider a name space much larger than a project—preferably the enterprise.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>A name uniquely identifies a database object; its definition should be consistent wherever the object is used.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>What might seem clear in a narrow context may lose meaning outside of that context.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Saving keystrokes should never be used as a criterion in selecting a name.</SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB"><o:p></o:p></SPAN></SPAN></SPAN></FONT></FONT></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Abbreviations should be avoided</FONT></SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN style="mso-ansi-language: EN-GB"><FONT face=Arial size=2>.</FONT></SPAN></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><FONT size=2><FONT face=Arial><SPAN style="mso-ansi-language: EN-GB">Only when<I style="mso-bidi-font-style: normal"> <B style="mso-bidi-font-weight: normal">length restrictions</B></I> apply should they be permitted. W</SPAN><SPAN lang=EN-US>hen used, abbreviations should follow the abbreviation rules specified below in the <I style="mso-bidi-font-style: normal">Abbreviation Standards</I> section.</SPAN></FONT></FONT></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Arial size=2>Alphanumeric characters only</FONT></SPAN></SPAN></SPAN><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><FONT size=2><FONT face=Arial><SPAN style="mso-ansi-language: EN-GB"> – </SPAN><SPAN lang=EN-US>Do not use special characters; restrict names to alphanumeric characters</SPAN></FONT></FONT></SPAN></SPAN></P>
<P class=Heading2text style="MARGIN: 0cm 0cm 6pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><SPAN style="mso-bookmark: _Toc301668208"><SPAN style="mso-bookmark: _Toc301920632"><SPAN lang=EN-US style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=2>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=2><FONT face=Arial><SPAN style="mso-ansi-language: EN-GB">PascalCase: </SPAN><SPAN lang=EN-US>Form names by using an initial capital as the delimiter between words, without embedded spaces or underscores<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(e.g<I style="mso-bidi-font-style: normal">.</I>,<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>InvoiceDate). </SPAN></FONT></FONT></SPAN></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>SQL 2005 - FOR XML enhancements</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-for-xml-enhancements</link>
      <pubDate>Thu, 02 Mar 2006 17:40:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/03/02/sql-2005-for-xml-enhancements/</guid>
      <description><![CDATA[-------------------------------------SQL 2005 - FOR XML...]]></description>
      <content:encoded><![CDATA[<FONT face="Courier New"><FONT color=#008000 size=2 font="Courier New">-----------------------------------<BR>--SQL 2005 - FOR XML Enhancements--<BR>-----------------------------------<BR>---FOR XML AUTO offers enhanced functionality<BR>---In SQL 2000, often FOR XML EXPLICIT was required. This which was just nasty, and difficult to understand<BR>--------<BR>--ROOT--<BR>--------<BR>/*<BR>Root adds a root node &lt;tables/&gt;<BR>Notice the alias [table] for sys.objects gets used as the node name<BR>*/<BR>--Create 2 tables as an example<BR></FONT><FONT color=#0000ff size=2>CREATE</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TABLE</FONT></FONT><FONT face="Courier New" size=2> ExampleTable<BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>(<BR></FONT><FONT size=2>[ID] </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>PRIMARY</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>KEY<BR></FONT><FONT size=2></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>[Name] </FONT><FONT color=#0000ff size=2>nvarchar</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>256</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>)<BR>)<BR></FONT><FONT color=#0000ff size=2>CREATE</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TABLE</FONT></FONT><FONT face="Courier New" size=2> ExampleTable2<BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>(<BR></FONT><FONT size=2>[ID] </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>PRIMARY</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>KEY<BR></FONT><FONT size=2></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>[Name] </FONT><FONT color=#0000ff size=2>nvarchar</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>256</FONT></FONT><FONT face="Courier New" color=#808080 size=2>)<BR>)<BR></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2></FONT><FONT face="Courier New" color=#808080 size=2>*<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>FROM<BR></FONT><FONT size=2></FONT><FONT color=#008000 size=2>sys.objects</FONT></FONT><FONT face="Courier New" size=2> [table]<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>WHERE<BR></FONT><FONT size=2>[Name] </FONT><FONT color=#808080 size=2>LIKE</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#ff0000 size=2>'ExampleTable%'<BR></FONT><FONT color=#0000ff size=2>FOR</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>XML</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AUTO</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ROOT</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'tables'</FONT></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New" color=#008000 size=2>/*<BR>Returns:<BR>&lt;tables&gt;<BR>&lt;table name="ExampleTable" object_id="277576027" schema_id="1" parent_object_id="0" type="U " type_desc="USER_TABLE" create_date="2005-12-14T17:15:21.457" modify_date="2005-12-14T17:15:21.527" is_ms_shipped="0" is_published="0" is_schema_published="0" /&gt;<BR>&lt;table name="ExampleTable2" object_id="309576141" schema_id="1" parent_object_id="0" type="U " type_desc="USER_TABLE" create_date="2005-12-14T17:15:51.320" modify_date="2005-12-14T17:15:51.323" is_ms_shipped="0" is_published="0" is_schema_published="0" /&gt;<BR>&lt;/tables&gt;<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>------------<BR>--FOR PATH--<BR>------------<BR>/*<BR>FOR PATH, provides more customisation. Rows are returned in Nodes which have a name defined in PATH<BR>By default, PATH returns fields as elements. To return attributes, field names must be aliased with "@"<BR>*/<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>SELECT<BR></FONT><FONT size=2>[name] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New" size=2> [@name]<BR></FONT><FONT face="Courier New" color=#808080 size=2>,*<BR></FONT><FONT face="Courier New" color=#0000ff size=2>FROM<BR></FONT><FONT size=2></FONT><FONT face="Courier New" color=#008000 size=2>sys.objects<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>WHERE<BR></FONT><FONT size=2>[Name] </FONT><FONT color=#808080 size=2>LIKE</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#ff0000 size=2>'ExampleTable%'<BR></FONT><FONT color=#0000ff size=2>FOR</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>XML</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>PATH</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'table'</FONT><FONT color=#808080 size=2>),</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ROOT</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'tables'</FONT></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New" color=#008000 size=2>/*<BR>Returns: <BR>&lt;tables&gt;<BR>&lt;table name="ExampleTable"&gt;<BR>&lt;name&gt;ExampleTable&lt;/name&gt;<BR>&lt;object_id&gt;1195151303&lt;/object_id&gt;<BR>........ FULL xml omitted<BR>&lt;/table&gt;<BR>&lt;table name="ExampleTable2"&gt;<BR>&lt;name&gt;ExampleTable2&lt;/name&gt;<BR>&lt;object_id&gt;1227151417&lt;/object_id&gt;<BR>........ FULL xml omitted<BR>&lt;/table&gt;<BR>&lt;/tables&gt;<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>-------------------------------------<BR>--Nested Results using FOR XML PATH--<BR>-------------------------------------<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>SELECT<BR></FONT><FONT size=2>[name] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [@name]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>[create_date] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [date/@cdate]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>[modify_date] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [date/mdate]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>CAST</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'&lt;mydata&gt;some random xml&lt;/mydata&gt;'</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>xml</FONT><FONT color=#808080 size=2>)</FONT></FONT><FONT face="Courier New" size=2> [*]<BR></FONT><FONT face="Courier New" color=#808080 size=2>,(<BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>SELECT<BR></FONT><FONT size=2>c</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[name] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [@name]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>c</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[column_id] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [@column_id]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>c</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[is_nullable] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New"><FONT size=2> [@allows_nulls]<BR></FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>ty</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[name] </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT face="Courier New" size=2> [@datatype]<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>FROM<BR></FONT><FONT size=2></FONT><FONT color=#008000 size=2>sys.columns</FONT></FONT><FONT face="Courier New"><FONT size=2> c<BR></FONT><FONT color=#808080 size=2>INNER</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>JOIN</FONT><FONT size=2> </FONT><FONT color=#008000 size=2>sys.types</FONT><FONT size=2> ty </FONT><FONT color=#0000ff size=2>ON</FONT><FONT size=2> c</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[user_type_id] </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> ty</FONT><FONT color=#808080 size=2>.</FONT></FONT><FONT face="Courier New" size=2>[user_type_id]<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>WHERE<BR></FONT><FONT size=2>t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[object_id] </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> c</FONT><FONT color=#808080 size=2>.</FONT></FONT><FONT face="Courier New"><FONT size=2>[object_id]<BR></FONT><FONT color=#0000ff size=2>FOR</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>XML</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>PATH</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'columns'</FONT><FONT color=#808080 size=2>),</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New" color=#0000ff size=2>TYPE<BR></FONT><FONT size=2></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>FROM<BR></FONT><FONT size=2></FONT><FONT color=#008000 size=2>sys.objects</FONT></FONT><FONT face="Courier New" size=2> t<BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>WHERE<BR></FONT><FONT size=2>[Name] </FONT><FONT color=#808080 size=2>LIKE</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#ff0000 size=2>'ExampleTable%'<BR></FONT><FONT color=#0000ff size=2>FOR</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>XML</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>PATH</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'table'</FONT><FONT color=#808080 size=2>),</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ROOT</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'tables'</FONT></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New"><FONT color=#008000 size=2>/*<BR>Results:<BR>&lt;tables&gt;<BR>&lt;table name="ExampleTable"&gt;<BR>&lt;columns name="ID" column_id="1" allows_nulls="0" datatype="int" /&gt;<BR>&lt;columns name="Name" column_id="2" allows_nulls="1" datatype="nvarchar" /&gt;<BR>&lt;/table&gt;<BR>&lt;table name="ExampleTable2"&gt;<BR>&lt;columns name="ID" column_id="1" allows_nulls="0" datatype="int" /&gt;<BR>&lt;columns name="Name" column_id="2" allows_nulls="1" datatype="nvarchar" /&gt;<BR>&lt;/table&gt;<BR>&lt;/tables&gt;<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>--------------------<BR>--Set Xml Variable--<BR>--------------------<BR>/*<BR>In 2000, it wasn't possible to set any variable to the result of a query<BR>*/<BR></FONT><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @xml </FONT></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>xml<BR>SELECT</FONT><FONT size=2> @xml </FONT><FONT color=#808080 size=2>=</FONT></FONT><FONT face="Courier New" size=2> <BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>(<BR></FONT><FONT size=2></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TOP</FONT></FONT><FONT face="Courier New"><FONT size=2> 3<BR>[Name]<BR></FONT><FONT color=#0000ff size=2>FROM</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New"><FONT color=#008000 size=2>sys.objects<BR></FONT><FONT size=2></FONT><FONT color=#0000ff size=2>FOR</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>XML</FONT><FONT size=2> </FONT></FONT><FONT face="Courier New" color=#0000ff size=2>AUTO<BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>)<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT></FONT><FONT face="Courier New" size=2> @xml<BR></FONT><FONT face="Courier New" color=#008000 size=2>/*<BR>Results:<BR>&lt;sys.objects Name="sysrowsetcolumns" /&gt;<BR>&lt;sys.objects Name="sysrowsets" /&gt;<BR>&lt;sys.objects Name="sysallocunits" /&gt;<BR>*/<BR></FONT>]]></content:encoded>
    </item>
    <item>
      <title>SQL 2005 - TSQL Enhancements</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/sql-2005-tsql-enhancements</link>
      <pubDate>Sat, 11 Feb 2006 10:17:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/02/11/sql-2005-tsql-enhancements/</guid>
      <description><![CDATA[----------------------------------SQL 2005 - TSQL...]]></description>
      <content:encoded><![CDATA[<FONT face="Courier New" color=#008000 size=2><FONT face="Courier New">--------------------------------</FONT><BR><FONT face="Courier New">--SQL 2005 - TSQL Enhancements--</FONT><BR><FONT face="Courier New">--------------------------------</FONT><BR></FONT><FONT size=2>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">------------------</FONT><BR><FONT face="Courier New">--Error Handling--</FONT><BR><FONT face="Courier New">------------------</FONT><BR><FONT face="Courier New">--In SQL 2000, you had to check and handle @@Error after each statement</FONT><BR><FONT face="Courier New">--In SQL 2005, we have TRY, CATCH (but no FINALLY)</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">CREATE</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>PROCEDURE</FONT><FONT size=2> [dbo]</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>[ErrorProc]<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">AS</FONT><BR><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New"><FONT size=2> @Value </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT face="Courier New" size=2><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">BEGIN</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>TRY<BR></FONT></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @Value </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> 200</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>PRINT</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'Value set to 200'</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">--Force Error</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @Value </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @value </FONT><FONT color=#808080 size=2>/</FONT><FONT size=2> 0</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>PRINT</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'Value divided by 0'</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT face="Courier New" size=2><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">END</FONT></FONT><FONT face="Courier New" size=2> </FONT><FONT color=#0000ff size=2><FONT face="Courier New">TRY</FONT><BR><FONT face="Courier New">BEGIN</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>CATCH<BR></FONT></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>PRINT</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'In Error Handler'<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT><BR></FONT><FONT size=2><FONT face="Courier New">ERROR_NUMBER</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> ErrorNumber</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">ERROR_MESSAGE</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> ErrorMessage</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">ERROR_PROCEDURE</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> ErrorProcedure</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">ERROR_LINE</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> ErrorLine</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">ERROR_SEVERITY</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> ErrorSeverity</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">@Value</FONT><BR><FONT face="Courier New"></FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">END</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>CATCH<BR></FONT></FONT><FONT face="Courier New" size=2>GO<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">EXEC</FONT></FONT><FONT size=2><FONT face="Courier New"> ErrorProc</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">------------------------------------------------------</FONT><BR><FONT face="Courier New">--New Datatype size for varchar, nvarchar, varbinary--</FONT><BR><FONT face="Courier New">------------------------------------------------------</FONT><BR><FONT face="Courier New">--It is now possible to use (MAX) as a datasize for varchar, nvarchar, varbinary</FONT><BR><FONT face="Courier New">--Eg. varchar(MAX), nvarchar(MAX), varbinary(MAX)</FONT><BR><FONT face="Courier New">--These *replace* text, ntext and image datatypes, although they remain fo backwards</FONT><BR><FONT face="Courier New">--compatibility</FONT><BR><FONT face="Courier New">--</FONT><BR><FONT face="Courier New">--These can be used as local variable</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#0000ff size=2>nvarchar</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff00ff size=2>MAX</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2>REPLICATE</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'This is big data '</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> 250</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'*** Steve *** '<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2>REPLICATE</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'And lots more text '</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> <BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2>REPLICATE</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'And lots more text '</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> <BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'*** End ***'<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2><FONT face="Courier New">@MaxNvarchar </FONT></FONT><FONT face="Courier New" color=#0000ff size=2>AS</FONT><FONT size=2><FONT face="Courier New"> [Data]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>DATALENGTH</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> [DataLength]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>LEN</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> [Len]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>CHARINDEX</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'End'</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> @MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> [EndPos]</FONT><BR><FONT face="Courier New">GO</FONT><BR></FONT><FONT face="Courier New" color=#008000 size=2>--Becareful though. Not all functions operate over more than 8000 characters <BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#0000ff size=2>nvarchar</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff00ff size=2>MAX</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2>REPLICATE</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'This is big data '</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> 250</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'*** Steve *** '<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2>REPLICATE</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'And lots more text '</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2>400</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> <BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @MaxNvarchar </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'*** End ***'<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2><FONT face="Courier New">@MaxNvarchar </FONT></FONT><FONT face="Courier New" color=#0000ff size=2>AS</FONT><FONT size=2><FONT face="Courier New"> [Data]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>DATALENGTH</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> [DataLength]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>LEN</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> [Len]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT color=#ff00ff size=2>CHARINDEX</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'End'</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> @MaxNvarchar</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [EndPos]<BR></FONT></FONT><FONT face="Courier New" color=#008000 size=2>--Varbinary(MAX) allows binary data upt o 2Gb<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New"><FONT size=2> @MaxVarBinary </FONT><FONT color=#0000ff size=2>varbinary</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff00ff size=2>MAX</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT face="Courier New" color=#008000 size=2>--XML datatype - more on this later<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New" size=2> @xmldata </FONT><FONT color=#0000ff size=2><FONT face="Courier New">xml</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">----------------------------</FONT><BR><FONT face="Courier New">--Common Table Expressions--</FONT><BR><FONT face="Courier New">----------------------------</FONT><BR><FONT face="Courier New">--Show Tables</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT><FONT size=2> emp</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">with</FONT></FONT><FONT face="Courier New"><FONT size=2> emph</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>id</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> mgrid</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> lvl</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> rootmgrid</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>as<BR></FONT><FONT face="Courier New" color=#808080 size=2>(<BR></FONT><FONT size=2></FONT><FONT color=#008000 size=2><FONT face="Courier New">--anchor member</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>select</FONT><FONT size=2> id</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> mgr_id</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> 0</FONT><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2><FONT face="Courier New"> id</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>from</FONT><FONT size=2><FONT face="Courier New"> emp</FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>where</FONT><FONT size=2> mgr_id </FONT><FONT color=#808080 size=2>IS</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>NULL<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>union</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>all<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">--RECURSIVE STEP</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>select</FONT><FONT size=2> e</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>id</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> e</FONT><FONT color=#808080 size=2>.</FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> e</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>mgr_id</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> lvl </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> 1</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> eh</FONT><FONT color=#808080 size=2>.</FONT></FONT><FONT size=2><FONT face="Courier New">rootmgrid</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>from</FONT><FONT size=2><FONT face="Courier New"> emp e</FONT><BR></FONT><FONT face="Courier New" color=#808080 size=2>join</FONT><FONT size=2><FONT face="Courier New"> emph eh</FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>on</FONT><FONT size=2> eh</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>id </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> e</FONT><FONT color=#808080 size=2>.</FONT></FONT><FONT size=2><FONT face="Courier New">mgr_id</FONT><BR><FONT face="Courier New"></FONT><BR><FONT face="Courier New"></FONT><BR></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT><FONT size=2> emph </FONT><FONT color=#0000ff size=2>where</FONT><FONT size=2> rootmgrid </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> 1<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>FROM</FONT></FONT><FONT size=2><FONT face="Courier New"> emp</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">---------------------</FONT><BR><FONT face="Courier New">--RANKING FUNCTIONS--</FONT><BR><FONT face="Courier New">---------------------</FONT><BR><FONT face="Courier New">--Row Number--</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2><FONT face="Courier New">[name]</FONT><BR></FONT><FONT face="Courier New" color=#808080 size=2>,</FONT><FONT size=2><FONT face="Courier New">[age]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT size=2>ROW_NUMBER</FONT><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OVER</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>ORDER</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>BY</FONT><FONT size=2> [name]</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> namerownumber</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT size=2>ROW_NUMBER</FONT><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OVER</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>ORDER</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>BY</FONT><FONT size=2> [age]</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> agerownumber<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>FROM<BR></FONT><FONT face="Courier New" size=2>emp<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">ORDER</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>BY<BR></FONT></FONT><FONT size=2><FONT face="Courier New">[name]</FONT></FONT><FONT color=#808080 size=2><FONT face="Courier New">;</FONT><BR></FONT><FONT face="Courier New" size=2><BR></FONT><FONT face="Courier New" color=#008000 size=2>--Paging--<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">WITH</FONT></FONT><FONT face="Courier New"><FONT size=2> myemp </FONT><FONT color=#0000ff size=2>AS<BR></FONT></FONT><FONT face="Courier New" color=#808080 size=2>(<BR></FONT><FONT size=2></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT><BR></FONT><FONT size=2><FONT face="Courier New">[name]</FONT><BR></FONT><FONT face="Courier New" color=#808080 size=2>,</FONT><FONT size=2><FONT face="Courier New">[age]</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT size=2>ROW_NUMBER</FONT><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OVER</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>ORDER</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>BY</FONT><FONT size=2> [name]</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT></FONT><FONT size=2><FONT face="Courier New"> namerownumber</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">FROM</FONT><BR></FONT><FONT face="Courier New" size=2>emp<BR></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2></FONT><FONT color=#808080 size=2><FONT face="Courier New">*</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>FROM<BR></FONT><FONT face="Courier New" size=2>myemp<BR></FONT><FONT face="Courier New" color=#0000ff size=2>WHERE<BR></FONT><FONT size=2><FONT face="Courier New">namerownumber </FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>BETWEEN</FONT><FONT size=2> 4 </FONT><FONT color=#808080 size=2>AND</FONT><FONT size=2> 6<BR></FONT></FONT><FONT face="Courier New" color=#008000 size=2>--Ranking--<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">with</FONT></FONT><FONT size=2><FONT face="Courier New"> emprank</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>as<BR></FONT><FONT face="Courier New" color=#808080 size=2>(<BR></FONT><FONT size=2></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT><BR></FONT><FONT size=2><FONT face="Courier New">row_number</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> id</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [Row]</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">rank</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> sales </FONT><FONT color=#0000ff size=2>desc</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [Rank]</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">rank</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>partition</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> country </FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> sales </FONT><FONT color=#0000ff size=2>desc</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [RankByCountry]</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">dense_rank</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> sales </FONT><FONT color=#0000ff size=2>desc</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [DenseRank]</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">ntile</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>(</FONT><FONT size=2>5</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> sales </FONT><FONT color=#0000ff size=2>desc</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [FifthPercentile]</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">country</FONT></FONT><FONT color=#808080 size=2><FONT face="Courier New">,</FONT><BR></FONT><FONT size=2><FONT face="Courier New">age</FONT></FONT><FONT face="Courier New" color=#808080 size=2>,</FONT><FONT size=2><FONT face="Courier New"> </FONT><BR><FONT face="Courier New">sales</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">from</FONT><BR></FONT><FONT face="Courier New" size=2>emp<BR></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT></FONT><FONT size=2><FONT face="Courier New"> emprank</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">----------------------------------------------</FONT><BR><FONT face="Courier New">--Replacing the need for cursors/while loops--</FONT><BR><FONT face="Courier New">----------------------------------------------</FONT><BR><FONT face="Courier New">--This example shows the creation of running total sales</FONT><BR><FONT face="Courier New">--The main purpose, is to demonstrate how much easier the code is with 2005</FONT><BR><FONT face="Courier New">--In 2000, you would have to insert into a temp table with an identity value</FONT><BR><FONT face="Courier New">--Then create a cursor over the temporary table, iterating over each row</FONT><BR><FONT face="Courier New">--updating the new total, to a running total value of sales</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">drop</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>table</FONT><FONT size=2> #totals<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> row_number</FONT><FONT color=#808080 size=2>()</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>over</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT color=#0000ff size=2>order</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>by</FONT><FONT size=2> id</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> rn</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> <BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">name</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>,</FONT><FONT size=2> country</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> sales </FONT><FONT color=#0000ff size=2>into</FONT><FONT size=2> #totals<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">from</FONT></FONT><FONT face="Courier New"><FONT size=2> emp</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">with</FONT></FONT><FONT face="Courier New"><FONT size=2> rt </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>rn</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> country</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> sales</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> runtot</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>as<BR></FONT><FONT face="Courier New" color=#808080 size=2>(<BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>select</FONT><FONT size=2> rn</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> country</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> sales</FONT><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2><FONT face="Courier New"> sales</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>from</FONT><FONT size=2><FONT face="Courier New"> #totals</FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>where</FONT><FONT size=2> rn </FONT><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2><FONT face="Courier New"> 1</FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>union</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>all<BR></FONT></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>select</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>rn</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>country</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>sales</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>sales </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> rt</FONT><FONT color=#808080 size=2>.</FONT></FONT><FONT size=2><FONT face="Courier New">runtot</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>from</FONT><FONT size=2><FONT face="Courier New"> #totals t</FONT><BR></FONT><FONT face="Courier New"><FONT color=#808080 size=2>join</FONT><FONT size=2> rt </FONT><FONT color=#0000ff size=2>on</FONT><FONT size=2> t</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>rn </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> rt</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>rn </FONT><FONT color=#808080 size=2>+</FONT><FONT size=2> 1<BR></FONT></FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT><FONT size=2> rt<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">drop</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>table</FONT></FONT><FONT size=2><FONT face="Courier New"> #totals</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">------------------</FONT><BR><FONT face="Courier New">--Pivot function--</FONT><BR><FONT face="Courier New">------------------</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">select</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT><FONT size=2> sales<BR></FONT></FONT><FONT color=#808080 size=2><FONT face="Courier New">pivot(</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#ff00ff size=2>sum</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>total</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> period </FONT><FONT color=#808080 size=2>in</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>[Q1]</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> [Q2]</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> [Q3]</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> [Q4]</FONT><FONT color=#808080 size=2>))</FONT></FONT><FONT size=2><FONT face="Courier New"> p</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">----------------------------------------------------</FONT><BR><FONT face="Courier New">--Output affected rows during update/delete/insert--</FONT><BR><FONT face="Courier New">----------------------------------------------------</FONT><BR><FONT face="Courier New">--drop procedure updSales</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">create</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>procedure</FONT><FONT size=2> updSales<BR></FONT></FONT><FONT face="Courier New" color=#0000ff size=2>as<BR></FONT><FONT size=2></FONT><FONT color=#008000 size=2><FONT face="Courier New">--Create table to store modified rows</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @tab </FONT><FONT color=#0000ff size=2>TABLE</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>id </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>name</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>varchar</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>15</FONT><FONT color=#808080 size=2>),</FONT><FONT size=2> oldsales </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> newsales </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>BEGIN</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TRAN<BR></FONT></FONT><FONT size=2></FONT><FONT color=#008000 size=2><FONT face="Courier New">--Modify some rows</FONT><BR></FONT><FONT size=2></FONT><FONT color=#0000ff size=2><FONT face="Courier New">UPDATE</FONT><BR></FONT><FONT size=2><FONT face="Courier New">emp</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SET</FONT><BR></FONT><FONT size=2><FONT face="Courier New">sales </FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>=</FONT><FONT size=2> sales </FONT><FONT color=#808080 size=2>+</FONT></FONT><FONT size=2><FONT face="Courier New"> 50</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">OUTPUT</FONT><BR></FONT><FONT size=2><FONT face="Courier New">inserted</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>.</FONT><FONT size=2>id</FONT><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2><FONT face="Courier New"> </FONT><BR><FONT face="Courier New">inserted</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>.</FONT><FONT color=#0000ff size=2>name</FONT><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2><FONT face="Courier New"> </FONT><BR><FONT face="Courier New">deleted</FONT></FONT><FONT face="Courier New"><FONT color=#808080 size=2>.</FONT><FONT size=2>sales</FONT><FONT color=#808080 size=2>,<BR></FONT></FONT><FONT size=2><FONT face="Courier New">inserted</FONT></FONT><FONT face="Courier New" color=#808080 size=2>.</FONT><FONT size=2><FONT face="Courier New">sales</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>into</FONT><FONT size=2><FONT face="Courier New"> @tab </FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">WHERE</FONT><BR></FONT><FONT size=2><FONT face="Courier New">sales </FONT></FONT><FONT face="Courier New" color=#808080 size=2>&gt;=</FONT><FONT size=2><FONT face="Courier New"> 400</FONT><BR><FONT face="Courier New"></FONT><BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">--Rollback transaction, as test proc and don't really want to alter db</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>ROLLBACK</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TRAN<BR></FONT></FONT><FONT size=2><FONT face="Courier New"></FONT><BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">--Return affected rows</FONT><BR></FONT><FONT size=2></FONT><FONT face="Courier New"><FONT color=#0000ff size=2>select</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>from</FONT></FONT><FONT size=2><FONT face="Courier New"> @tab </FONT><BR><FONT face="Courier New">GO</FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>FROM</FONT><FONT size=2> emp<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">EXEC</FONT></FONT><FONT size=2><FONT face="Courier New"> updSales</FONT><BR><FONT face="Courier New">GO</FONT><BR><FONT face="Courier New"></FONT>&nbsp;<BR></FONT><FONT color=#008000 size=2><FONT face="Courier New">-----------</FONT><BR><FONT face="Courier New">--New TOP--</FONT><BR><FONT face="Courier New">-----------</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT<BR></FONT><FONT size=2></FONT><FONT color=#808080 size=2><FONT face="Courier New">*</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>FROM<BR></FONT><FONT size=2><FONT face="Courier New">Sales</FONT><BR><FONT face="Courier New"></FONT><BR></FONT><FONT color=#0000ff size=2><FONT face="Courier New">DECLARE</FONT></FONT><FONT face="Courier New"><FONT size=2> @rows </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> @rows </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> 3</FONT><FONT color=#808080 size=2>;<BR></FONT></FONT><FONT color=#0000ff size=2><FONT face="Courier New">SELECT</FONT></FONT><FONT face="Courier New"><FONT size=2> </FONT><FONT color=#0000ff size=2>TOP</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@rows</FONT><FONT color=#808080 size=2>)<BR></FONT></FONT><FONT size=2></FONT><FONT color=#808080 size=2><FONT face="Courier New">*</FONT><BR></FONT><FONT face="Courier New" color=#0000ff size=2>FROM<BR></FONT><FONT face="Courier New" size=2>Sales<BR></FONT><FONT face="Courier New" color=#008000 size=2>--It is also possible to use this on INSERT/UPDATE/DELETE<BR></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Service Broker Example - Creation of a Simple Queue and Posting a Message</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/service-broker-example-creation-of-a-simple-queue-and-posting-a-message</link>
      <pubDate>Thu, 05 Jan 2006 06:20:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2006/01/05/service-broker-example-creation-of-a-simple-queue-and-posting-a-message/</guid>
      <description><![CDATA[--Drop and createUSE [master];GOIF EXISTS(SELECT * FROM sys.databases WHERE [name] =...]]></description>
      <content:encoded><![CDATA[<FONT face="Courier New" color=#008000 size=2>--Drop and create<BR></FONT><FONT face="Courier New" color=#0000ff size=2>USE</FONT><FONT face="Courier New" size=2> [master]</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" size=2>GO<BR></FONT><FONT face="Courier New" color=#0000ff size=2>IF</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>EXISTS(</FONT><FONT face="Courier New" color=#0000ff size=2>SELECT</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>*</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>FROM</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#008000 size=2>sys.databases</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>WHERE</FONT><FONT face="Courier New" size=2> [name] </FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#ff0000 size=2>'04_Queues'</FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New" color=#0000ff size=2>DROP</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>DATABASE</FONT><FONT face="Courier New" size=2> [04_Queues]<BR>GO<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>DATABASE</FONT><FONT face="Courier New" size=2> [04_Queues]<BR>GO<BR></FONT><FONT face="Courier New" color=#0000ff size=2>ALTER</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>DATABASE</FONT><FONT face="Courier New" size=2> [04_Queues]<BR></FONT><FONT face="Courier New" color=#0000ff size=2>SET</FONT><FONT face="Courier New" size=2> TRUSTWORTHY </FONT><FONT face="Courier New" color=#0000ff size=2>ON<BR></FONT><FONT face="Courier New" size=2>GO<BR></FONT><FONT face="Courier New" color=#0000ff size=2>USE</FONT><FONT face="Courier New" size=2> [04_Queues]</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" size=2>GO<BR></FONT><FONT face="Courier New" color=#008000 size=2>------------------------<BR>--Create a Basic Queue--<BR>------------------------<BR>--Create a KEY. This is *required* in order to send / receive messages<BR>--The database master key is a symmetric key used to protect the private keys<BR>--of certificates and asymmetric keys that are present in the database<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> MASTER </FONT><FONT face="Courier New" color=#0000ff size=2>KEY</FONT><FONT face="Courier New" size=2> ENCRYPTION </FONT><FONT face="Courier New" color=#0000ff size=2>BY</FONT><FONT face="Courier New" size=2> PASSWORD </FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#ff0000 size=2>'Password1'</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Create a message type<BR>--This could enforce a schema, but in this case enforces that it is well formed xml<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>MESSAGE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>TYPE</FONT><FONT face="Courier New" size=2> MyMessage<BR>VALIDATION </FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" size=2> WELL_FORMED_XML</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Create a contract.<BR>--This defines the messages that can be sent in a conversation<BR>--and defines which side of the conversation can send what.<BR>--In this case only 1 type of message can be sent,<BR>--but both by the INITIATOR and the TARGET<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>CONTRACT</FONT><FONT face="Courier New" size=2> MyContract<BR></FONT><FONT face="Courier New" color=#808080 size=2>(</FONT><FONT face="Courier New" size=2>MyMessage SENT </FONT><FONT face="Courier New" color=#0000ff size=2>BY</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>ANY</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>);<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Creates a queue for sending the message, which is required to send a message<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>QUEUE</FONT><FONT face="Courier New" size=2> MySendingQueue<BR></FONT><FONT face="Courier New" color=#0000ff size=2>WITH<BR></FONT><FONT face="Courier New" size=2>STATUS</FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" color=#0000ff size=2>ON<BR></FONT><FONT face="Courier New" size=2></FONT><FONT face="Courier New" color=#808080 size=2>,</FONT><FONT face="Courier New" size=2>RETENTION</FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" color=#0000ff size=2>OFF</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Creates a queue which will receive the message. In this case it is local,<BR>--but this could equally be a remote queue. In this case we could create<BR>--a route to the queue using CREATE ROUTE<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>QUEUE</FONT><FONT face="Courier New" size=2> MyReceivingQueue<BR></FONT><FONT face="Courier New" color=#0000ff size=2>WITH<BR></FONT><FONT face="Courier New" size=2>STATUS</FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" color=#0000ff size=2>ON<BR></FONT><FONT face="Courier New" size=2></FONT><FONT face="Courier New" color=#808080 size=2>,</FONT><FONT face="Courier New" size=2>RETENTION</FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" color=#0000ff size=2>OFF</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Creates a sending service. This defines the queue that will send/receive<BR>--messages, as defined by the contract.<BR>--In this case it allows MySendingService to send (and receive) MyMessage<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>SERVICE</FONT><FONT face="Courier New" size=2> MySendingService<BR></FONT><FONT face="Courier New" color=#0000ff size=2>ON</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>QUEUE</FONT><FONT face="Courier New" size=2> MySendingQueue<BR></FONT><FONT face="Courier New" color=#808080 size=2>(</FONT><FONT face="Courier New" size=2>MyContract</FONT><FONT face="Courier New" color=#808080 size=2>);<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Creates a receiving service.<BR>--In this case it allows MyReceiveService to receive (and send) MyMessage <BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>SERVICE</FONT><FONT face="Courier New" size=2> MyReceivingService<BR></FONT><FONT face="Courier New" color=#0000ff size=2>ON</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>QUEUE</FONT><FONT face="Courier New" size=2> MyReceivingQueue<BR></FONT><FONT face="Courier New" color=#808080 size=2>(</FONT><FONT face="Courier New" size=2>MyContract</FONT><FONT face="Courier New" color=#808080 size=2>);<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Creates a route to a service. This is not strictly required for local services<BR>--but should be used to route to services on remote sql instances<BR></FONT><FONT face="Courier New" color=#0000ff size=2>CREATE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>ROUTE</FONT><FONT face="Courier New" size=2> MyRoute<BR></FONT><FONT face="Courier New" color=#0000ff size=2>WITH<BR></FONT><FONT face="Courier New" size=2>SERVICE_NAME </FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#ff0000 size=2>'MyReceivingService'</FONT><FONT face="Courier New" color=#808080 size=2>,<BR></FONT><FONT face="Courier New" size=2>ADDRESS </FONT><FONT face="Courier New" color=#808080 size=2>=</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#ff0000 size=2>'LOCAL'<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR></FONT><FONT face="Courier New" color=#008000 size=2>------------------<BR>--Send a message--<BR>------------------<BR>--Using the example above<BR>--<BR>--This starts a conversation<BR></FONT><FONT face="Courier New" color=#0000ff size=2>DECLARE</FONT><FONT face="Courier New" size=2> @handle </FONT><FONT face="Courier New" color=#0000ff size=2>uniqueidentifier<BR>BEGIN</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>DIALOG</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>CONVERSATION</FONT><FONT face="Courier New" size=2> @handle<BR></FONT><FONT face="Courier New" color=#0000ff size=2>FROM</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>SERVICE</FONT><FONT face="Courier New" size=2> MySendingService<BR></FONT><FONT face="Courier New" color=#0000ff size=2>TO</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>SERVICE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#ff0000 size=2>'MyReceivingService'<BR></FONT><FONT face="Courier New" color=#0000ff size=2>ON</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>CONTRACT</FONT><FONT face="Courier New" size=2> MyContract</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--Sends a message<BR></FONT><FONT face="Courier New" color=#0000ff size=2>SEND</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>ON</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>CONVERSATION</FONT><FONT face="Courier New" size=2> @handle<BR></FONT><FONT face="Courier New" color=#0000ff size=2>MESSAGE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>TYPE</FONT><FONT face="Courier New" size=2> MyMessage<BR></FONT><FONT face="Courier New" color=#808080 size=2>(</FONT><FONT face="Courier New" color=#ff0000 size=2>'&lt;message&gt;hello world&lt;/message&gt;'</FONT><FONT face="Courier New" color=#808080 size=2>)<BR></FONT><FONT face="Courier New" color=#008000 size=2>--And ends the conversation<BR></FONT><FONT face="Courier New" color=#0000ff size=2>END</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>CONVERSATION</FONT><FONT face="Courier New" size=2> @handle </FONT><FONT face="Courier New" color=#0000ff size=2>WITH</FONT><FONT face="Courier New" size=2> CLEANUP</FONT><FONT face="Courier New" color=#808080 size=2>;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR></FONT><FONT face="Courier New" color=#008000 size=2>-------------------<BR>--Peek into queue--<BR>-------------------<BR>--View the messages in the queue, without removing the message from the queue<BR></FONT><FONT face="Courier New" color=#0000ff size=2>SELECT</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>*</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>FROM</FONT><FONT face="Courier New" size=2> MyReceivingQueue</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT><FONT face="Courier New" color=#008000 size=2>--TROUBLESHOOTING: Messages may take time to appear, if the machine is<BR>--not connected to a network<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>------------------------------------<BR>--Receive a message from the queue--<BR>------------------------------------<BR>--This removes a message from the queue.<BR>--TOP (1) ensures that only the first message in the queue is retrieved<BR></FONT><FONT face="Courier New" color=#0000ff size=2>RECEIVE</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>TOP</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>(</FONT><FONT face="Courier New" size=2>1</FONT><FONT face="Courier New" color=#808080 size=2>)</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#808080 size=2>*</FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>FROM</FONT><FONT face="Courier New" size=2> MyReceivingQueue</FONT><FONT face="Courier New" color=#808080 size=2>;<BR></FONT>]]></content:encoded>
    </item>
    <item>
      <title>XML Features - XQuery</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/xml-features-xquery</link>
      <pubDate>Tue, 13 Dec 2005 04:41:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2005/12/13/xml-features-xquery/</guid>
      <description><![CDATA[------------------XML Datatype------------------/*The xml datatype can be queried using XQuery....]]></description>
      <content:encoded><![CDATA[<FONT size=2><FONT face="Courier New"><FONT color=#008000>----------------<BR>--XML Datatype--<BR>----------------<BR>/*<BR>The xml datatype can be queried using XQuery. <BR>using one of several methods on it:<BR>.query, .value, .nodes, .modify and .exists<BR>.XQuery defines the FLWOR iteration syntax.<BR>FLWOR is the acronym of for, let, where, order by, and return.<BR>In SQL Server 2005, let is unsupported.<BR>This syntax can be used to replace OPENXML in SQL 2000<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>-----------------<BR>--.query Method--<BR>-----------------<BR>/*<BR>The query method allows reformatting of a document into other formats<BR>It could be considered a little like XSLT<BR>*/<BR></FONT><FONT color=#0000ff>DECLARE</FONT> @doc </FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>xml<BR>SET</FONT> @doc </FONT></FONT><FONT face="Courier New" color=#808080 size=2>=<BR></FONT><FONT size=2><FONT face="Courier New"><FONT color=#ff0000>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff>SELECT</FONT> @doc<FONT color=#808080>.</FONT>query<FONT color=#808080>(</FONT></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#ff0000>'<BR>for $p in /people/person/text()<BR>return<BR>&lt;name&gt;<BR>{$p}<BR>&lt;/name&gt;<BR>'</FONT><FONT color=#808080>)</FONT> <FONT color=#0000ff>AS</FONT> queryresults<BR></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#008000>/*<BR>Returns:<BR>queryresults<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>&lt;name&gt;Martin&lt;/name&gt;&lt;name&gt;Simon&lt;/name&gt;&lt;name&gt;Mark&lt;/name&gt;<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>-----------------<BR>--.value Method--<BR>-----------------<BR>/*<BR>The value method allows a single value to be extracted from an xml document<BR>*/<BR></FONT><FONT color=#0000ff>DECLARE</FONT> @doc <FONT color=#0000ff>xml</FONT><FONT color=#808080>,</FONT> @count </FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>int<BR>SET</FONT> @doc </FONT></FONT><FONT face="Courier New" color=#808080 size=2>=<BR></FONT><FONT size=2><FONT face="Courier New"><FONT color=#ff0000>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff>SELECT</FONT> @count <FONT color=#808080>=</FONT> @doc<FONT color=#808080>.</FONT><FONT color=#0000ff>value</FONT><FONT color=#808080>(</FONT><FONT color=#ff0000>'count(/people/person)'</FONT><FONT color=#808080>,</FONT> <FONT color=#ff0000>'int'</FONT></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#808080>)<BR></FONT><FONT color=#0000ff>SELECT</FONT> @count <FONT color=#0000ff>AS</FONT> [count]<BR></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#008000>/*<BR>Returns:<BR>count<BR>-----------<BR>3<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>----------------------<BR>--Using sql:variable--<BR>----------------------<BR>/*<BR>It is not possible to construct a custom xquery string<BR>However, it is possible to pass in a sql variables as parameters<BR>to the XQuery statement.<BR>NOTE: SQL must be sure that a single value will be returned,<BR>hence the final [1], even though the statement<BR>/people/person[sql:variable("@pos")]/text()<BR>would only ever return 1 value<BR>*/<BR></FONT><FONT color=#0000ff>DECLARE</FONT> @doc <FONT color=#0000ff>xml</FONT><FONT color=#808080>,</FONT> @pos </FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>int<BR>SET</FONT> @doc </FONT></FONT><FONT face="Courier New" color=#808080 size=2>=<BR></FONT><FONT size=2><FONT face="Courier New"><FONT color=#ff0000>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff>SELECT</FONT> @pos <FONT color=#808080>=</FONT> 2<BR><FONT color=#0000ff>SELECT</FONT> @doc<FONT color=#808080>.</FONT><FONT color=#0000ff>value</FONT><FONT color=#808080>(</FONT><FONT color=#ff0000>'(/people/person[sql:variable("@pos")]/text())[1]'</FONT><FONT color=#808080>,</FONT> <FONT color=#ff0000>'nvarchar(256)'</FONT><FONT color=#808080>)</FONT> <FONT color=#0000ff>AS</FONT> SecondName<BR></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#008000>/*<BR>Returns:<BR>SecondName<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>Simon<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>----------------<BR>--Using .nodes--<BR>----------------<BR>/*<BR>.nodes can be used to shred xml into a table<BR>In 2000 we had to use OPENXML<BR>*/<BR></FONT><FONT color=#0000ff>DECLARE</FONT> @doc </FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>xml<BR>SET</FONT> @doc </FONT></FONT><FONT face="Courier New" color=#808080 size=2>=<BR></FONT><FONT face="Courier New" color=#ff0000 size=2>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>SELECT<BR></FONT>PeopleTable<FONT color=#808080>.</FONT>PersonColumn<FONT color=#808080>.</FONT>query<FONT color=#808080>(</FONT><FONT color=#ff0000>'text()'</FONT><FONT color=#808080>)</FONT> <FONT color=#0000ff>AS</FONT> [Name]<BR></FONT></FONT><FONT size=2><FONT face="Courier New"><FONT color=#0000ff>FROM<BR></FONT>@doc<FONT color=#808080>.</FONT>nodes<FONT color=#808080>(</FONT><FONT color=#ff0000>'people/person'</FONT><FONT color=#808080>)</FONT> <FONT color=#0000ff>AS</FONT> PeopleTable<FONT color=#808080>(</FONT>PersonColumn</FONT></FONT><FONT face="Courier New" color=#808080 size=2>);<BR></FONT><FONT face="Courier New" color=#008000 size=2>/*<BR>Returns:<BR>Name<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>Martin<BR>Simon<BR>Mark<BR>(3 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>------------------------<BR>--Other XQuery methods--<BR>------------------------<BR>/*<BR>.modify which allows update/delete/insert<BR>.exists test if node exists<BR>*/</FONT>]]></content:encoded>
    </item>
    <item>
      <title>XML Features - XQuery</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/xml-features-xquery-2</link>
      <pubDate>Tue, 13 Dec 2005 03:38:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2005/12/13/xml-features-xquery-2/</guid>
      <description><![CDATA[------------------XML Datatype------------------/*The xml datatype can be queried using XQuery....]]></description>
      <content:encoded><![CDATA[<FONT face="Courier New"><FONT color=#008000 size=2>----------------<BR>--XML Datatype--<BR>----------------<BR>/*<BR>The xml datatype can be queried using XQuery. <BR>using one of several methods on it:<BR>.query, .value, .nodes, .modify and .exists<BR>.XQuery defines the FLWOR iteration syntax.<BR>FLWOR is the acronym of for, let, where, order by, and return.<BR>In SQL Server 2005, let is unsupported.<BR>This syntax can be used to replace OPENXML in SQL 2000<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>-----------------<BR>--.query Method--<BR>-----------------<BR>/*<BR>The query method allows reformatting of a document into other formats<BR>It could be considered a little like XSLT<BR>*/<BR></FONT><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @doc </FONT><FONT color=#0000ff size=2>xml<BR>SET</FONT><FONT size=2> @doc </FONT><FONT color=#808080 size=2>=<BR></FONT><FONT color=#ff0000 size=2>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @doc</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>query</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'<BR>for $p in /people/person/text()<BR>return<BR>&lt;name&gt;<BR>{$p}<BR>&lt;/name&gt;<BR>'</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> queryresults<BR></FONT><FONT color=#008000 size=2>/*<BR>Returns:<BR>queryresults<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>&lt;name&gt;Martin&lt;/name&gt;&lt;name&gt;Simon&lt;/name&gt;&lt;name&gt;Mark&lt;/name&gt;<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>-----------------<BR>--.value Method--<BR>-----------------<BR>/*<BR>The value method allows a single value to be extracted from an xml document<BR>*/<BR></FONT><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @doc </FONT><FONT color=#0000ff size=2>xml</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> @count </FONT><FONT color=#0000ff size=2>int<BR>SET</FONT><FONT size=2> @doc </FONT><FONT color=#808080 size=2>=<BR></FONT><FONT color=#ff0000 size=2>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @count </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> @doc</FONT><FONT color=#808080 size=2>.</FONT><FONT color=#0000ff size=2>value</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'count(/people/person)'</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'int'</FONT><FONT color=#808080 size=2>)<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @count </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [count]<BR></FONT><FONT color=#008000 size=2>/*<BR>Returns:<BR>count<BR>-----------<BR>3<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>----------------------<BR>--Using sql:variable--<BR>----------------------<BR>/*<BR>It is not possible to construct a custom xquery string<BR>However, it is possible to pass in a sql variables as parameters<BR>to the XQuery statement.<BR>NOTE: SQL must be sure that a single value will be returned,<BR>hence the final [1], even though the statement<BR>/people/person[sql:variable("@pos")]/text()<BR>would only ever return 1 value<BR>*/<BR></FONT><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @doc </FONT><FONT color=#0000ff size=2>xml</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> @pos </FONT><FONT color=#0000ff size=2>int<BR>SET</FONT><FONT size=2> @doc </FONT><FONT color=#808080 size=2>=<BR></FONT><FONT color=#ff0000 size=2>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @pos </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> 2<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> @doc</FONT><FONT color=#808080 size=2>.</FONT><FONT color=#0000ff size=2>value</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'(/people/person[sql:variable("@pos")]/text())[1]'</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'nvarchar(256)'</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> SecondName<BR></FONT><FONT color=#008000 size=2>/*<BR>Returns:<BR>SecondName<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>Simon<BR>(1 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>----------------<BR>--Using .nodes--<BR>----------------<BR>/*<BR>.nodes can be used to shred xml into a table<BR>In 2000 we had to use OPENXML<BR>*/<BR></FONT><FONT color=#0000ff size=2>DECLARE</FONT><FONT size=2> @doc </FONT><FONT color=#0000ff size=2>xml<BR>SET</FONT><FONT size=2> @doc </FONT><FONT color=#808080 size=2>=<BR></FONT><FONT color=#ff0000 size=2>'&lt;people&gt;<BR>&lt;person&gt;Martin&lt;/person&gt;<BR>&lt;person&gt;Simon&lt;/person&gt;<BR>&lt;person&gt;Mark&lt;/person&gt;<BR>&lt;/people&gt;'<BR></FONT><FONT color=#0000ff size=2>SELECT<BR></FONT><FONT size=2>PeopleTable</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>PersonColumn</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>query</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'text()'</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> [Name]<BR></FONT><FONT color=#0000ff size=2>FROM<BR></FONT><FONT size=2>@doc</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>nodes</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff0000 size=2>'people/person'</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>AS</FONT><FONT size=2> PeopleTable</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>PersonColumn</FONT><FONT color=#808080 size=2>);<BR></FONT><FONT color=#008000 size=2>/*<BR>Returns:<BR>Name<BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<BR>Martin<BR>Simon<BR>Mark<BR>(3 row(s) affected)<BR>*/<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>------------------------<BR>--Other XQuery methods--<BR>------------------------<BR>/*<BR>.modify which allows update/delete/insert<BR>.exists test if node exists<BR>*/</FONT></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Random Introduction</title>
      <link>https://docs.microsoft.com/archive/blogs/steven_bates/random-introduction</link>
      <pubDate>Tue, 22 Nov 2005 05:05:00 GMT</pubDate>
      <dc:creator><![CDATA[sbates]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/steven_bates/2005/11/22/random-introduction/</guid>
      <description><![CDATA[Well, I figure my&nbsp;first post should be an introduction, so here goes.
I have been working as a...]]></description>
      <content:encoded><![CDATA[<P>Well, I figure my&nbsp;first post should be an introduction, so here goes.</P>
<P>I have been working as a software developer, for MSN in London since 2000. My job has quite a large remit. In my time, I have worked on two different&nbsp;web-based content-publishing systems and various other smaller other projects. This means my technology skill set is fairly wide and I get to constantly learn new skills.</P>
<P>So why did I decide to create a blog. Well I figured it would be a good place to store random bits of code I find or write, as I am often found hunting for code I have written in the past. In particular as the strongest SQL "expert" in the team, I am often asked how to do things, so I expect this blog to have a strong focus on SQL.</P>
<P>If you want to find out a bit more about me, I could redirect you to my site - <A href="http://www.stevenbates.com">http://www.stevenbates.com</A>, but at the moment, the best I have managed to do is upload a CV. Maybe by posting this, it will actually spur me into doing something with it. :) (Actually I probably would have done, had Tiscalli not introduced the requirement&nbsp;to dial in via their dialup using a modem - a what??)</P>
<P>Why Wizardry? So in my last project, the group manager said he had played with Visual Studio 2003 and a database project and realised most of the database for the new project could be written using SQL Wizards. Ok, I know&nbsp;he wasn't being&nbsp;that naive, but it goes some way to so show how easy some people regard database development. Anyway it led me to use the messenger tag "SQL Wizard" for the rest of the rest of the project</P>]]></content:encoded>
    </item>
  </channel>
</rss>