IIS and SQL Server Persmission Issue
From: Patrick24601 (patrick24601_at_yahoo.com)
Date: 08/15/04
- Next message: Patrick24601: "Re: How to improve SQL Server 2000 performance?"
- Previous message: Sue Hoegemeier: "Re: Linked server for Oracle on SQL server - query performance"
- Next in thread: David Browne: "Re: IIS and SQL Server Persmission Issue"
- Reply: David Browne: "Re: IIS and SQL Server Persmission Issue"
- Reply: Patrick24601: "Re: IIS and SQL Server Persmission Issue"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 15 Aug 2004 15:36:21 -0500
IIS and SQL Server Persmission Issue
I am getting an error trying to run a SQL Server SELECT statement from an
ASP Application.
I am learning ASP/IIS/SQL Server by writing a small ASP app in Dreamweaver.
I've created and tested the ODBC connection just fine. And when I create the
connection in Dreamweaver and run the query it works just fine. However when
I try to access the web page I get:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'ATBSLAPTOP\IUSR_ATBSLAPTOP'.
/webprodmx/categories.asp, line 9
Code is:
Dim MM_webprodmx_STRING
MM_webprodmx_STRING = "dsn=DSNwebprodmxSQL;uid=IUSR_ATBSLAPTOP;
Set rsCategories = Server.CreateObject("ADODB.Recordset")
9: rsCategories.ActiveConnection = MM_webprodmx_STRING
rsCategories.Source = "SELECT * FROM dbo.categories ORDER BY category ASC"
rsCategories.CursorType = 0
The DSN is defined and working (testing outside of dreamweaver, via setup
directly). The database and table exist and have data present. Like I said
it works everyplace else except when going through IIS. I have read some of
the MS Support articles and made sure I am accessing my machine via (local)
so there is no network access. Everything is running on my single local
machine - even IIS and SQL Server 2000.
Any suggestions would be appreciated.
- Next message: Patrick24601: "Re: How to improve SQL Server 2000 performance?"
- Previous message: Sue Hoegemeier: "Re: Linked server for Oracle on SQL server - query performance"
- Next in thread: David Browne: "Re: IIS and SQL Server Persmission Issue"
- Reply: David Browne: "Re: IIS and SQL Server Persmission Issue"
- Reply: Patrick24601: "Re: IIS and SQL Server Persmission Issue"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|