select SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_R_System.SystemRoles, SMS_G_System_SERVICE.ServiceType, SMS_G_System_SERVICE.StartMode, SMS_G_System_SERVICE.StartName, SMS_G_System_SERVICE.Started, SMS_G_System_SERVICE.State, SMS_G_System_SERVICE.Status from SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SERVICE.Name = ##PRM:SMS_G_System_SERVICE.Name##