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 4004854
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:19:26+00:00 2026-05-20T08:19:26+00:00

I want to create logins & users for my c#.net winforms application which uses

  • 0

enter image description here

I want to create logins & users for my c#.net winforms application which uses sql server 2005 express .& upto my knowledge i have built these steps.

So , I want to ask that are these steps correct or am i making a lot of mistakes.

Also, if am missing any step then please add new steps.
Also, in the last step, what should i do, do i have to grant permissions to both ,USERS & SCHEMA, OR to only USER, OR to only SCHEMA.

I am seeking improvements in this model or a new model if anybody can provide. Would be a great help.

I want to GRANT & DENY permissions of DATABASE LEVEL such as CREATE, DROP, ALTER DATABASE ; of TABLE LEVEL such as INSERT , DELETE, ALTER, UPDATE & of COLUMN LEVEL.

Also, is creation of schema necessary?

As far as i know:
CREATION OF LOGIN is necessary
CREATION OF USER for the above created login is necessary
CREATION OF SCHEMA is or is not necessary? i don’t know.

  • 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-20T08:19:26+00:00Added an answer on May 20, 2026 at 8:19 am

    I’m changing my whole answer. I really think it’s not a good idea to grant uses direct login access to your db. The DB is not the right “choke point” for permissions. Create one user with the total db permissions you will need. Then grant the users features in your application based on their role in the application (tracked in a table in your database).

    There are a lot of problems with creating 1 login per user in your database. A few are 1. Maintainance nightmare 2. Now your users can log in to your db directly if they can get connected to it with Management studio or some other tool.

    1. To elaborate . . . create one login for your application. Name it something like MyApplicationUser.
    2. Create a table in your application to track the roles that each user could be part of. This can also track the features they are allowed to have in your application (though probably in a different table)
    3. When the user starts the application, the application is opend using the same db credentials (MyApplicationUser)
    4. Now you know who the user is (based on NTID, or application login), and you can give them the features that are appropriate to them in the application)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my c#.net winforms application which uses sql server 2005 express , would be run
I am using SQL Server Express 2005. I have only a single database to
I am new In ASP.NET, I want to create to Login Form using Membership
Hi I want to create a WCF service that have login method, which is
I want create wordpress website into which I want create user management... That means
I want to create a login page using Servlet & JSP. I ve created
I want to create modules to structure my NodeJS application, but I'm a little
i have a single sql database in sql server express. i have a login
I created a login to connect to SQL SERVER. create login bobLogin with password
I've created an web authentication app using c# & asp.net and want to bounce

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.