Detect SQL Server Role in VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mCharton
    New Member
    • Jan 2008
    • 2

    Detect SQL Server Role in VB.NET

    I'm pretty new to programming for SQL. Using VB.NET (2005) how do I detect whether a user has been given write access to my database at designtime in a windows application? Is there something akin to my.user.isinrol e("Server/database/db_datawriter") ??? I just need to be able to distinguish between users with write access and those with just read access.

    Any help would be much appreciated. Thanks.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved to .net forum.

    Comment

    Working...