Your best source of information and news about vista , microsoft and windows on the internet インターネット上の情報とVistaは、 MicrosoftおよびWindowsについてのニュースのあなたの最高のソース

Vista ARTICLES Vistaの製品 TOP 50トップ50 Spyware Virusウイルススパイウェア Vista SOFT Vistaのソフト Vista HELP Vistaのヘルプ

Connecting to Data Sources in IIS 7.0データソースへのIIS 7.0で接続する


IIS can store connection strings used by managed code applications to connect to local and remote data sources, which can include SQL Server databases and other types of databases. IISの接続文字列をマネージコードのアプリケーションでソースは、 SQL Serverデータベースとデータベースを他のタイプを含めることができますローカルおよびリモートのデータストアへの接続に使用することができます。 To view currently configured connection strings, in IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then access the Connection Strings page by double-clicking the Connection Strings feature.現在設定接続文字列を表示するには、 IISマネージャで管理したい階層のレベルに設定し、接続文字列機能航行をダブルクリックして、接続文字列をページにアクセスします。 In the main pane, you'll see a list of the currently defined connection strings.メインウィンドウでは、現在定義されて接続文字列のリストが表示されます。 Local entries are configured at the level you are working with.地元のエントリと一緒に仕事をされているレベルで構成されている。 Inherited entries are configured at a higher level of the configuration hierarchy.継承のエントリは、構成階層のより高いレベルで構成されている。


You can create a connection string for SQL Server by completing the following steps:次の手順を完了することによって、 SQL Serverの接続文字列を作成することができます:

1. 1 。 In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then access the Connection Strings page by double-clicking the Connection Strings feature. IISマネージャでは、管理したい階層のレベルに設定し、接続文字列機能航行をダブルクリックして、接続文字列をページにアクセスします。

2. 2 。 On the Connection Strings page, in the Actions pane, click Add.接続文字列]ページで、アクションペインで、 [追加]をクリックします。 This displays the Add Connection String dialog box.これは、接続文字列の追加]ダイアログボックスが表示されます。

3. 3 。 In the Name text box, type the name of the connection string, such as SqlServerCustDb. [ Name ]テキストボックスSqlServerCustDbなどの接続文字列の名前を入力します。 This name must be the same name that you reference in your application code to retrieve data that uses this connection string.この名前は、同じ名前をアプリケーションコードでは、リファレンスでは、この接続文字列を使用してデータを取得する必要があります。 You cannot change the name later without re-creating the connection string.後で再名を変更せずに、接続文字列を作成することはできません。

4. 4 。 In the Server text box, type the name of the SQL server that hosts the database.テキストボックスは、データベースサーバーをホストするSQLサーバーの名前を入力します。

5. 5 。 In the Database text box, type the name of the SQL server database.データベースのテキストボックスは、 SQL Serverデータベースの名前を入力します。

6. 6 。 Select one of the following Credentials options to specify the security credentials that are used to connect to the database:

• Use Windows Integrated Security Configures the connection string so that the application uses the current Windows identity established on the operating system thread to access the SQL Server database. • Windows統合セキュリティを使用して、接続文字列を設定できるため、アプリケーションは、現在のWindowsのアイデンティティは、オペレーティングシステムスレッドでは、 SQL Serverデータベースにアクセスするために設立使用しています。 Use this option to pass through authenticated Windows domain credentials to the database.データベースへの認証をWindowsドメインの資格情報を渡すために、このオプションを使用します。
You can use integrated security only when SQL Server runs on the same computer as IIS or when you've configured delegation between computers.あなたがSQL Serverの場合にのみ、 IISのと同じコンピュータ上またはコンピュータの間で委任を実行するときに設定した統合セキュリティを使用することができます。 Additionally, all application users must be in the same domain so that their credentials are available to IIS.また、すべてのアプリケーションのユーザーが同じドメイン内には、資格情報をIISにご利用いただけますする必要があります。

