Setting up ASP.NET SQLServer session state in SQL server using a script
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?
aspnet_regsql tool is actually part of .NET Framework. you can find this tool at
%WindDiR%\Microsoft.NET\Framework\<framework version>
精彩评论