anushahanna
asked on
varbinary in equality condition
when i run the foll, i get a bunch of valid users, right?
select * from sysusers a, master..syslogins b where a.sid = b.sid
I copied one of the SIDs and pasted it below like
select * from master..syslogins where sid = '0x01060000000000090100000 0FF26DF8EE DB95511A14 FF6DC4F44B 25F67867BA E'
but i get blank output. why is this?
thanks
select * from sysusers a, master..syslogins b where a.sid = b.sid
I copied one of the SIDs and pasted it below like
select * from master..syslogins where sid = '0x01060000000000090100000
but i get blank output. why is this?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
select * from master..syslogins where sid = suser_sid('0x0106000000000 0090100000 0FF26DF8EE DB95511A14 FF6DC4F44B 25F67867BA E')
pass login name in SUSER_SID
ASKER
xDJR1875, that worked. thanks.
ASKER
VjSoft, the foll is bringing blank..
select * from master..syslogins where sid = suser_sid('0x0106000000000 0090100000 0FF26DF8EE DB95511A14 FF6DC4F44B 25F67867BA E')
whereas
select * from master..syslogins where sid = 0x010600000000000901000000 FF26DF8EED B95511A14F F6DC4F44B2 5F67867BAE
brings the output.
select * from master..syslogins where sid = suser_sid('0x0106000000000
whereas
select * from master..syslogins where sid = 0x010600000000000901000000
brings the output.
suser_sid('0x0106000000000 0090100000 0FF26DF8EE DB95511A14 FF6DC4F44B 25F67867BA E')
is not correct, I wrote it by mistake, see my next post, that will work,
is not correct, I wrote it by mistake, see my next post, that will work,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
beautiful. thanks many.