title: CREATE TYPE failing with: Incorrect syntax near 'AS'
body: <p>I have following piece of code:</p>
  
  <pre><code>CREATE TYPE FTPLog AS TABLE ( 
     [Date] datetime
         ,[LocalIPAddress] varchar(MAX)
         ,[LocalIPPort] varchar(MAX)
         ,[UserName] varchar(MAX)
         ,[SiteName] varchar(MAX)
         ,[HostName] varchar(MAX)
         ,[RemoteIPAddress] varchar(MAX)
         ,[RemoteIPPort] varchar(MAX)
         ,[Command] varchar(MAX)
         ,[CommandParameters] varchar(MAX)
         ,[BytesSent] int
         ,[BytesReceived] int
     ,[ElapsedMilliseconds] int
         ,[FtpStatus] varchar(MAX)
         ,[FtpSubStatus] varchar(MAX)
         ,[FullPath] varchar(MAX)
         ,[HRStatus] varchar(MAX)
         ,[SessionId] varchar(MAX)
         ,[Information] varchar(MAX)
  )GO
  </code></pre>
  
  <p>When I try execute this, I got an error:</p>
  
  <pre><code>Line 1:
  Incorrect syntax near the keyword 'AS'
  </code></pre>
  
  <p>What is wrong with it?</p>