<p>Ever since moving to Vista some time ago on my development machine, connecting to SQL Servers in our DMZ active directory domain from client tools like SSMS has not worked like it used to.  In XP, as long as I had authenticated in some way on the server (for example directing Explorer to \server.dmzdomain\c$ and entering valid creds into the login prompt), SSMS would use those cached credentials to connect.</p>

<p>However since switching to Vista, when trying to connect SSMS to a server in the DMZ domain I get the message <em>Login failed for user ''. The user is not associated with a trusted SQL Server connection.</em>  If I change the connection options to use Named Pipes instead of the default TCP/IP, my cached credentials are sent and everything works fine.  This is the case whether Windows Firewall is off or on, and connections to servers in our internal domain (the same domain my dev PC is in) work fine over TCP/IP or named pipes.</p>

<p>I don't mind too much using named pipes for these connections as a workaround, but it seems like TCP/IP is the recommended connection method and I don't like not understanding why it's not working as I'd expect.  Any ideas?</p>

[{'answer_id': 26084, 'author': 'Greg Hurlman', 'author_id': 35, 'author_profile': 'https://Stackoverflow.com/users/35', 'pm_score': 0, 'selected': False, 'text': '<p>Have you tried running SSMS in elevated mode, and do you have the latest SP installed on the client?</p>\n'}, {'answer_id': 41254, 'author': 'mrdenny', 'author_id': 4197, 'author_profile': 'https://Stackoverflow.com/users/4197', 'pm_score': 0, 'selected': False, 'text': '<p>I would assume that this is because Vista runs most applications in isolation from either other.</p>\n\n<p>I would recommend that you either set the DMZ username and password to match the internal domain username and password, or use named pipes to connect.</p>\n'}, {'answer_id': 170456, 'author': 'Booji Boy', 'author_id': 1433, 'author_profile': 'https://Stackoverflow.com/users/1433', 'pm_score': 1, 'selected': False, 'text': '<p>"Login Failed for user \' \', the user is not associated with a trusted SQL Server connection".</p>\n\n<p>In this scenario, client may make tcp connetion, plus, running under local admin or non-admin machine account, no matter SPN is registered or not, the client credential is obviously not recognized by SQL Server.</p>\n\n<p>The workaround here is:</p>\n\n<p>Create the same account as the one on the client machine with same password on the target SQL Server machine, and grant appropriate permission to the account.</p>\n\n<p>Let\'s explain in more detail:</p>\n\n<p>When you create the same NT account (let\'s call it usr1) on both \nworkstations, you essentially connect and impersonate the local account of \nthe connecting station. I.e when you connect from station1 to station2, \nyou\'re being authenticated via the station2\'s account. So, if you set the \nstartup account for SQL Server (let\'s assume it\'s running on station2) to be \nstation2\'s usr1, when you connect to SQL from station1 with station1\'s usr1 \nlogin, SQL will authenticate you as station2\'s usr1.</p>\n\n<p>Now, within SQL, you can definitely access station1\'s resources. Though, how \nmuch access will depend on station1\'s usr1 permission.</p>\n\n<p>So far, SQL only deal with an user who is part of the sysadmin role within \nSQL Server. To allow other users (non-sysamdin) access to network resources, \nyou will have to set the proxy account. Take a look at the article for \nadditional info.\ntaken from <a href="http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx</a></p>\n'}]
['https://Stackoverflow.com/questions/22493', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/205/']