Your best source of information and news about software , hardware and hardware on the internet Sua melhor fonte de informações e notícias sobre software, hardware e hardware na internet

Vista ARTICLES Vista ARTIGOS TOP 50 TOP 50 Spyware Virus Vírus Spyware Vista SOFT Vista SOFT Vista HELP Vista HELP

Connecting to Data Sources in IIS 7.0 Conectando a fontes de dados no 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. O IIS pode armazenar strings conexão usada por aplicativos de código gerenciado para se conectar a fontes de dados remotos e locais, que podem incluir bases de dados SQL Server e outros tipos de bases de dados. 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. Para ver actualmente configurado conexão cordas, no gestor do IIS, navegue até o nível da configuração hierarquia pretende gerir e, em seguida, acessar a página Connection Strings clicando duas vezes na conexão Strings recurso. In the main pane, you'll see a list of the currently defined connection strings. No painel principal, você verá uma lista de strings conexão definidos atualmente. Local entries are configured at the level you are working with. Local entradas são configuradas no nível que você está trabalhando com. Inherited entries are configured at a higher level of the configuration hierarchy. Herdado entradas são configuradas a um nível mais elevado da hierarquia configuração.


You can create a connection string for SQL Server by completing the following steps: Você pode criar uma seqüência de conexão para o SQL Server através do preenchimento dos seguintes passos:

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. No IIS Manager, navegue até o nível da configuração hierarquia pretende gerir e, em seguida, acessar a página Connection Strings clicando duas vezes na conexão Strings recurso.

2. On the Connection Strings page, in the Actions pane, click Add. Connection Strings sobre a página, no painel Ações, clique em Adicionar. This displays the Add Connection String dialog box. Isso exibe a caixa de diálogo Add Connection String.

3. In the Name text box, type the name of the connection string, such as SqlServerCustDb. Na caixa de texto Name, digite o nome da cadeia de ligação, tais como SqlServerCustDb. This name must be the same name that you reference in your application code to retrieve data that uses this connection string. Esse nome deve ser o mesmo nome que o seu pedido em referência código para recuperar dados que usa essa conexão string. You cannot change the name later without re-creating the connection string. Você não pode alterar o nome mais tarde sem re-criar a seqüência de conexão.

4. In the Server text box, type the name of the SQL server that hosts the database. Na caixa de texto Server, digite o nome do servidor SQL que hospeda o banco de dados.

5. In the Database text box, type the name of the SQL server database. No banco de dados da caixa de texto, digite o nome do servidor SQL banco de dados.

6. Select one of the following Credentials options to specify the security credentials that are used to connect to the database: Selecione uma das seguintes opções para especificar as credenciais de segurança credenciais que são usados para se conectar ao banco de dados:

• 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. • Utilize o Windows Integrada de Segurança Configura a seqüência de conexão para que o aplicativo usa a identidade atual do Windows criado com o sistema operacional thread SQL Server para acessar o banco de dados. Use this option to pass through authenticated Windows domain credentials to the database. Use essa opção para passar através autenticada credenciais de domínio do Windows para o banco de dados.
You can use integrated security only when SQL Server runs on the same computer as IIS or when you've configured delegation between computers. Você pode usar integrado de segurança só é executado quando o SQL Server no mesmo computador que o IIS ou quando você tiver configurado delegação entre computadores. Additionally, all application users must be in the same domain so that their credentials are available to IIS. Além disso, todos os usuários devem ser pedido no mesmo domínio, para que as suas credenciais estão disponíveis para o IIS.

• Specify Credentials Configures the connection string to use a specific SQL Server user name and password. • Especificar Certificações Configura a seqüência de conexão para o SQL Server usar um determinado nome de usuário e senha. Use this option when you do not want to pass through user credentials to the database for authentication. Utilize esta opção quando não quiser passar por credenciais de usuário para o banco de dados para autenticação. After you select Specify Credentials, click Set. Após selecionar especificar credenciais, clique em Definir. In the Set Credentials dialog box, type the SQL Server user name to use for the connection. Na caixa de diálogo Definir Credenciais, digite o nome do usuário do SQL Server para utilizar para a ligação. After you type and then confirm the password for this user, click OK. Após digitar e depois confirmar a senha para este usuário, clique em OK.

