Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server 2000 HTML Error messages

Status
Not open for further replies.

TenMinJoe

Programmer
Jan 24, 2002
3
GB
Hi all.

I am using the SQL Server authentication to control access to a SQL Server 2000 database via a web front end.

If I enter an invalid username & password, SQL Server (quite reasonably) returns a page of the form:

ERROR: 401 Access Denied
HResult: 0x80040e4d
Source: Microsoft SQL isapi extension
Description: Access denied

This is all well and good from a security point of view, but I want to be able to provide a customized message, and format the page to match the rest of the site. I have investigated the IIS 'custom error message' pages, but these appear to be separate from SQL's own errors.

It is not possible to switch to Windows authentication, I have to stick with SQL logins.

Does anyone know how to customize this message? Thanks in advance.

--
Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top