System.Web.Configuration.SessionStateSection.SqlConnectionString Property

Gets or sets the SQL connection string.


[System.Configuration.ConfigurationProperty("sqlConnectionString", DefaultValue="data source=localhost;Integrated Security=SSPI")]
public string SqlConnectionString { set; get; }


Documentation for this section has not yet been entered.


This sqlConnectionString attribute is required when SessionStateSection.Mode is set to System.Web.SessionState.SessionStateMode.SQLServer.


To use the System.Web.SessionState.SessionStateMode.SQLServer session state mode, you must run the InstallSqlState.sql SQL script (which is installed in [drive:]\WINDOWS\Microsoft.NET\Framework\VersionNumber as part of the default .NET Framework installation) on the computer running SQL Server that will store the session state. This creates a database called ASPState with new stored procedures and creates new ASPStateTempApplications and ASPStateTempSessions tables in the TempDB database.


Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0