Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting group name from sysusers

Status
Not open for further replies.

GermanB

Programmer
Nov 22, 2001
5
AR
I'm trying to get the current user's group name from sysusers with a query like this:

SELECT G.name as Fun FROM dbo.sysusers G INNER JOIN dbo.sysusers U ON G.uid = U.gid WHERE (U.name = USER_NAME())

From the Enterprise Manager it works OK. From an application (C++ Builder) I use a query object, set the query, open it, and when I try to read the data I get "Field 'Fun' not found". I tried different ways but no success. Is there some way to get this data from an application???
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top