Using the ASPNET_REGSQL tool I generate a script using the following:
ASPNET_REGSQL.exe -ssadd -sstype c -sqlexportonly c:\addseesion.sql -E -d myDatabase -s myServer
In the script that is created there is this comment:
--------------------------------------------------
Note:
Do not run this file manually.
You should use aspnet_regsql.exe to install
and uninstall SQL session state.
--------------------------------------------------
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.
Can this script be run as is?