Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Create a join for User tables
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - 01/30/2014 :  14:51:21  Show Profile  Reply with Quote
To simply:
Table names: User, UserRole, RoleValues.

Each table has tablename.CreatedBy, tablename.Created, tablename.UpdatedBy, tablename.Updated

Stored procs: UserGetUserByDomainUserName, UserGetByRole, UserRoleGetByUser

username (smithj) authenticate via AD to log into app.

Need help creating a join statement to get all permissions for a user, merge all roles together to get a list, but I do not need the actual role values (Administrator, Employee, Assistant). For example, user, smithj, is the "CreatedBy", he can create, edit, everything he creates, but he cannot edit other user's records. Vice versa. Other users cannot edit the "CreatedBy" user's record, but he can only add a report, save. No other changes should be performed.

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 01/31/2014 :  08:28:00  Show Profile  Reply with Quote
so what should be your expected output?

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000