Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Help with an SQL query

$
0
0

Hi Spiceheads, I have an SQL question for you... I am not very good with management studio so please bear with me.

I need to generate a user report from our HR system; it has a report builder which unfortunately cannot give me the 'username' attribute for each user. (I can export all other other data). This is stored in a 'system' table which the report builder cannot access.

This makes it very hard to automate user data imports into AD which would allow us to easily share data across the organisation.

I can see the data I need in the SQL database for the system - together it is stored in two different tables

Most of the useful user info is stored in dbo.PEOPLE

The USERID is stored in dbo.OC_USERS

there is a common attribute:

dbo.PEOPLE PEOPLE_ID Z013532A-74B3-43BB-A2AD

dbo.OC_USERS ASSOCIATEDRECORDID Z013532A-74B3-43AD

I guess this involves a...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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