Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Please help with this query in SCCM SQL 2012 Report builder.

$
0
0

Hi,

I have a simple query that reads some data about machines. I want to expand this so it includes IP adress, computer name, dns record, last logon time and maybe even ipv6 address.

I now use this query:

SELECT
	Name0 AS 'Image naam',
	User_Domain0 AS 'Domein van laatst ingelogde gebruiker',
	User_Name0 AS 'Laatst ingelogde gebruiker',
	Creation_Date0 AS 'Installatie datum'
FROM v_R_System
	WHERE Resource_Domain_OR_Workgr0 = 'ion'
	AND Active0 = '1'
	AND name0 not like 'AISRV%'
	AND name0 not like 'CDC%'
ORDER BY name0

I tried getting the ip and such by inner joins, left joins etc. etc. I cannot get a working query and JOINS in SQL is not my area of expertise, only basic stuff. Can some please create a working query usable in the report viewer or give any help?



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>