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

  • Home
  • SEARCH
  • 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 8574785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:33:05+00:00 2026-06-11T19:33:05+00:00

I am developing an accounting application using C# with SQL Server Express 2008, the

  • 0

I am developing an accounting application using C# with SQL Server Express 2008, the application only accesses the database locally. i want the customer to enter a user name and password when he installs the application, that way he is the only one who can run the application, and my question is:
1. should i store the log in credentials in a local file, or create an sql server user account with those credentials and rely on the database keeping them a secret ?
2. if the second option is doable, how to do it from the installer package ?

  • 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-06-11T19:33:07+00:00Added an answer on June 11, 2026 at 7:33 pm

    There’s a lot more to this.
    If whoever installed sql server selected sql server security that user (sa) will have been defined and will have access to everything.

    If windows only then it will be the windows user who installed sql server, and they will have access to everything

    If Mixed, both will have access to everything

    Then which user created the database on the server, they’ll be dbo by default and have full access to their database.

    So it all depends on who’s doing what.

    Does your app intaller call the sql server install?
    Does it create the database?

    Admin and dbo, can both grant access to said database to anyone they like.

    Adding the windows user installing the app is simply a matter of getting your installer to execute a sql command or two. At that point you have Single Sign on. No need for password you are adding the windows user and mapping them to a database role/user.

    If you want a username and password any user could use if they know it, then perhaps sql only / mixed mode is the way to go. Again a couple of sql commands executed from your chosen installer to caete user fred password ?, job done.

    The point to remember is in order to execute the instructions to add logins and users, roles etc, you need to connect as someone else with permission to do that, e.g. windows admin or sa.

    Also most application users on managed networks do not have admin permissions, so you could have a bit of fun round that as well.

    I suggest you have about of a read about sql server security, there’s a few ways to skin this cat, only you have enough info to choose the best option.

    You might even want to have a think about application based security, if each install of your application creates it’s own database and role….

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

Sidebar

Related Questions

While developing an application using gwt in ecliplse crashed. Now the server is running
I am developing an accounting system for a customer. This application has some special
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms
Developing an application for Android, i want to record data that will be usefull
I am developing an accounting software as project. I want to count sets of
Developing mobile apps is a challenging job. Customers want to be present not only
Developing an application using SWT to work in both Linux and Windows. I created
We're developing an accounting and ERP application (something that lots of companies, big and
I'm developing a line-of-business application using WPF, possibly multitargeting SL as well. One of
We are developing a large project using Oracle 11g R2. Our database is consist

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.