Server.Configuration Property
Microsoft SQL Server のインスタンスの構成オプションを取得します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)
構文
'宣言
Public ReadOnly Property Configuration As Configuration
public Configuration Configuration { get; }
public:
property Configuration^ Configuration {
Configuration^ get ();
}
/** @property */
public Configuration get_Configuration ()
public function get Configuration () : Configuration
プロパティ値
SQL Server のインスタンスの構成オプションを示す Configuration オブジェクトです。
解説
更新されたテキスト :
Configuration プロパティは構成オブジェクトを参照しています。このオブジェクトは、FillFactor や NestedTriggers などの構成可能な各サーバー設定のプロパティを保持します。各プロパティは、サーバー設定の最大値、最小値、および実行値を含んでいる ConfigProperty オブジェクトを参照しています。サーバー設定が詳細設定であるかどうかと、動的設定であるかどうかも確認できます。サーバー設定を変更するには、ConfigProperty オブジェクトのプロパティを設定します。サーバー設定が動的でない場合、システムを再起動する必要もあります。
この名前空間、クラス、またはメンバは、Microsoft .NET Framework Version 2.0 でのみサポートされています。
使用例
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display all the configuration options.
Dim p As ConfigProperty
For Each p In srv.Configuration.Properties
Console.WriteLine(p.DisplayName)
Next
Console.WriteLine("There are " & srv.Configuration.Properties.Count.ToString & " configuration options.")
'Display the maximum and minimum values for ShowAdvancedOptions.
Dim min As Integer
Dim max As Integer
min = srv.Configuration.ShowAdvancedOptions.Minimum
max = srv.Configuration.ShowAdvancedOptions.Maximum
Console.WriteLine("Minimum and Maximum values are " & min & " and " & max & ".")
'Modify the value of ShowAdvancedOptions and run the Alter method.
srv.Configuration.ShowAdvancedOptions.ConfigValue = 0
srv.Configuration.Alter()
'Display when the change takes place according to the IsDynamic property.
If srv.Configuration.ShowAdvancedOptions.IsDynamic = True Then
Console.WriteLine("Configuration option has been updated.")
Else
Console.WriteLine("Configuration option will be updated when SQL Server is restarted.")
End If
スレッド セーフ
この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォーム
開発プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
対象プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
参照
関連項目
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
その他の技術情報
Visual Basic .NET で SQL Server 構成オプションを変更する方法
SMO での SQL Server の構成
サーバーの管理
変更履歴
リリース |
履歴 |
新しい内容 :
|