﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / Different domains causing poor query performance? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 20:21:27 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>[quote][b]Arjen Krap (12/6/2012)[/b][hr]If you are using SQL accounts then slowdowns are unlikely to be caused by different domains.[/quote]Thanks that the bit I was looking for. To be honest I would have been surprised if the answer was any different.I had already checked general performance of the server, and as I had said before, this seems to be impacting one site more than any other - I'll be handing this one over to the network team for them to look at.Thanks for the help.</description><pubDate>Fri, 07 Dec 2012 00:57:35 GMT</pubDate><dc:creator>Stuart Davies</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>If you are using SQL accounts then slowdowns are unlikely to be caused by different domains.You should follow standard performance troubleshooting procedure. Run a trace using the profiler. Use the tuning template and add the Application Name, Hostname, CPU, Reads, and Writes columns. Filter on the duration column, e.g. greater or equal than 10.000 ms. Also group by by the Hostname and Application Name columns. Start the trace and then try to reproduce the problems. If you see high CPU, Reads, and or Writes value there is probably a SQL Server issue related to the number of queries, complexity of queries, missing indexes, incorrect usage of indexes, execution plan (re)compiles, or IO congesting that needs to be solved. Otherwise it might be a locking (waiting for resources locked by other sessions), networking, or otherwise external issue.</description><pubDate>Thu, 06 Dec 2012 14:22:05 GMT</pubDate><dc:creator>Arjen Krap</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>[i]- Is the user account running the client application a member of the workstation domain or the server domain? (Or perhaps a third domain?)[/i]The are two domains Client pc is part of domain A this is the same domain that the user logs onto. The SQL Server is in domain B[i]- Is the client application a normal windows application or a web site?[/i]Windows App - just to potentially muddy the waters, there are also web apps where the back end is on the same SQL server; these have [b]not[/b] reported slow running to the same extent. Other locations, it should be noted, don't experiance this issue to the same extent.[i]- How does the client application connect to SQL Server? Directly or via a server application?[/i]Directly via ODBC [i]- What kind of user account does the client application uses to connect to SQL Server? A domain account, local user account (in case the server application or web site runs on the same server as SQL Server), or a SQL user account?[/i]SQL account. Same account is used for all users.[i]- In the case of a domain account, which authentication scheme is used, NTLM or Kerberos? You can look this up in sys.dm_exec_connections (http://msdn.microsoft.com/en-us/library/ms181509.aspx)[/i]SQL - don't forget this is a SQL 2005 server not 2012</description><pubDate>Thu, 06 Dec 2012 02:03:17 GMT</pubDate><dc:creator>Stuart Davies</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>Okay, I have a few questions for a getting a better view of the situation (not sure actually if they could be relevant):- Is the user account running the client application a member of the workstation domain or the server domain? (Or perhaps a third domain?)- Is the client application a normal windows application or a web site?- How does the client application connect to SQL Server? Directly or via a server application?- What kind of user account does the client application uses to connect to SQL Server? A domain account, local user account (in case the server application or web site runs on the same server as SQL Server), or a SQL user account?- In the case of a domain account, which authentication scheme is used, NTLM or Kerberos? You can look this up in sys.dm_exec_connections (http://msdn.microsoft.com/en-us/library/ms181509.aspx)</description><pubDate>Wed, 05 Dec 2012 08:50:23 GMT</pubDate><dc:creator>Arjen Krap</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>Thanks for your feed back.I'd done some initial checking before coming here (not in first post - sorry)  the SQL box runs fine from either clients within the same domain or different applications. This is the server for several different applications, only one of which is producing problems for a limited number of users. Further investigations have revealed that they are in the same location - so this may well have more of a bearing on the problem.I have also asked the users to keep a log of problems (which wasn't being done before) - so I might actually have something to help me find out what is going on in the future.</description><pubDate>Wed, 05 Dec 2012 07:32:09 GMT</pubDate><dc:creator>Stuart Davies</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>SQL Server won't perform poorly just because its server computer is a member of the different domain than the client computer.Authentication and hostname resolving might take a bit longer because information has to looked up from multiple domain controllers/DNS server but that does not affect query performance after authentication has completed. In a complex forest with many domains when the two domains do not trust each other directly this might cause additional delays, but only for authentication and hostname resolving. The following article explains this: http://technet.microsoft.com/en-us/library/cc737939%28v=ws.10%29.aspx. (Link added for clarity, not as advice to implement this.)There is probably another reason for slow performance. Follow standard procedures for performance troubleshooting. Start by running the application on a computer in same domain as the server to see if there is any difference.</description><pubDate>Wed, 05 Dec 2012 06:37:11 GMT</pubDate><dc:creator>Arjen Krap</dc:creator></item><item><title>RE: Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>I have received similar complaints indicating that authenicating with domain accounts takes minutes longer in some cases, connecting via the app and to SQL.  However using the same account in an RDP session to the SQL server has no issues.  All connections are GB and not all servers or apps exhibit this</description><pubDate>Wed, 05 Dec 2012 06:25:33 GMT</pubDate><dc:creator>Mark Zigadlo</dc:creator></item><item><title>Different domains causing poor query performance?</title><link>http://www.sqlservercentral.com/Forums/Topic1392555-149-1.aspx</link><description>I think my powers of google-fu must be letting me down - can anyone help with the following:-It has been suggested that a SQL 2005 server has started performing poorly for one of the applications running on it. The reason being that the SQL server is on a different domain to the client pc and that "Active directory will be slowing things down" (comment by internal support staff) - however the log on used is a SQL log on and not Windows.Does anyone have any evidence (anecdotal or otherwise) one way or the other for this ?</description><pubDate>Tue, 04 Dec 2012 08:53:55 GMT</pubDate><dc:creator>Stuart Davies</dc:creator></item></channel></rss>