Typical ISP setup. One server is a web server, the other is SQL SQL Server. There is a local administrator account, let XYZ be created on both machines. Therefore, when I log in remotely, I either WebServer \ XYZ or DBServer \ XYZ, depending on where I log in.
Now that I log in to SQL Server SSMS on DBServer using Windows Authentication and do "SELECT SUSER_NAME ()", I get DBServer \ XYZ. This makes sense as it picks up the fact that I logged in with these credentials.
Now let's move on to WebServer. I log in remotely as WebServer \ XYZ. I installed the client components of SQL there. When I start SSMS, select DBServer, log in using Windows Authentication and do "SELECT SUSER_NAME ()", I somehow get DBSERVER \ XYZ, instead of what I would suggest, it should be WebServer \ XYZ.
Somehow XYZ with WebServer becomes XYZ from DBServer. Why is this? How does this happen? Surely this cannot be simply because the names are the same?
I heard about trusted domains, but none of them is a domain controller, so I do not have access to this information. How can I tell if they trusted or not, without GUI tools?
The reason I ask this question is because I am trying to implement the same thing on my XP laptop (using Virtual PC), so I can simulate a production environment, but I'm out of luck.
source share