
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2011 05:45 AM
I need to generate an SQL View that contains the following information from the lansweeper database, and I'm hoping that someone who know's the database map better than I do can help.
I need to be able to grab:
Vendor
Model
OS Caption
Identifying Number/Service Tag
MAC Address of the primary network adapter
Last Logged on user
If anyone can be of assistance it would be very helpful.
Thanks,
GaryO
I need to be able to grab:
Vendor
Model
OS Caption
Identifying Number/Service Tag
MAC Address of the primary network adapter
Last Logged on user
If anyone can be of assistance it would be very helpful.
Thanks,
GaryO
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2011 07:14 PM



Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2011 01:17 PM
Please try the following query:
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique, tblComputers.Domain, tblComputerSystemProduct.Vendor, tblComputerSystemProduct.Name, tblOperatingsystem.Caption, tblComputerSystemProduct.IdentifyingNumber, tblNetwork.Description As [Network Card], tblNetwork.IPAddress, tblNetwork.MACaddress, tblCPlogoninfo.Username As [Last Logged On], Max(tblCPlogoninfo.logontime) As [Last Logon Date] From tblComputers Inner Join tblNetwork On tblComputers.Computername = tblNetwork.Computername Left Join tblOperatingsystem On tblComputers.Computername = tblOperatingsystem.Computername Left Join tblComputerSystemProduct On tblComputers.Computername = tblComputerSystemProduct.Computername Left Join tblCPlogoninfo On tblComputers.Computername = tblCPlogoninfo.Computername Inner Join web40ActiveComputers On web40ActiveComputers.Computername = tblComputers.Computername Group By tblComputers.Computername, tblComputers.ComputerUnique, tblComputers.Domain, tblComputerSystemProduct.Vendor, tblComputerSystemProduct.Name, tblOperatingsystem.Caption, tblComputerSystemProduct.IdentifyingNumber, tblNetwork.Description, tblNetwork.IPAddress, tblNetwork.MACaddress, tblCPlogoninfo.Username, tblNetwork.IPEnabled Having tblNetwork.IPEnabled = '1'
