Problem solve Get help with specific problems with your technologies, process and projects.

How can I tweak the server to clear orphan queries?

Hi, Laura. I am running MS SQL Server 7.0 on an NT 4.0 server SP6a. Over a period of time, the active TCP connections build up and no further connections are able to be made to the server. I have confirmed that SQL Server is up and running and there are no active threads or jobs in SQL. I can open Enterprise Manager on the console and run queries. Additionally, I can continue to initiate and execute queries remotely. My question is: How can I tweak the server to clear orphan queries on that server?
The Windows default for maintaining a TCP connection open in a TIME_WAIT state is four minutes, which may be too long for your environments' needs. Refer to KB article TCP/IP and NBT Configuration parameters for Windows 2000 or Windows NT for information on modifying TCP parameters, especially the "TCPTimedWaitDelay" setting, which can be reduced as low as five seconds. All usual disclaimers about registry editing and testing changes before implementing them in a production environment apply.

Dig Deeper on Windows Server storage management

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.