views:

220

answers:

1

I can't remember how to do this in a TSQL query. It was a one-liner, good for testing before running DML. The query was something similar to SELECT IS_DBO() or SELECT IS(DBO).

+1  A: 

You're probably looking for the IS_MEMBER function:

SELECT IS_MEMBER('db_owner')
LukeH
Excellent, that's it.
scottwed