IIS not connecting to SQL 2K

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default IIS not connecting to SQL 2K

    Hello all,

    I am being puzzled by an error that I receive when connectiong to a
    SQL box, from an ASP page.
    Here is the situation:

    SQLBox runs SQL 2K 8.00.534 (SP2) on Win2K SP3 ; SQL runs under a
    domain account with local admin privileges.
    IISBox runs IIS ( I don't know what version, I think it's 4, it does
    not look like 5; it's what came with Win2k) on Win 2K SP3 ; IIS runs
    under lsa.

    My (simple) ASP code looks like this (stored in myTest.asp in
    wwwroot\myTestDir:

    <%@ Language = "VBScript" %>
    <html> <head> <title> test page </title> </head>
    <body>
    <%
    set cn= CreateObject("ADODB.Connection")
    cn.Open ("Provider=SQLOLEDB;Data Source=SQLBox;Initial
    Catalog=master;Integrated Security=SSPI;Network Library=DBMSSOCN")
    cn.close
    %>
    </html>

    And what I get looks like (among other things):

    Microsoft OLE DB Provider for SQL Server (0x80040E4D)
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    SQL access is OK; connecting with Win authentication from Query
    analyzer is perfect.
    The IIS settings seem to be OK (Directory security/Authentication
    methods set to "Integrated Windows Authentication")

    And the fun part:
    Nothing could fix this, except logging locally on IISBox and browsing
    to http:://localhost/myTestDir/myTest.asp
    From anywhere else, browsing to http:://IISBox/myTestDir/myTest.asp
    will raise the same connect error.

    Our DC is still NT4 (I don't know more details).
    I strongly suspect that somehow the credentials are not being passed
    properly between the browser, IISBox and SQLBox.
    Searching usenet, the MS Kb, aspfaq.com ,etc. etc. did not yield any
    result (or drowned me in too many)

    Anybody having an idea ?

    Thanks for reading (and replying).
    BN

    PS Switching to SQL standard security is not an option.
    bob N Guest

  2. Similar Questions and Discussions

    1. connecting...
      we're having a hard time connecting to the server so we can let others make changes to the pages. we know we can connect to the server through our...
    2. Connecting without RDS? Please help!
      Hi there, I'm trying to connect to an Access database through Dreamweaver. My hosting is on a shared server and so they won't give me access to...
    3. connecting VS.NET to IIS-what do I have to do
      Using the first version of VisualStudio.NET and, I believe, IIS 5 (the one that comes with Server 2000) when I launch the ASP.NET application...
    4. ASP.NET connecting to SQL DB
      I'm having trouble connecting to an SQL database in Dreamweaver. I've typed in the correct parameters, but I get an "Http Error Code 403 Forbidden"...
    5. Connecting G5 to a TV
      I am thinking of ordering a G5 but have only the money to buy the machine plus software. I want to replace my 3 year old imac. Since I have an...
  3. #2

    Default Re: IIS not connecting to SQL 2K

    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;176377[/url]
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;307002[/url]

    HTH,
    Bob Barrows
    bob N wrote:
    > Hello all,
    >
    > I am being puzzled by an error that I receive when connectiong to a
    > SQL box, from an ASP page.
    > Here is the situation:
    >
    > SQLBox runs SQL 2K 8.00.534 (SP2) on Win2K SP3 ; SQL runs under a
    > domain account with local admin privileges.
    > IISBox runs IIS ( I don't know what version, I think it's 4, it does
    > not look like 5; it's what came with Win2k) on Win 2K SP3 ; IIS runs
    > under lsa.
    >
    > My (simple) ASP code looks like this (stored in myTest.asp in
    > wwwroot\myTestDir:
    >
    > <%@ Language = "VBScript" %>
    > <html> <head> <title> test page </title> </head>
    > <body>
    > <%
    > set cn= CreateObject("ADODB.Connection")
    > cn.Open ("Provider=SQLOLEDB;Data Source=SQLBox;Initial
    > Catalog=master;Integrated Security=SSPI;Network Library=DBMSSOCN")
    > cn.close
    > %>
    > </html>
    >
    > And what I get looks like (among other things):
    >
    > Microsoft OLE DB Provider for SQL Server (0x80040E4D)
    > Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    >
    > SQL access is OK; connecting with Win authentication from Query
    > analyzer is perfect.
    > The IIS settings seem to be OK (Directory security/Authentication
    > methods set to "Integrated Windows Authentication")
    >
    > And the fun part:
    > Nothing could fix this, except logging locally on IISBox and browsing
    > to http:://localhost/myTestDir/myTest.asp
    > From anywhere else, browsing to http:://IISBox/myTestDir/myTest.asp
    > will raise the same connect error.
    >
    > Our DC is still NT4 (I don't know more details).
    > I strongly suspect that somehow the credentials are not being passed
    > properly between the browser, IISBox and SQLBox.
    > Searching usenet, the MS Kb, aspfaq.com ,etc. etc. did not yield any
    > result (or drowned me in too many)
    >
    > Anybody having an idea ?
    >
    > Thanks for reading (and replying).
    > BN
    >
    > PS Switching to SQL standard security is not an option.

    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139