March 10, 2008 at 7:56 am
hi,
how can we see server logins id
thxxx
regards
jagpal singh
March 10, 2008 at 8:09 am
suser_id()
suser_name()
functions are what you are looking for i think ?
if not you may need to be more specific
kgunnarsson
Mcitp Database Developer.
March 10, 2008 at 8:16 am
hi
thaxx for reply but i just want to know that how we can see all users
login id .like we can see through management studio we just go to security and we can see all users but how can we see through t-sql
March 10, 2008 at 8:19 am
Hey,
sp_who or sp_who2
Cheers,
Phillip Cox
MCITP - DBAdmin
March 10, 2008 at 8:20 am
is this what you are looking for?
select * from sys.syslogins
or
select * from sys.server_principals
Piotr
...and your only reply is slàinte mhath
March 10, 2008 at 8:24 am
true.. the correct answer would be sys.sql_logins
kgunnarsson
Mcitp Database Developer.
March 10, 2008 at 8:40 am
sql_logins only gives you some of the logins for the server.
All logins are in server_principals./
March 10, 2008 at 8:40 am
hi,
thaxx for nice answer
regards
jagpal singh
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply