Say if using sp_helplognis, want to view result set with filter UserName=db_owner. Is there any way besides output the original result set to a temp table and then query on that temp table? Thanks.
Say if using sp_helplognis, want to view result set with filter UserName=db_owner . Is
Share
Don’t use sp_helplogins: use sys.server_principals
If you want the 2nd resultset of sp_helplogins, then you’d have to use c# or something because loading a temp table will only trap the 1st resultset.
The equivalent of sys.server_principals is sys.database_principals too
FYI: db_owner is in every database already. What are you really trying to do…?
Edit, after comment, something like: