Discussion Locked

SQL Server 7.0 / NT 4.0 / IIS 4.0

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I tried to access to SQL Server from IE (ASP used), and the SQL Server reply:
Database Results Error
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'SERVER\IUSR_SQL'.
does anyone know what's worng, thanks.

5 replies

by gutridgesj

That user IUSR_SQL looks like one of the anonymous NT user accounts that get created. If your SQL server is using NT authentication, then the NT user called IUSR_SQL either does not exist or you are not using the correct password.

I would first test user access using the control panel, ODBC Data Source Admin before trying the ASP since the ASP must go there anyway for the DSN entry.

Make sure that in SQL 7, the user IUSR_SQL exists (even if already on NT). Just because an NT user exists and the SQL server uses NT authentication, does not mean that the NT user has been set up in SQL 7.

Try a different user that is known to be on SQL 7 with access to your database, either with SQL authentication or NT authentication.

There is probably more to look into, but this should help for now.

Steve

by rraheb

If your SQL Server and your IIS server are on different physical NT boxes then this is the source of the problem.

If this is the case let me know and I'll provide you with more information.

Best Regards,

Rafik El-Raheb.

This discussion is closed to new replies.