LAN Windows 11 24h2 Slow performance

What is the content of the constant/variable named "ODBC_DRIVER"?

More ideas:

Did you check the "SQL Server Configuration Manager" on your SQL Server?
Take a look into "SQL Server Network Configuration", choose your SQL Server instance and ensure TCP/IP is activated.
Then restart your SQL Server Instance Service and try again.

Could it be a DNS problem? For a test you could try to use the sql servers ip-address in the connection string instead of its name.

Do you have multiple sql server instances on the server? How about trying to use a fixed port for your instance and set this port in the connection string?
 
However a minute later it went back to 30s load.

This comment didn't fully register with me at first, but... for most networks, the default network interface timeout for establishing a connection is 30 seconds. If you are getting frequent (regular) delays of 30 seconds then whatever step is waiting that long may be waiting on a network timeout. The fact that it works at all means it eventually takes an alternate network path that results in a good connection via that alternate path.

I would go back to your connection setup to check addresses. I would also look at the dynamic routing tables on affected PCs. Finally, I would locate the \etc folder to examine the hosts file, which is human-readable if a bit cryptic. It is possible to have multiple addresses for a host if that host has multiple network cards OR is accepting "aliased" traffic. Verify the addresses and verify that the routes to those addresses are correct. This could be caused by a connection having to use an aliased host name OR it could be forced to use an alternate route when the putative primary route fails to connect.

If you can do so in your environment, you want to open the CMD prompt so you can get to the PING command, ROUTE command, and a few other useful command-line utilities for network testing and configuration. You can type HELP utility-name or utility-name /H or utility-name ? to get help. One of those three will work, but not necessarily all three on the same utility. If you used the wrong help request, usually the utility will get snippy and tell you which one you should use.

ADDENDUM (TDM): If you ARE waiting for a connection, you can tell because the Windows Task Manager >> Peformance >> Network graph will show your system's normal network background for 30 seconds and then you'll get a sudden spike in network traffic.
 
To clarify it was not a delay thing. I have again miscommunicated. Deleting and relinking all tables was taking about 40s+ and it goes gradually (as there is "load" progress display x/107).

ODBC_DRIVER is "ODBC driver for SQL Server 18" (checked by both debug.print and hovering over linked table). I made it so it switches back to "17" and finally to "SQL Server" if newer driver is not installed on PC.

TCP/IP was/is active.

Solution suggested by AHeyne works (connect by server ip instead of name).
Code:
tcp:000.00.000,1111
To anyone facing similar issue: [0] IP and [1] port can be found in SQL Server Configuration Manager. I used IPv4.

Thank you all again for help.
 
Ah, thanks to @AHeyne for giving you that suggestion - because it points to a Name Server timeout problem. It is possible for a system to have more than one name server identified for name lookups. IF you can get to the CMD prompt, an NSLOOKUP of the SQL Server host name might tell you something useful. And there is a possibility of having more than one name server listed. IF it happens that your SQL server's name appears in the SECOND named name server - but not in the first server, you might see this behavior.

And, of course, if the IP address works and the name doesn't, that narrows things down considerably. Your IT team might actually be able to help you with this one, because if my guess is correct, all they would need to do is add your SQL server name to a HOSTS file, which is a simple edit.
 
Be careful of using the hosts file.
That caught me out, when the ip address changed.
 
Be careful of using the hosts file.
That caught me out, when the ip address changed.

That's why I suggested to let the IT department know there is a problem and let THEM correct it.
 

Users who are viewing this thread

Back
Top Bottom