Discussion Locked

SQL Server: Unable to login

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

Ok this one has me stumped, I'm getting desparate for help here. We were first presented with this problem this past Saturday when we attempted to move our half gig SQL Server 6.5 database from our old computer to a new Dell PowerEdge server. All indictations were as if it ported over to the new server without a hitch.

But now (on the new server) users are presented with repeated pop-up boxes asking them for a username to log on to the SQL Server database. To say this is annoying and killingproduction is the understatement of the decade.

I'm linking this to a repeated error in the event log which I just saw since the database was moved to the new machine. Verbatim it reads :

Error:17832, Severity:18, State:0
Unable to read login packet(s)

How do I go about resolving this?

PS. Points only awarded for proven solutions, I will test the solution before points are awarded.

Thanks.

-Tom

12 replies

by curacao_dejavu

What OS are the clients using ?
If NT what error message are they receiving (in the eventlog)

Error 17832 can be caused by:

A Windows 95 Winsock issue. A 16-bit Windows application using TCP/IP sockets may encounter this problem under Windows 95 in a slow network environment. The error is repeated numerous times in the errorlog. For more information, see the following article in the Microsoft Knowledge Base:

Q164516 : INF: Error 17832 Caused by Blocking Timeout in 16-Bit Sockets

Some anti-virus software on named pipes clients. Typically, when you configure anti-virus software to scan all files, named pipes (which are considered files) may be affected adversely. In this case, named pipes may be opened in invalid mode, causing these errors on the server side. To correct this problem, uninstall the anti-virus software to verify that this is indeed the case, and contact the software vendor for information on how to disable the auto-scanning of named pipes.

The useof the 32-bit ODBC driver for 16-bit Windows application under Windows 95. The 32-bit ODBC driver for SQL Server is not supported for use with 16-bit applications under Windows 95. The error occurs repeatedly in the errorlog for the duration of client login. For more information, see the following article in the Microsoft Knowledge Base:

Q140697 : INF: Win16 ODBC Applications in a Win32 Environment

by curacao_dejavu

continued:
Insufficient system resources on the client side. If a client's request for opening connections fails due to insufficient resources on the client computer, the open connection function returns with an error status, and no login packets are sent as a result, causing these errors. For more information on this known issue, see the following article in the Microsoft Knowledge Base:

Q161169 : BUG: "Too Many Open File Handles" Error Using Named Pipes

Insufficient system resources on the server side. If SQL Server, the Windows NT operating system, or network services cannot allocate enough resources to complete new connections, the connections are reset by server, thereby causing these errors to occur. For more information on this known behavior, see the following article in the Microsoft Knowledge Base:

Q154628 : INF: SQL Logs 17832 With Multiple TCP\IP Connection Requests

A client interruption in the middle of a login process. If a client application does not wait until the login process finishes, and either the application is stopped or the client computer is restarted, this error may occur each time such an abnormal termination happens.

by curacao_dejavu

continued:

An ODBC application that times out. There is a small window of opportunity in the SQL Server ODBC driver that may cause these errors when the ODBC application times out. Typically this error occurs when the application's timeout setting is just a small bit longer than the actual time it takes to complete the login process.

Some routers' configurations in a routed network not allowing bigger data packets to go through properly. This is often caused by incorrect router configurations, "black hole" routers, or unreliable networks such as RAS connections. For TCP/IP networks, you can generally use the TCP/IP PING utility with the "-l" parameter to test this case, but more complex issues may require the use of network sniffing tools to analyze the bottleneck. For more information on some relevant issues, see the following articles in the Microsoft Knowledge Base:

Q159211 : Diagnoses and Treatment of Black Hole Routers

Q136970 : PMTU Black Hole Detection Algorithm Change for Windows NT 3.51
The Network being too slow or unreliable. In a WAN or heavily routed network, it may take many retransmissions to deliver a large data packet successfully. If such a delivery of SQL Server login packets takes more than 45 seconds, this error will occur every time. The only solution in this case is to tune or upgrade the network; otherwise, the network is too slow for any meaningful SQL Server applications.

Check the MS KB:
Article ID: Q169521
Article ID: Q161169
Article ID: Q109787

regards,

Leopold

by stillatit

It has been a while since I used 6.5, but let's give it a try.

Looking at what changed:

When you moved to the new box, did you give it the same IP and netbios name as the old box? If not, each client ODBC entry will have to be edited.

Do the ODBC entries supply a password, or is it the user's login password?

I know SQL7 gives you a choice of using NT security or SQL security. I seem to remember 6.5 not having this exactly, but there is something similar which allows NT groups access. Since what changed is the server, did you run the procedure that links the SQL logins to the NT groups and logins?

Did you remove the old box from the domain and add the new box? Domain membership tracks by netbios name and MAC address. If not, you are not part of the domain, and may not be properly validating logins.

Did the move change operating systems? If you moved to Win2K, did you specify domain membership and mixed mode?

If you are using named pipes, did you load the Netbeui protocol?

When a user tries to access, and gets a password box, do they enter their login name and password, or an sql server name and password? Does it work? If so, look at the mechanism that is supposed to supply the user name and password. Note that since the clients have not changed, it MUST be due to something in the server.

Good luck.

by mike (from canada)

you might want to open up each database and save it to the new hard drive (in database program) or create a network between the two computers. If you tried that, try copying the files in DOS. also, run Scandisk. your disk might be screwed up.

by estebandelatorre

These are some important issues to check.
You must preserve the old server ip address and Server NAME or you will have to reconfigure all odbc's and...
These are the odbc's parameters which clients have configured in the odbc itself or inside the aplication.
Another issue that needs to be checked is where the security has been defined in old server and in the new one.
You may have 3 ways of setting security
1.- Windows NT (user name and password for sql server, are the same that you need to log on to the domain)
2.- SQL User nad passwords are the ones that you have defined in each user definition under the "logins"
3.- Mixed If the user exist in SAM, it will take the nt user and password for login, if not it will search for a user under "logins"
You should have preserved the authentication mode.
Another important issue is the protocols. What protocols (for sql) do you have configured (at server side!)
Names pipes, multiprotocol, nwlink?

How did you perform the migration from server OLD to new one?

Provide me more info, and i will try to help you

This discussion is closed to new replies.