Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 difference between username and groupname

Author  Topic 

greaseman
Starting Member

30 Posts

Posted - 2006-06-08 : 14:46:53
I set up a group within an SQL Server database, of which I am a member. In some visual basic code, I do a dislay of user names.

My question: why does the code show my individual name (Server\myname) as opposed to showing the group name I want to see? I have confirmed that the only user of the database is the group, and not an individual user name.

Any ideas? Thanks!

*********************************************************************
This forum is best viewed with a computer. Questions asked freely. Confusion happily shared.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-06-08 : 14:55:17
Because you connect as a member not as a group. It doesn't matter how many members there, you'll always connect using your current credentials.

Tara Kizer
aka tduggan
Go to Top of Page

greaseman
Starting Member

30 Posts

Posted - 2006-06-08 : 16:19:19
Thanks for replying!

Question: so.... I understand what you're saying, but now, how do I show that member's group name via visual basic code? There must be a way.

Thanks for your reply.

*********************************************************************
This forum is best viewed with a computer. Questions asked freely. Confusion happily shared.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-06-08 : 16:21:16
Answer posted in your other thread.

Tara Kizer
aka tduggan
Go to Top of Page
   

- Advertisement -