SqlServices.Install メソッド

定義

指定した ASP.NET 機能のコンポーネントをSQL Server データベースにインストールします。

オーバーロード

名前 説明
Install(String, String, SqlFeatures)

選択した ASP.NET 機能のコンポーネントをSQL Server データベースにインストールします。

Install(String, SqlFeatures, String)

選択した ASP.NET サービスのコンポーネントをSQL Server データベースにインストールします。

Install(String, String, String, String, SqlFeatures)

選択した ASP.NET 機能のコンポーネントをSQL Server データベースにインストールします。

Install(String, String, SqlFeatures)

選択した ASP.NET 機能のコンポーネントをSQL Server データベースにインストールします。

public:
 static void Install(System::String ^ server, System::String ^ database, System::Web::Management::SqlFeatures features);
public static void Install(string server, string database, System.Web.Management.SqlFeatures features);
static member Install : string * string * System.Web.Management.SqlFeatures -> unit
Public Shared Sub Install (server As String, database As String, features As SqlFeatures)

パラメーター

server
String

機能をインストールするデータベース サーバー。

database
String

機能をインストールするデータベース。

features
SqlFeatures

インストールする機能を指定する、 SqlFeatures 値のビットごとの組み合わせ。

例外

指定したデータベース サーバーに接続できません。

features値には、1 つ以上の無効なフラグが含まれています。

操作に必要な SQL ステートメントの処理中に例外が発生しました。

注釈

databasenullまたは指定されていない場合、SqlServicesは既定のデータベースであるaspnetdbを使用します。 servernull であるか指定されていない場合、SqlServices は既定のSQL Server インスタンスを使用します。

Note

データベース サーバーへの接続は、信頼された接続を使用して行われます。

こちらもご覧ください

適用対象

Install(String, SqlFeatures, String)

選択した ASP.NET サービスのコンポーネントをSQL Server データベースにインストールします。

public:
 static void Install(System::String ^ database, System::Web::Management::SqlFeatures features, System::String ^ connectionString);
public static void Install(string database, System.Web.Management.SqlFeatures features, string connectionString);
static member Install : string * System.Web.Management.SqlFeatures * string -> unit
Public Shared Sub Install (database As String, features As SqlFeatures, connectionString As String)

パラメーター

database
String

機能をインストールするデータベース。

features
SqlFeatures

インストールする機能を指定する、 SqlFeatures 値のビットごとの組み合わせ。

connectionString
String

使用する接続文字列。 接続文字列は、データベース サーバーへの接続を確立するためにのみ使用されます。 接続文字列でデータベースを指定しても効果はありません。

例外

指定したデータベース サーバーに接続できません。

features値には、1 つ以上の無効なフラグが含まれています。

操作に必要な SQL ステートメントの処理中に例外が発生しました。

注釈

databasenullまたは指定されていない場合、SqlServicesは既定のデータベースであるaspnetdbを使用します。

こちらもご覧ください

適用対象

Install(String, String, String, String, SqlFeatures)

選択した ASP.NET 機能のコンポーネントをSQL Server データベースにインストールします。

public:
 static void Install(System::String ^ server, System::String ^ user, System::String ^ password, System::String ^ database, System::Web::Management::SqlFeatures features);
public static void Install(string server, string user, string password, string database, System.Web.Management.SqlFeatures features);
static member Install : string * string * string * string * System.Web.Management.SqlFeatures -> unit
Public Shared Sub Install (server As String, user As String, password As String, database As String, features As SqlFeatures)

パラメーター

server
String

機能をインストールするデータベース サーバー。

user
String

データベースに接続するときに使用するユーザー名。

password
String

データベースに接続するときに使用するパスワード。

database
String

機能をインストールするデータベース。

features
SqlFeatures

インストールする機能を指定する、 SqlFeatures 値のビットごとの組み合わせ。

例外

指定したデータベース サーバーに接続できません。

features値には、1 つ以上の無効なフラグが含まれています。

操作に必要な SQL ステートメントの処理中に例外が発生しました。

注釈

databasenullまたは指定されていない場合、SqlServicesは既定のデータベースであるaspnetdbを使用します。 servernull であるか指定されていない場合、SqlServices は既定のSQL Server インスタンスを使用します。

Note

データベース サーバーへの接続は、信頼された接続を使用して行われます。

こちらもご覧ください

適用対象