System.Web.Configuration.SessionStateSection.SqlConnectionString Property

Gets or sets the SQL connection string.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

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.

Requirements

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