• Specify Credentials Configures the connection string to use a specific SQL Server user name and password. •指定する資格情報を設定、接続文字列は、特定のSQL Serverユーザー名とパスワードを使用してください。 Use this option when you do not want to pass through user credentials to the database for authentication.ときにユーザーの資格情報を認証のためのデータベースに渡すことはしたくない、このオプションを使用します。 After you select Specify Credentials, click Set.資格情報を指定したら、 [設定]を選択します。 In the Set Credentials dialog box, type the SQL Server user name to use for the connection.資格情報の設定]ダイアログボックスで、タイプは、 SQL Serverユーザー名は、接続に使用する。 After you type and then confirm the password for this user, click OK.このユーザーを入力するとしたら、 [ OK ]をクリックのパスワードを確認してください。

7. 7 。 Click OK to close the Add Connection String dialog box.をクリックして接続文字列の追加]ダイアログボックスを閉じます。


You can create a custom connection string for other types of database servers by completing the following steps:次の手順を完了することによって、データベースサーバの他の種類のカスタム接続文字列を作成することができます:

1. 1 。 In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then access the Connection Strings page by double-clicking the Connection Strings feature. IISマネージャでは、管理したい階層のレベルに設定し、接続文字列機能航行をダブルクリックして、接続文字列をページにアクセスします。

2. 2 。 On the Connection Strings page, in the Actions pane, click Add.接続文字列]ページで、アクションペインで、 [追加]をクリックします。 This displays the Add Connection String dialog box, with the Custom option enabled.これは、カスタムオプションを指定して接続文字列の追加]ダイアログボックスが表示されますが有効になっている。

3. 3 。 In the Name text box, type the name of the connection string, such as LocalSqlServer. [ Name ]テキストボックスLocalSqlServerなどの接続文字列の名前を入力します。 This name must be the same name that you reference in your application code to retrieve data that uses this connection string.この名前は、同じ名前をアプリケーションコードでは、リファレンスでは、この接続文字列を使用してデータを取得する必要があります。 You cannot change the name later without re-creating the connection string.後で再名を変更せずに、接続文字列を作成することはできません。

4. 4 。 Select the Custom option, and then type the connection string. [カスタム]オプションを選択し、 [接続文字列を入力します。 The connection string should by formatted as appropriate for the type of database to which you are connecting.接続文字列に該当するには、接続しているデータベースの種類に対応として書式設定する必要があります。
Your organization's application developer or database administrator should be able to provide the required connection string.あなたの組織のアプリケーション開発者やデータベース管理者は、必要な接続文字列を提供できるようになります。 The following example connects to a local SQL Express database, which is stored in the aspnetdb.mdf file:次の例は、 aspnetdb.mdfファイルに格納されているローカルのSQL Expressのデータベースに接続します:

Data source=.\SQLEXPRESS;Integrated Security=SSPI;データソース=. \ SQLEXPRESS ;統合セキュリティ=のSSPI ;
AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true AttachDBFilename = | DataDirectory | aspnetdb.mdf ;ユーザーインスタンス= trueを

5. 5 。 Click OK to close the Add Connection String dialog box.をクリックして接続文字列の追加]ダイアログボックスを閉じます。


To edit an existing connection string, select the string that you want to modify, and then click Edit.は、変更したい文字列を選択すると、編集をクリックし、 [既存の接続文字列を編集するには。 In the Edit Connection String dialog box, modify the settings as necessary, and then click OK to save your changes.接続文字列の編集]ダイアログボックスで、 [ OK ]をクリックして変更を保存し、必要に応じて設定を変更してください。 To remove a connection string that is no longer needed, select the connection string you want to remove, and then click Remove.をクリックし、 [削除は、もはや必要とされている接続文字列を、削除しようとして削除するには、接続文字列を選択してください。 When prompted to confirm the action, click Yes.はい時のアクションをクリックし、 [確認するように求めている。 Popularity: 1%人気: 1 %


Written by magakos. magakosが記されている。 Read more great feeds at is source フィードを読んでさらにお得なソースです WEBSITE WEBサイト
no comments コメントはありません .
Read more articles on の詳細記事を読む IIS 7.0 のIIS 7.0 and および otherSoftware otherSoftware .

Related articles関連記事

No commentsコメントなし

There are still no comments on this article.まだこの記事でのコメントはありません。

Leave your comment...あなたのコメントを残す...

If you want to leave your comment on this article, simply fill out the next form:もしこの記事にコメントを残しするには、単に次のフォームに記入してください:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .これらのXHTMLタグ: href=""使用することができますtitle="">の<a <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite="">の<code>の<em> <私> <strike> <strong> 。