Microsoft Knowledge Base Email Alertz

(176378) - This article describes how to set up Microsoft SQL Server using Integrated Security on the same physical machine as Microsoft Internet Information Server.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 176378 - Last Review: May 2, 2006 - Revision: 5.1

How To SQL Server with Integrated Security, IIS on Same Machine

This article was previously published under Q176378

On This Page

SUMMARY

This article describes how to set up Microsoft SQL Server using Integrated Security on the same physical machine as Microsoft Internet Information Server.

MORE INFORMATION

When using SQL Server through a Trusted Connection, it may be necessary to host SQL Server and Internet Information Server on the same machine. This is commonly done with IIS 3.0 to work around limitations in accessing SQL Server through a Trusted Connection.

To allow access to SQL Server through a Trusted Connection, the SQL Server Login Security Mode needs to be set to either Mixed, or Windows NT Integrated. This can be changed from the Microsoft SQL Server Enterprise Manager,. From the Server menu, select SQL Server and Configure. The login settings are on the tab labeled Security Options.

To properly facilitate ActiveX Data Objects (ADO) connections from Active Server Pages (ASP), a System data source name (DSN) must be used.

Use the following steps to set up this DSN


  1. On the machine running Windows NT 4.0 that hosts these two products, click the Start menu.
  2. Select Settings.
  3. Click Control Panel.
  4. Double-click ODBC.
  5. Select the System DSN tab from the tabbed dialog box.
  6. Click Add.
  7. Select the SQL Server ODBC driver from the list.
  8. Name your new data source.
  9. In the Server combo-box, type "(local)" without the quotes.
  10. Check the "Trusted Connection" check box.
  11. Change whatever additional settings are necessary for your DSN.
  12. Click OK.
By setting the server to (local) we are preventing anyone using this DSN from looking out to the network for the SQL Server. By avoiding this step, you prevent the NTLM authentication process necessary to establish a trusted connection to SQL Server.

After setting up this DSN, you may access it as you would normally in ASP code.

REFERENCES

For the latest Knowledge Base artices and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/search/default.aspx?qu=vinterdev (http://support.microsoft.com/search/default.aspx?qu=vinterdev)

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by
Paul Enfield, Microsoft Corporation

APPLIES TO
  • Microsoft Active Server Pages 1.0
  • Microsoft Internet Information Server 3.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
  • Microsoft SQL Server 6.5 Standard Edition
Keywords: 
kbdatabase kbhowto kbsecurity kbwebserver KB176378
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate