title: Setting up ASP.NET SQLServer session state in SQL server using a script
body: <p>Using the ASPNET_REGSQL tool I generate a script using the following:</p>
  
  <pre><code>ASPNET_REGSQL.exe -ssadd -sstype c -sqlexportonly c:\addseesion.sql -E -d myDatabase -s myServer
  </code></pre>
  
  <p>In the script that is created there is this comment:</p>
  
  <pre><code>--------------------------------------------------
  Note:                                             
  Do not run this file manually.                    
  You should use aspnet_regsql.exe to install       
  and uninstall SQL session state.                  
  --------------------------------------------------
  </code></pre>
  
  <p>The trouble is, in the environment that I work I must develop a script to give to the DBA's, they don't have the .NET sdk and wont be able to use the aspnet_regsql tool.</p>
  
  <p>Can this script be run as is?</p>