×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SMS Need help: Report for MS Office installations including system OU

SMS Need help: Report for MS Office installations including system OU

SMS Need help: Report for MS Office installations including system OU

(OP)
We currently have the following SQL based report in SMS 2003 that does a fair job of listing out all our workstations with Microsoft Office installed.  I need to also list out the domain Organizational Unit that each workstation is in and can't seem to get it to work.  The value would appear to be dbo.v_RA_System_System_OU_Name0 but when I add that in the section along with the other values for IPSubnets, Netbios_Name, and such, when I run it I get an error:

"The column prefix 'dbo' does not match with a table name or alias name used in the query."

Any help greatly appreciated!

Here is the script as it exists today:

SELECT DISTINCT
                      dbo.v_RA_System_IPSubnets.IP_Subnets0, dbo.v_R_System.Netbios_Name0, dbo.v_R_System.User_Name0,
                      dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0
FROM         dbo.v_GS_ADD_REMOVE_PROGRAMS LEFT OUTER JOIN
                      dbo.v_CM_RES_COLL_SMS00004 ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_CM_RES_COLL_SMS00004.ResourceID INNER JOIN
                      dbo.v_R_System ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                      dbo.v_RA_System_IPSubnets ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_RA_System_IPSubnets.ResourceID INNER JOIN
                      dbo.v_GS_SoftwareFile ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_GS_SoftwareFile.ResourceID
WHERE     (dbo.v_RA_System_IPSubnets.IP_Subnets0 NOT LIKE '%.0.0') AND
                      ((dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%microsoft%office%pro%' OR
                      dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%microsoft%office%stan%') AND
                      NOT (dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%visio%' OR dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%Proof%' OR dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%Project%'))
ORDER BY dbo.v_RA_System_IPSubnets.IP_Subnets0, dbo.v_R_System.Netbios_Name0

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close