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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:05:47+00:00 2026-05-26T12:05:47+00:00

I am using a C# application and connection to database using sql server 2008

  • 0

I am using a C# application and connection to database using sql server 2008 using windows authentication. I have created several users for the database but i am unable to understand how to use them on my application level. My goal is to install this application on any pc and make the database un-accessible by the users if he tries installing sql management studio.

Can somebody please explain or give me any good references to understand what i want to do ?

  • 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-26T12:05:48+00:00Added an answer on May 26, 2026 at 12:05 pm

    IF you want to make sure the users can’t access the DB without your app you have several options:

    • implement “virtual users”
      This would mean you implement your own user management and don’t create real DB users for your app users but only “virtual users” in your own structure… your app would use a general app user for DB access which is unknown to your users… since the app users aren’t reall DB users they can’t access the DB directly with their users/pw.

    • implement a “special password scheme”
      This would mean you create real users… but only your app can create an app user… when the user is created or changes his password you don’t set the users DB password to that but use some calculation (for example a hash) to create a different password and set that on the DB level… your app knows the calculation so when the user logs in your app does the calculation and uses the result to log into the DB… this way the real DB user can’t log into the DB directly because the password they know (which works only when used with your app) is not the one the DB knows…

    BEWARE that none of the above is 100% secure since your .NET app can always be decompiled/reverse engineered etc. – although the above is certainly enough to block “normal users” from accessing the DB directly…

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

Sidebar

Related Questions

I have a database called MyDB in a Microsoft SQL Server 2008 Express instance
I have an application running in IIS which connects to a SQL Server 2008
I have made an application project in Visual Studio 2008 C#, SQL Server from
I'm using MS Visual Studio 2010 to create an application with SQL Server 2008
I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity
I've got a database that is mirrored using SQL 2008 Mirroring. I have a
I have created views on the SQL Server 2005 database and this view is
I am considering using Fluent NHibernate for a new application with SQL Server 2008
I'm trying to migrate a legacy application we have to Windows Server 2008 x64
I have a Windows Forms application that was created in Visual Studio 2008 and

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.