Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4023896
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:39:16+00:00 2026-05-20T10:39:16+00:00

my c#.net winforms application which uses sql server 2005 express , would be run

  • 0

my c#.net winforms application which uses sql server 2005 express , would be run by three users, & i want to give different user id & passwords to each of them, so in this case which security feature of SQL SERVER should i use?

  1. application roles –can application
    roles be used for this, or do
    application roles provide only one
    credential for the whole
    application?

  2. create a table for userids &
    passwords

  3. create new logins for each user to
    connect to sql server and grant
    permissions to each login

my application would be installed on 3 machines, server-SVR , Clients-c-1,c-2. all on LAN with windows xp.

can i create multiple application roles for a single application? i mean that if i have 3 forms in the application. can all 3 forms use different application roles ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:39:17+00:00Added an answer on May 20, 2026 at 10:39 am

    You could create roles in SQL Server, let’s say YourAppSuperRole, YourAppNormalRole, YourAppReadOnlyRole, and then grant object permissions to each of those roles, e.g. grant insert on sometable to YourAppSuperRole. or grant select on sometable to YourAppReadOnlyRole. Then, however you create users in your database, whether they be SQL Server users or domain users, you add the user to the appropriate role. That’s how you’d implement security on the database objects. How you handle the GUI/presentation-layer experience can be disconnected from the back-end. You could identify the Windows domain user, or create application users and require logon using those users, and then govern the GUI behavior accordingly. E.g. you might remove the SAVE RECORD button from the user who you’ve placed in the Readonly role.

    EDIT: I think the simplest way would be to use the Windows domain user. Grant db access to the domain users in the back-end, and add those users to the appropriate back-end roles (to determine what they can see/change in the back-end). Then, in the GUI, adapt the graphical behavior to the domain user who is using your app. If you didn’t remove the Save button from the form, the readonly role user could click it but the update would fail. So you’d typically not offer that user the apparent capability to do things they lack permission to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a small business application which uses Sqlserver 2005 database. Platform: .Net
I'm developing a Windows Mobile WinForm application that uses Sql Server CE 3.1 with
I need to impersonate a user in a VB.NET 2008 WinForms application, so that
I am building a .NET 3.5 Winforms app that uses WCF services (wsHttp binding)
I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView
We're trying to measure performance of our system, which is a .NET 3.5 application
I have a C# WinForms application with a database backend (oracle) and use NHibernate
Background - I need a framework/approach to managed database updates for a .NET Winforms
I made a WPF app that uses Web Services. It is failing on all
I am making this in a proactive attempt to head off any potential problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.