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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programatically determine if user is dbo or not?

Status
Not open for further replies.

paulray

Technical User
Mar 6, 2003
49
0
0
CA
Is there a simple sp that can tell me if the currently logged in user has db_owner rights? We run an app that performs DB changes when necessary, but want to ensure only a member of db_owner performs the changes. VB app runs against sql2000, uses windows authentication.
Thanks
Paul

 
Paul,

I'm a month late with this but you might experiment with
'Select CURRENT_USER'
will return 'dbo' is user is really dbo

HTH, John
 
Paul,
The IS_MEMBER function will do this exactly.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top