SessionStateSection.SqlConnectionString 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
SQL 연결 문자열을 가져오거나 설정합니다.
public:
property System::String ^ SqlConnectionString { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("sqlConnectionString", DefaultValue="data source=localhost;Integrated Security=SSPI")]
public string SqlConnectionString { get; set; }
[<System.Configuration.ConfigurationProperty("sqlConnectionString", DefaultValue="data source=localhost;Integrated Security=SSPI")>]
member this.SqlConnectionString : string with get, set
Public Property SqlConnectionString As String
속성 값
SQL 연결 문자열입니다. 기본값은 제네릭 문자열입니다. "data source=127.0.0.1; 통합 보안=SSPI"
- 특성
예제
다음 코드 예제에서는 속성을 가져오는 방법을 보여 줍니다 SqlConnectionString . 개체에 액세스하는 방법을 알아보려면 클래스 항목의 SessionStateSection 코드 예제를 SessionStateSection 참조하세요.
// Display the current SqlConnectionString property value.
Console.WriteLine("SqlConnectionString: {0}",
sessionStateSection.SqlConnectionString);
' Display the current SqlConnectionString property value.
Console.WriteLine("SqlConnectionString: {0}", _
sessionStateSection.SqlConnectionString)
설명
이 sqlConnectionString 특성은 .로 SQLServer설정된 경우 Mode 필요합니다.
메모
세션 상태 모드를 SQLServer 사용하려면 세션 상태를 저장할 SQL Server를 실행하는 컴퓨터에서 InstallSqlState.sql SQL 스크립트(기본 .NET Framework 설치의 일부로 [drive:]\WINDOWS\Microsoft.NET\Framework\VersionNumber 에 설치됨)를 실행해야 합니다. 새 저장 프로시저를 사용하여 ASPState라는 데이터베이스를 만들고 TempDB 데이터베이스에 새 ASPStateTempApplications 및 ASPStateTempSessions 테이블을 만듭니다.