Not sure what your problem is. I get all the columns. Here's my test with your code, but using table variables since I don't have your data:declare @v_R_User table (ResourceID int, User_Name0 varchar(20), Full_User_Name0 varchar(20), department0 varchar(20), employeeNumber0 varchar(20), title0 varchar(20), manager0 varchar(20))declare @v_R_System table (ResourceID int, location0 varchar(20), Netbios_Name0 varchar(20), Last_Logon_Timestamp0 varchar(20))insert into @v_R_User(ResourceID) values(1)insert into @v_R_System(ResourceID) values(1)SELECT vru.User_Name0 , vru.Full_User_Name0 , vru.department0 , vru.employeeNumber0 , vru.title0 , vru.manager0 , vrs.location0 , vrs.Netbios_Name0 , vrs.Last_Logon_Timestamp0 FROM @v_R_User vru LEFT JOIN @v_R_System vrs ON vru.ResourceID = vrs.ResourceID ORDER BY vru.User_Name0;
When I run this I get:User_Name0 Full_User_Name0 department0 employeeNumber0 title0 manager0 location0 Netbios_Name0 Last_Logon_Timestamp0NULL NULL NULL NULL NULL NULL NULL NULL NULL
All the columns are there.