7. Click OK to close the Add Connection String dialog box. Clique em OK para fechar a caixa de diálogo Add Connection String.


You can create a custom connection string for other types of database servers by completing the following steps: Você pode criar uma seqüência personalizada conexão para outros tipos de servidores de banco de dados através do preenchimento dos seguintes passos:

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. No IIS Manager, navegue até o nível da configuração hierarquia pretende gerir e, em seguida, acessar a página Connection Strings clicando duas vezes na conexão Strings recurso.

2. On the Connection Strings page, in the Actions pane, click Add. Connection Strings sobre a página, no painel Ações, clique em Adicionar. This displays the Add Connection String dialog box, with the Custom option enabled. Isso exibe a caixa de diálogo Add Connection String, com a opção Personalizado ativado.

3. In the Name text box, type the name of the connection string, such as LocalSqlServer. Na caixa de texto Name, digite o nome da cadeia de ligação, tais como LocalSqlServer. This name must be the same name that you reference in your application code to retrieve data that uses this connection string. Esse nome deve ser o mesmo nome que o seu pedido em referência código para recuperar dados que usa essa conexão string. You cannot change the name later without re-creating the connection string. Você não pode alterar o nome mais tarde sem re-criar a seqüência de conexão.

4. Select the Custom option, and then type the connection string. Selecione a opção Personalizado e, em seguida, digite a seqüência de conexão. The connection string should by formatted as appropriate for the type of database to which you are connecting. A seqüência de conexão devem formatada pelo conforme apropriado para o tipo de banco de dados ao qual está se conectando.
Your organization's application developer or database administrator should be able to provide the required connection string. Seu pedido da organização desenvolvedor ou administrador de dados deve ser capaz de fornecer a necessária ligação string. The following example connects to a local SQL Express database, which is stored in the aspnetdb.mdf file: O exemplo a seguir se conecta a uma base de dados locais do SQL Express, que está armazenada no aspnetdb.mdf arquivo:

Data source=.\SQLEXPRESS;Integrated Security=SSPI; Fonte dos dados =. \ SQLEXPRESS; Integrado de Segurança = SSPI;
AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true AttachDBFilename = | DataDirectory | aspnetdb.mdf; Usuário Instância = true

5. Click OK to close the Add Connection String dialog box. Clique em OK para fechar a caixa de diálogo Add Connection String.


To edit an existing connection string, select the string that you want to modify, and then click Edit. Para editar uma ligação existente seqüência, selecione a string que você deseja modificar e, em seguida, clique em Editar. In the Edit Connection String dialog box, modify the settings as necessary, and then click OK to save your changes. Na caixa de diálogo Editar seqüência Connection, modificar as configurações conforme necessário e, em seguida, clique em OK para salvar suas alterações. To remove a connection string that is no longer needed, select the connection string you want to remove, and then click Remove. Para remover uma seqüência de conexão que não é mais necessário, selecione a seqüência de conexão que deseja remover e clique em Remover. When prompted to confirm the action, click Yes. Quando solicitado para confirmar a ação, clique em Sim. Popularity: 1% Popularity: 1%


Written by magakos. Escrito por magakos. Read more great feeds at is source Leia mais em grande feeds é fonte WEBSITE WEBSITE
no comments sem comentários . .
Read more articles on Leia mais artigos sobre IIS 7.0 O IIS 7.0 and e otherSoftware otherSoftware . .

Related articles Artigos relacionados

No comments Sem comentários

There are still no comments on this article. Ainda não há comentários sobre este artigo.

Leave your comment... Deixe o seu comentário ...

If you want to leave your comment on this article, simply fill out the next form: Se quiser deixar o seu comentário sobre este artigo, simplesmente preencha o seguinte formulário:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . Você pode usar estes XHTML tags: <a href="" title="Avião"> <abbr title="Avião"> <acronym title="Avião"> <b> <blockquote cite=""> <code> <em> <i > <strike> <strong>.